@msafe/sui3-sdk 0.0.11 → 0.0.12-pre-0fb7c20.0
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 +45 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +46 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/MSafeAccount.ts +46 -19
- package/src/core/MessageHelper.ts +6 -2
- package/src/types/msafe.ts +15 -3
package/src/types/msafe.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GasCostSummary, DryRunTransactionBlockResponse } from '@mysten/sui.js/client';
|
|
2
|
+
|
|
1
3
|
import { TxIntention } from '@/transactions/intention';
|
|
2
4
|
|
|
3
5
|
export interface PendingTx {
|
|
@@ -10,9 +12,9 @@ export interface PendingTx {
|
|
|
10
12
|
createdAt: Date;
|
|
11
13
|
sequenceNumber: number;
|
|
12
14
|
votes: PendingVote[];
|
|
13
|
-
rejectDigest
|
|
14
|
-
rejectPayload
|
|
15
|
-
rejectVotes
|
|
15
|
+
rejectDigest: string;
|
|
16
|
+
rejectPayload: string;
|
|
17
|
+
rejectVotes: PendingVote[];
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface PendingVote {
|
|
@@ -62,3 +64,13 @@ export interface FutureIntention {
|
|
|
62
64
|
statusRemark?: string;
|
|
63
65
|
createdAt: Date;
|
|
64
66
|
}
|
|
67
|
+
|
|
68
|
+
export interface SimulationResult {
|
|
69
|
+
success: boolean;
|
|
70
|
+
errorMsg?: string;
|
|
71
|
+
// gas price for the simulation
|
|
72
|
+
gasPrice: bigint;
|
|
73
|
+
// detailed gas cost summary
|
|
74
|
+
gasUsed: GasCostSummary;
|
|
75
|
+
dryRunResult: DryRunTransactionBlockResponse;
|
|
76
|
+
}
|