@msafe/sui-app-store 0.0.13 → 0.0.14
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 +16 -3
- package/dist/index.global.js +9 -9
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +135 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +133 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# MSafe Sui App Store
|
|
2
2
|
|
|
3
|
+
## Background
|
|
4
|
+
|
|
5
|
+
Due to Sui blockchain version limitations, multisig account can't propose multiple transactions at the same time. It's needed to be create as transaction intention first and propose transaction 1 by 1 for vote & execution.
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Demos
|
|
12
|
+
|
|
13
|
+
https://msafe-sui-web-v3.vercel.app/
|
|
14
|
+
|
|
15
|
+
We provide a demo dApp for MSafe app store integration. please refer below GitHub repository: https://github.com/Momentum-Safe/msafe-sui-app-arbitrary-transaction
|
|
16
|
+
|
|
3
17
|
## How to contribute
|
|
4
18
|
|
|
5
19
|
- Fork the repository
|
|
@@ -14,13 +28,12 @@
|
|
|
14
28
|
|
|
15
29
|
### Create intentions
|
|
16
30
|
|
|
17
|
-
Due to Sui blockchain version limitations, multisig account can't propose multiple transactions at the same time. It's needed to be create as transaction intention first and propose transaction 1 by 1 for vote & execution.
|
|
18
|
-
|
|
19
31
|
- Create your dapp intentions under `src/apps/<your app>` folder
|
|
20
32
|
|
|
21
33
|
Here is an example for transaction intention, if your dapp have multiple transaction types, you need to define 1 by 1 for each type of transaction intention.
|
|
22
34
|
|
|
23
35
|
```typescript
|
|
36
|
+
|
|
24
37
|
export interface CoinTransferIntentionData {
|
|
25
38
|
recipient: string;
|
|
26
39
|
coinType: string;
|
|
@@ -30,7 +43,7 @@ export interface CoinTransferIntentionData {
|
|
|
30
43
|
export class CoinTransferIntention extends CoreBaseIntention<CoinTransferIntentionData> {
|
|
31
44
|
txType: TransactionType.Assets;
|
|
32
45
|
|
|
33
|
-
txSubType: '
|
|
46
|
+
txSubType: 'SendCoin';
|
|
34
47
|
|
|
35
48
|
constructor(public readonly data: CoinTransferIntentionData) {
|
|
36
49
|
super(data);
|