@msafe/sui-app-store 0.0.11 → 0.0.13
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.d.mts +7 -17
- package/dist/index.d.ts +7 -17
- package/dist/index.global.js +9 -9
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import * as _mysten_sui_js_dist_cjs_builder from '@mysten/sui.js/dist/cjs/builder';
|
|
2
1
|
import { TransactionType } from '@msafe/sui3-utils';
|
|
3
2
|
import { SuiClient } from '@mysten/sui.js/client';
|
|
4
|
-
import { SuiSignTransactionBlockInput, WalletAccount } from '@mysten/wallet-standard';
|
|
5
3
|
import { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
4
|
+
import { SuiSignTransactionBlockInput, WalletAccount } from '@mysten/wallet-standard';
|
|
6
5
|
|
|
7
6
|
type SuiNetworks = 'sui:devnet' | 'sui:testnet' | 'sui:localnet' | 'sui:mainnet';
|
|
8
7
|
|
|
9
8
|
interface MSafeAppHelper<T> {
|
|
10
9
|
application: string;
|
|
11
|
-
deserialize(input: SuiSignTransactionBlockInput
|
|
10
|
+
deserialize(input: SuiSignTransactionBlockInput & {
|
|
11
|
+
network: SuiNetworks;
|
|
12
|
+
suiClient: SuiClient;
|
|
13
|
+
account: WalletAccount;
|
|
14
|
+
}): Promise<{
|
|
12
15
|
txType: TransactionType;
|
|
13
16
|
txSubType: string;
|
|
14
17
|
intentionData: T;
|
|
15
|
-
}
|
|
18
|
+
}>;
|
|
16
19
|
build(input: {
|
|
17
20
|
network: SuiNetworks;
|
|
18
21
|
txType: TransactionType;
|
|
@@ -27,19 +30,6 @@ declare class MSafeApps {
|
|
|
27
30
|
apps: Map<string, MSafeAppHelper<any>>;
|
|
28
31
|
constructor(apps: MSafeAppHelper<any>[]);
|
|
29
32
|
getAppHelper(appName: string): MSafeAppHelper<any>;
|
|
30
|
-
deserialize(appName: string, input: SuiSignTransactionBlockInput): {
|
|
31
|
-
txType: TransactionType;
|
|
32
|
-
txSubType: string;
|
|
33
|
-
intentionData: any;
|
|
34
|
-
};
|
|
35
|
-
build(appName: string, input: {
|
|
36
|
-
network: SuiNetworks;
|
|
37
|
-
intentionData: any;
|
|
38
|
-
txType: TransactionType;
|
|
39
|
-
txSubType: string;
|
|
40
|
-
suiClient: SuiClient;
|
|
41
|
-
account: WalletAccount;
|
|
42
|
-
}): Promise<_mysten_sui_js_dist_cjs_builder.TransactionBlock>;
|
|
43
33
|
}
|
|
44
34
|
|
|
45
35
|
declare const appHelpers: MSafeApps;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import * as _mysten_sui_js_dist_cjs_builder from '@mysten/sui.js/dist/cjs/builder';
|
|
2
1
|
import { TransactionType } from '@msafe/sui3-utils';
|
|
3
2
|
import { SuiClient } from '@mysten/sui.js/client';
|
|
4
|
-
import { SuiSignTransactionBlockInput, WalletAccount } from '@mysten/wallet-standard';
|
|
5
3
|
import { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
4
|
+
import { SuiSignTransactionBlockInput, WalletAccount } from '@mysten/wallet-standard';
|
|
6
5
|
|
|
7
6
|
type SuiNetworks = 'sui:devnet' | 'sui:testnet' | 'sui:localnet' | 'sui:mainnet';
|
|
8
7
|
|
|
9
8
|
interface MSafeAppHelper<T> {
|
|
10
9
|
application: string;
|
|
11
|
-
deserialize(input: SuiSignTransactionBlockInput
|
|
10
|
+
deserialize(input: SuiSignTransactionBlockInput & {
|
|
11
|
+
network: SuiNetworks;
|
|
12
|
+
suiClient: SuiClient;
|
|
13
|
+
account: WalletAccount;
|
|
14
|
+
}): Promise<{
|
|
12
15
|
txType: TransactionType;
|
|
13
16
|
txSubType: string;
|
|
14
17
|
intentionData: T;
|
|
15
|
-
}
|
|
18
|
+
}>;
|
|
16
19
|
build(input: {
|
|
17
20
|
network: SuiNetworks;
|
|
18
21
|
txType: TransactionType;
|
|
@@ -27,19 +30,6 @@ declare class MSafeApps {
|
|
|
27
30
|
apps: Map<string, MSafeAppHelper<any>>;
|
|
28
31
|
constructor(apps: MSafeAppHelper<any>[]);
|
|
29
32
|
getAppHelper(appName: string): MSafeAppHelper<any>;
|
|
30
|
-
deserialize(appName: string, input: SuiSignTransactionBlockInput): {
|
|
31
|
-
txType: TransactionType;
|
|
32
|
-
txSubType: string;
|
|
33
|
-
intentionData: any;
|
|
34
|
-
};
|
|
35
|
-
build(appName: string, input: {
|
|
36
|
-
network: SuiNetworks;
|
|
37
|
-
intentionData: any;
|
|
38
|
-
txType: TransactionType;
|
|
39
|
-
txSubType: string;
|
|
40
|
-
suiClient: SuiClient;
|
|
41
|
-
account: WalletAccount;
|
|
42
|
-
}): Promise<_mysten_sui_js_dist_cjs_builder.TransactionBlock>;
|
|
43
33
|
}
|
|
44
34
|
|
|
45
35
|
declare const appHelpers: MSafeApps;
|