@msafe/sui3-sdk 0.0.53-pre-a2c50ab.0 → 0.0.53
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.cjs +43123 -273
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43058 -171
- package/dist/index.js.map +1 -1
- package/package.json +4 -11
- package/src/core/MSafeAccount.ts +1 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@msafe/sui3-sdk",
|
|
3
|
-
"version": "0.0.53
|
|
3
|
+
"version": "0.0.53",
|
|
4
4
|
"description": "SDK for MSafe SUI V3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -21,15 +21,14 @@
|
|
|
21
21
|
"author": "MSafe <admin@m-safe.io>",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@msafe/sui-wallet": "^0.0.68-pre-33f4442.0",
|
|
25
|
+
"@msafe/sui3-utils": "^3.1.65",
|
|
26
|
+
"@mysten/sui.js": "0.53.0",
|
|
24
27
|
"axios": "^1.6.6",
|
|
25
28
|
"buffer": "^6.0.3"
|
|
26
29
|
},
|
|
27
30
|
"devDependencies": {
|
|
28
31
|
"@msafe/mpay-sdk-sui": "^1.0.25",
|
|
29
|
-
"@msafe/sui-app-store": "^0.0.120-pre-b188f5e.0",
|
|
30
|
-
"@msafe/sui3-utils": "^3.1.66-pre-87fbadf.0",
|
|
31
|
-
"@mysten/sui.js": "^0.54.1",
|
|
32
|
-
"@mysten/wallet-standard": "^0.11.6",
|
|
33
32
|
"@types/jest": "^29.5.8",
|
|
34
33
|
"@types/node": "^20.9.2",
|
|
35
34
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
@@ -63,11 +62,5 @@
|
|
|
63
62
|
"build": "yarn clean && tsup --platform browser --format cjs,esm --dts",
|
|
64
63
|
"build-yalc": "yarn build && yalc publish --private",
|
|
65
64
|
"prerelease": "yarn build && chmod +x ./scripts/prerelease.sh && ./scripts/prerelease.sh"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"@msafe/sui-app-store": ">0.0.100",
|
|
69
|
-
"@msafe/sui3-utils": ">3.0.0",
|
|
70
|
-
"@mysten/sui.js": ">0.50.0",
|
|
71
|
-
"@mysten/wallet-standard": ">0.11.0"
|
|
72
65
|
}
|
|
73
66
|
}
|
package/src/core/MSafeAccount.ts
CHANGED
|
@@ -191,11 +191,9 @@ export class MSafeAccount {
|
|
|
191
191
|
features: [],
|
|
192
192
|
},
|
|
193
193
|
});
|
|
194
|
-
const userAddress = await this.wallet.address();
|
|
195
|
-
console.log('🚀 ~ MSafeAccount ~ userAddress:', userAddress);
|
|
196
194
|
txb.setGasPrice(input.gasPrice);
|
|
197
195
|
txb.setGasBudget(input.gasBudget);
|
|
198
|
-
txb.setSender(this.
|
|
196
|
+
txb.setSender(this.address);
|
|
199
197
|
const payload = await txb.build({ client: this.globals.suiClient });
|
|
200
198
|
const digest = await txb.getDigest({ client: this.globals.suiClient });
|
|
201
199
|
|
|
@@ -395,13 +393,6 @@ export class MSafeAccount {
|
|
|
395
393
|
}
|
|
396
394
|
}
|
|
397
395
|
const multiSignature = this.multiSig.combinePartialSignatures(sortedSigs);
|
|
398
|
-
console.log(
|
|
399
|
-
'🚀 ~ MSafeAccount ~ executePendingTx ~ multiSignature:',
|
|
400
|
-
this.multiSig.publicKey.toSuiAddress(),
|
|
401
|
-
TransactionBlock.from(fromHEX(payload)).blockData.sender,
|
|
402
|
-
this.multiSig.publicKeys.map((it) => it.publicKey.toBase64()),
|
|
403
|
-
multiSignature,
|
|
404
|
-
);
|
|
405
396
|
return this.suiClient.executeTransactionBlock({
|
|
406
397
|
transactionBlock: HexToUint8Array(payload),
|
|
407
398
|
signature: multiSignature,
|