@msafe/sui3-sdk 0.0.15-pre-3e855d9.0 → 0.0.15

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.cts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as _mysten_sui_js_src_cryptography from '@mysten/sui.js/src/cryptography';
2
2
  import { PublicKey as PublicKey$1 } from '@mysten/sui.js/src/cryptography';
3
3
  import * as _mysten_sui_js_client from '@mysten/sui.js/client';
4
- import { SuiClient, GasCostSummary, DryRunTransactionBlockResponse, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
4
+ import { SuiClient, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, GasCostSummary, DryRunTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
5
5
  import * as _msafe_sui3_utils from '@msafe/sui3-utils';
6
- import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, HistoryTransaction, ICreateMSafeReq, IGetAddressBookResult, UpdateAddressBookEntry, MultiSigAccount } from '@msafe/sui3-utils';
6
+ import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, IGetPendingTransactionRequest, GetPendingTransactionResponse, IGetHistoryTransactionsRequest, GetHistoryTransactionsResponse, IGetIntentionsRequest, GetTransactionIntentionsResponse, ICreateMSafeReq, IProposeIntentionRequest, IVoteTransactionRequest, IBuildTransactionRequest, ISkipIntentionRequest, IGetAddressBookResult, UpdateAddressBookEntry, MultiSigAccount, CoinTransferIntention, ObjectTransferIntention } from '@msafe/sui3-utils';
7
7
  import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
8
- import { SerializedSignature, PublicKey } from '@mysten/sui.js/cryptography';
8
+ import { PublicKey, SerializedSignature } from '@mysten/sui.js/cryptography';
9
9
  import * as _mysten_sui_js_dist_cjs_builder from '@mysten/sui.js/dist/cjs/builder';
10
10
  import { SignatureWithBytes } from '@mysten/sui.js/src/cryptography/keypair';
11
11
  import { TransactionBlock } from '@mysten/sui.js/transactions';
@@ -43,79 +43,6 @@ declare class IntentionHelper {
43
43
  }): Promise<_mysten_sui_js_dist_cjs_builder.TransactionBlock>;
44
44
  }
45
45
 
46
- interface PendingTx {
47
- digest: string;
48
- payload: string;
49
- msafeAddress: string;
50
- isRejectTx: boolean;
51
- intention: TxIntention;
52
- creator: string;
53
- createdAt: Date;
54
- sequenceNumber: number;
55
- votes: PendingVote[];
56
- rejectDigest: string;
57
- rejectPayload: string;
58
- rejectVotes: PendingVote[];
59
- }
60
- interface PendingVote {
61
- userAddress: string;
62
- signature: string;
63
- timestamp: Date;
64
- }
65
- interface HistorySendTx {
66
- digest: string;
67
- payload: string;
68
- msafeAddress: string;
69
- sequenceNumber: number;
70
- isRejectTx: boolean;
71
- status: string;
72
- creator: string;
73
- createdAt: Date;
74
- votes: HistoryVote[];
75
- }
76
- interface ReceiveTransaction {
77
- digest: string;
78
- payload: string;
79
- txType: string;
80
- txSubType: string;
81
- timestamp: Date;
82
- }
83
- interface HistoryVote {
84
- userAddress: string;
85
- timestamp: Date;
86
- }
87
- interface FutureIntention {
88
- intentionId: string;
89
- intention: TxIntention;
90
- sequenceNumber: number;
91
- msafeAddress: string;
92
- creator: string;
93
- txType: string;
94
- txSubType: string;
95
- rawData: string;
96
- processed: boolean;
97
- status: string;
98
- statusRemark?: string;
99
- createdAt: Date;
100
- }
101
- interface ProposeIntention {
102
- application: string;
103
- txType: string;
104
- txSubType: string;
105
- intention: TxIntention;
106
- sequenceNumber: number;
107
- userAddress: string;
108
- msafeAddress: string;
109
- signature: SerializedSignature;
110
- }
111
- interface SimulationResult {
112
- success: boolean;
113
- errorMsg?: string;
114
- gasPrice: bigint;
115
- gasUsed: GasCostSummary;
116
- dryRunResult: DryRunTransactionBlockResponse;
117
- }
118
-
119
46
  interface IBackend {
120
47
  authSign(input: IAuthLoginReq): Promise<JWTToken>;
121
48
  verifyToken(jwt?: JWTToken): Promise<boolean>;
@@ -132,13 +59,13 @@ interface IBackend {
132
59
  msafeAddress: string;
133
60
  status: UserMSafeStatus;
134
61
  }): Promise<void>;
135
- getPendingTransactions(msafeAddress: string): Promise<PendingTx[]>;
136
- getHistoryTransactions(msafeAddress: string, paginationOption?: IPageOptions): Promise<IPagedResult<HistoryTransaction>>;
137
- getFutureIntentions(msafeAddress: string, paginationOption?: IPageOptions): Promise<IPagedResult<FutureIntention>>;
138
- getCurrentSequenceNumber(msafeAddress: string): Promise<number>;
139
- getNextSequenceNumber(msafeAddress: string): Promise<number>;
62
+ getPendingTransactions(input: IGetPendingTransactionRequest): Promise<GetPendingTransactionResponse>;
63
+ getHistoryTransactions(input: IGetHistoryTransactionsRequest): Promise<GetHistoryTransactionsResponse>;
64
+ getFutureIntentions(input: IGetIntentionsRequest): Promise<GetTransactionIntentionsResponse>;
65
+ getCurrentSequenceNumber(address: string): Promise<number>;
66
+ getNextSequenceNumber(address: string): Promise<number>;
140
67
  createMSafeAccount(input: ICreateMSafeReq): Promise<void>;
141
- proposeIntention(input: ProposeIntention): Promise<void>;
68
+ proposeIntention(input: IProposeIntentionRequest): Promise<void>;
142
69
  proposePendingTransaction(input: {
143
70
  intention: TxIntention;
144
71
  userAddress: string;
@@ -146,25 +73,10 @@ interface IBackend {
146
73
  digest: string;
147
74
  signature: SerializedSignature;
148
75
  }): Promise<void>;
149
- rejectCurrentTx(input: {
150
- userAddress: string;
151
- msafeAddress: string;
152
- digest: string;
153
- signature: SerializedSignature;
154
- }): Promise<void>;
155
- voteForTransaction(input: {
156
- txDigest: string;
157
- msafeAddress: string;
158
- userAddress: string;
159
- signature: SerializedSignature;
160
- }): Promise<void>;
161
- buildNextIntentionAndAddToPending(input: {
162
- msafeAddress: string;
163
- }): Promise<void>;
164
- skipNextFailedIntention(input: {
165
- msafeAddress: string;
166
- userAddress: string;
167
- }): Promise<void>;
76
+ rejectCurrentTx(input: IVoteTransactionRequest): Promise<void>;
77
+ voteForTransaction(input: IVoteTransactionRequest): Promise<void>;
78
+ buildNextIntentionAndAddToPending(input: IBuildTransactionRequest): Promise<void>;
79
+ skipNextFailedIntention(input: ISkipIntentionRequest): Promise<void>;
168
80
  processExecutedTransaction(digest: string): Promise<void>;
169
81
  getAddressBookEntries(pagination?: IPageOptions): Promise<IGetAddressBookResult>;
170
82
  updateAddressBook(input: {
@@ -254,6 +166,82 @@ declare class PublicKeyHelper {
254
166
  private getPublicKeyFromChain;
255
167
  }
256
168
 
169
+ interface PendingTx {
170
+ digest: string;
171
+ payload: string;
172
+ msafeAddress: string;
173
+ intention: TxIntention;
174
+ creator: string;
175
+ createdAt: Date;
176
+ sequenceNumber: number;
177
+ votes: PendingVote[];
178
+ rejectDigest: string;
179
+ rejectPayload: string;
180
+ rejectVotes: PendingVote[];
181
+ }
182
+ interface PendingVote {
183
+ userAddress: string;
184
+ signature: string;
185
+ timestamp: Date;
186
+ }
187
+ interface HistorySendTx {
188
+ digest: string;
189
+ payload: string;
190
+ msafeAddress: string;
191
+ sequenceNumber: number;
192
+ isRejectTx: boolean;
193
+ status: string;
194
+ creator: string;
195
+ createdAt: Date;
196
+ votes: HistoryVote[];
197
+ }
198
+ interface ReceiveTransaction {
199
+ digest: string;
200
+ payload: string;
201
+ txType: string;
202
+ txSubType: string;
203
+ timestamp: Date;
204
+ }
205
+ interface HistoryVote {
206
+ userAddress: string;
207
+ timestamp: Date;
208
+ }
209
+ interface FutureIntention {
210
+ intentionId: string;
211
+ intention: TxIntention;
212
+ sequenceNumber: number;
213
+ msafeAddress: string;
214
+ creator: string;
215
+ txType: string;
216
+ txSubType: string;
217
+ rawData: string;
218
+ processed: boolean;
219
+ status: string;
220
+ statusRemark?: string;
221
+ createdAt: Date;
222
+ }
223
+ interface ProposeIntention {
224
+ application: string;
225
+ txType: string;
226
+ txSubType: string;
227
+ intention: TxIntention;
228
+ sequenceNumber: number;
229
+ userAddress: string;
230
+ msafeAddress: string;
231
+ signature: SerializedSignature;
232
+ }
233
+ interface SimulationResult {
234
+ success: boolean;
235
+ errorMsg?: string;
236
+ gasPrice: bigint;
237
+ gasUsed: GasCostSummary;
238
+ dryRunResult: DryRunTransactionBlockResponse;
239
+ }
240
+ interface Pagination {
241
+ page?: string;
242
+ limit?: string;
243
+ }
244
+
257
245
  interface CreateMSafeInfo {
258
246
  name: string;
259
247
  description?: string;
@@ -314,23 +302,19 @@ declare class MSafeAccount {
314
302
  ownedCoins(): Promise<OwnedCoin[]>;
315
303
  ownedObjects(options?: BatchObjectOptions): Promise<SuiObjectData[]>;
316
304
  pendingTransaction(): Promise<PendingTx | undefined>;
317
- historyTransaction(paginationOption?: IPageOptions): Promise<_msafe_sui3_utils.IPagedResult<_msafe_sui3_utils.HistoryTransaction>>;
318
- futureIntentions(paginationOption?: IPageOptions): Promise<FutureIntention[]>;
305
+ historyTransaction(pagination?: Pagination): Promise<_msafe_sui3_utils.GetHistoryTransactionsResponse>;
306
+ futureIntentions(pagination?: Pagination): Promise<_msafe_sui3_utils.GetTransactionIntentionsResponse>;
319
307
  currentSequenceNumber(): Promise<number>;
320
308
  nextSequenceNumber(): Promise<number>;
321
- proposeIntention(input: {
322
- application: string;
323
- txType: string;
324
- txSubType: string;
325
- intention: TxIntention;
326
- sequenceNumber: number;
327
- }): Promise<void>;
309
+ proposeIntention(input: Omit<IProposeIntentionRequest, 'signature' | 'msafeAddress'>): Promise<void>;
310
+ proposeCoinTransferIntention(intention: CoinTransferIntention): Promise<void>;
311
+ proposeObjectTransferIntention(intention: ObjectTransferIntention): Promise<void>;
328
312
  voteForTransaction(digest: string, payload: string): Promise<void>;
329
313
  proposePendingTransaction(intention: TxIntention): Promise<void>;
330
- rejectCurrentTx(pending?: PendingTx): Promise<void>;
314
+ rejectCurrentTx(): Promise<void>;
331
315
  buildNextIntentionAndAddToPending(): Promise<void>;
332
316
  skipNextFailedIntention(): Promise<void>;
333
- simulateIntention(intention: TxIntention): Promise<SimulationResult>;
317
+ simulateIntention(intention: any): Promise<SimulationResult>;
334
318
  executePendingTx(pending: PendingTx): Promise<_mysten_sui_js_client.SuiTransactionBlockResponse>;
335
319
  get address(): string;
336
320
  private get backend();
@@ -427,4 +411,4 @@ declare class Coin {
427
411
  static getBalance(data: SuiObjectData): bigint | undefined;
428
412
  }
429
413
 
430
- export { AddressBookSDK, COIN_TYPE_ARG_REGEX, Coin, CoinHelper, CreateHelper, type CreateMSafeInfo, DEV_API_URL, DEV_SYNCING_URL, ENV_CONFIGS, Formatter, type FutureIntention, HexToUint8Array, type HistorySendTx, type HistoryVote, type IWallet, type IntentionCoinTransfer, IntentionHelper, type IntentionObjectTransfer, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSAFE_APPLICATION, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnv, MSafeGlobals, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationResult, TESTNET_RPC_URL, type TxIntention, Uint8ArrayToHex, getAllCoins, getMSafeConfig, getPublicKeyFromChain, stringToBuffer };
414
+ export { AddressBookSDK, COIN_TYPE_ARG_REGEX, Coin, CoinHelper, CreateHelper, type CreateMSafeInfo, DEV_API_URL, DEV_SYNCING_URL, ENV_CONFIGS, Formatter, type FutureIntention, HexToUint8Array, type HistorySendTx, type HistoryVote, type IWallet, type IntentionCoinTransfer, IntentionHelper, type IntentionObjectTransfer, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSAFE_APPLICATION, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnv, MSafeGlobals, type Pagination, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationResult, TESTNET_RPC_URL, type TxIntention, Uint8ArrayToHex, getAllCoins, getMSafeConfig, getPublicKeyFromChain, stringToBuffer };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as _mysten_sui_js_src_cryptography from '@mysten/sui.js/src/cryptography';
2
2
  import { PublicKey as PublicKey$1 } from '@mysten/sui.js/src/cryptography';
3
3
  import * as _mysten_sui_js_client from '@mysten/sui.js/client';
4
- import { SuiClient, GasCostSummary, DryRunTransactionBlockResponse, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
4
+ import { SuiClient, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, GasCostSummary, DryRunTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
5
5
  import * as _msafe_sui3_utils from '@msafe/sui3-utils';
6
- import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, HistoryTransaction, ICreateMSafeReq, IGetAddressBookResult, UpdateAddressBookEntry, MultiSigAccount } from '@msafe/sui3-utils';
6
+ import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, IGetPendingTransactionRequest, GetPendingTransactionResponse, IGetHistoryTransactionsRequest, GetHistoryTransactionsResponse, IGetIntentionsRequest, GetTransactionIntentionsResponse, ICreateMSafeReq, IProposeIntentionRequest, IVoteTransactionRequest, IBuildTransactionRequest, ISkipIntentionRequest, IGetAddressBookResult, UpdateAddressBookEntry, MultiSigAccount, CoinTransferIntention, ObjectTransferIntention } from '@msafe/sui3-utils';
7
7
  import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
8
- import { SerializedSignature, PublicKey } from '@mysten/sui.js/cryptography';
8
+ import { PublicKey, SerializedSignature } from '@mysten/sui.js/cryptography';
9
9
  import * as _mysten_sui_js_dist_cjs_builder from '@mysten/sui.js/dist/cjs/builder';
10
10
  import { SignatureWithBytes } from '@mysten/sui.js/src/cryptography/keypair';
11
11
  import { TransactionBlock } from '@mysten/sui.js/transactions';
@@ -43,79 +43,6 @@ declare class IntentionHelper {
43
43
  }): Promise<_mysten_sui_js_dist_cjs_builder.TransactionBlock>;
44
44
  }
45
45
 
46
- interface PendingTx {
47
- digest: string;
48
- payload: string;
49
- msafeAddress: string;
50
- isRejectTx: boolean;
51
- intention: TxIntention;
52
- creator: string;
53
- createdAt: Date;
54
- sequenceNumber: number;
55
- votes: PendingVote[];
56
- rejectDigest: string;
57
- rejectPayload: string;
58
- rejectVotes: PendingVote[];
59
- }
60
- interface PendingVote {
61
- userAddress: string;
62
- signature: string;
63
- timestamp: Date;
64
- }
65
- interface HistorySendTx {
66
- digest: string;
67
- payload: string;
68
- msafeAddress: string;
69
- sequenceNumber: number;
70
- isRejectTx: boolean;
71
- status: string;
72
- creator: string;
73
- createdAt: Date;
74
- votes: HistoryVote[];
75
- }
76
- interface ReceiveTransaction {
77
- digest: string;
78
- payload: string;
79
- txType: string;
80
- txSubType: string;
81
- timestamp: Date;
82
- }
83
- interface HistoryVote {
84
- userAddress: string;
85
- timestamp: Date;
86
- }
87
- interface FutureIntention {
88
- intentionId: string;
89
- intention: TxIntention;
90
- sequenceNumber: number;
91
- msafeAddress: string;
92
- creator: string;
93
- txType: string;
94
- txSubType: string;
95
- rawData: string;
96
- processed: boolean;
97
- status: string;
98
- statusRemark?: string;
99
- createdAt: Date;
100
- }
101
- interface ProposeIntention {
102
- application: string;
103
- txType: string;
104
- txSubType: string;
105
- intention: TxIntention;
106
- sequenceNumber: number;
107
- userAddress: string;
108
- msafeAddress: string;
109
- signature: SerializedSignature;
110
- }
111
- interface SimulationResult {
112
- success: boolean;
113
- errorMsg?: string;
114
- gasPrice: bigint;
115
- gasUsed: GasCostSummary;
116
- dryRunResult: DryRunTransactionBlockResponse;
117
- }
118
-
119
46
  interface IBackend {
120
47
  authSign(input: IAuthLoginReq): Promise<JWTToken>;
121
48
  verifyToken(jwt?: JWTToken): Promise<boolean>;
@@ -132,13 +59,13 @@ interface IBackend {
132
59
  msafeAddress: string;
133
60
  status: UserMSafeStatus;
134
61
  }): Promise<void>;
135
- getPendingTransactions(msafeAddress: string): Promise<PendingTx[]>;
136
- getHistoryTransactions(msafeAddress: string, paginationOption?: IPageOptions): Promise<IPagedResult<HistoryTransaction>>;
137
- getFutureIntentions(msafeAddress: string, paginationOption?: IPageOptions): Promise<IPagedResult<FutureIntention>>;
138
- getCurrentSequenceNumber(msafeAddress: string): Promise<number>;
139
- getNextSequenceNumber(msafeAddress: string): Promise<number>;
62
+ getPendingTransactions(input: IGetPendingTransactionRequest): Promise<GetPendingTransactionResponse>;
63
+ getHistoryTransactions(input: IGetHistoryTransactionsRequest): Promise<GetHistoryTransactionsResponse>;
64
+ getFutureIntentions(input: IGetIntentionsRequest): Promise<GetTransactionIntentionsResponse>;
65
+ getCurrentSequenceNumber(address: string): Promise<number>;
66
+ getNextSequenceNumber(address: string): Promise<number>;
140
67
  createMSafeAccount(input: ICreateMSafeReq): Promise<void>;
141
- proposeIntention(input: ProposeIntention): Promise<void>;
68
+ proposeIntention(input: IProposeIntentionRequest): Promise<void>;
142
69
  proposePendingTransaction(input: {
143
70
  intention: TxIntention;
144
71
  userAddress: string;
@@ -146,25 +73,10 @@ interface IBackend {
146
73
  digest: string;
147
74
  signature: SerializedSignature;
148
75
  }): Promise<void>;
149
- rejectCurrentTx(input: {
150
- userAddress: string;
151
- msafeAddress: string;
152
- digest: string;
153
- signature: SerializedSignature;
154
- }): Promise<void>;
155
- voteForTransaction(input: {
156
- txDigest: string;
157
- msafeAddress: string;
158
- userAddress: string;
159
- signature: SerializedSignature;
160
- }): Promise<void>;
161
- buildNextIntentionAndAddToPending(input: {
162
- msafeAddress: string;
163
- }): Promise<void>;
164
- skipNextFailedIntention(input: {
165
- msafeAddress: string;
166
- userAddress: string;
167
- }): Promise<void>;
76
+ rejectCurrentTx(input: IVoteTransactionRequest): Promise<void>;
77
+ voteForTransaction(input: IVoteTransactionRequest): Promise<void>;
78
+ buildNextIntentionAndAddToPending(input: IBuildTransactionRequest): Promise<void>;
79
+ skipNextFailedIntention(input: ISkipIntentionRequest): Promise<void>;
168
80
  processExecutedTransaction(digest: string): Promise<void>;
169
81
  getAddressBookEntries(pagination?: IPageOptions): Promise<IGetAddressBookResult>;
170
82
  updateAddressBook(input: {
@@ -254,6 +166,82 @@ declare class PublicKeyHelper {
254
166
  private getPublicKeyFromChain;
255
167
  }
256
168
 
169
+ interface PendingTx {
170
+ digest: string;
171
+ payload: string;
172
+ msafeAddress: string;
173
+ intention: TxIntention;
174
+ creator: string;
175
+ createdAt: Date;
176
+ sequenceNumber: number;
177
+ votes: PendingVote[];
178
+ rejectDigest: string;
179
+ rejectPayload: string;
180
+ rejectVotes: PendingVote[];
181
+ }
182
+ interface PendingVote {
183
+ userAddress: string;
184
+ signature: string;
185
+ timestamp: Date;
186
+ }
187
+ interface HistorySendTx {
188
+ digest: string;
189
+ payload: string;
190
+ msafeAddress: string;
191
+ sequenceNumber: number;
192
+ isRejectTx: boolean;
193
+ status: string;
194
+ creator: string;
195
+ createdAt: Date;
196
+ votes: HistoryVote[];
197
+ }
198
+ interface ReceiveTransaction {
199
+ digest: string;
200
+ payload: string;
201
+ txType: string;
202
+ txSubType: string;
203
+ timestamp: Date;
204
+ }
205
+ interface HistoryVote {
206
+ userAddress: string;
207
+ timestamp: Date;
208
+ }
209
+ interface FutureIntention {
210
+ intentionId: string;
211
+ intention: TxIntention;
212
+ sequenceNumber: number;
213
+ msafeAddress: string;
214
+ creator: string;
215
+ txType: string;
216
+ txSubType: string;
217
+ rawData: string;
218
+ processed: boolean;
219
+ status: string;
220
+ statusRemark?: string;
221
+ createdAt: Date;
222
+ }
223
+ interface ProposeIntention {
224
+ application: string;
225
+ txType: string;
226
+ txSubType: string;
227
+ intention: TxIntention;
228
+ sequenceNumber: number;
229
+ userAddress: string;
230
+ msafeAddress: string;
231
+ signature: SerializedSignature;
232
+ }
233
+ interface SimulationResult {
234
+ success: boolean;
235
+ errorMsg?: string;
236
+ gasPrice: bigint;
237
+ gasUsed: GasCostSummary;
238
+ dryRunResult: DryRunTransactionBlockResponse;
239
+ }
240
+ interface Pagination {
241
+ page?: string;
242
+ limit?: string;
243
+ }
244
+
257
245
  interface CreateMSafeInfo {
258
246
  name: string;
259
247
  description?: string;
@@ -314,23 +302,19 @@ declare class MSafeAccount {
314
302
  ownedCoins(): Promise<OwnedCoin[]>;
315
303
  ownedObjects(options?: BatchObjectOptions): Promise<SuiObjectData[]>;
316
304
  pendingTransaction(): Promise<PendingTx | undefined>;
317
- historyTransaction(paginationOption?: IPageOptions): Promise<_msafe_sui3_utils.IPagedResult<_msafe_sui3_utils.HistoryTransaction>>;
318
- futureIntentions(paginationOption?: IPageOptions): Promise<FutureIntention[]>;
305
+ historyTransaction(pagination?: Pagination): Promise<_msafe_sui3_utils.GetHistoryTransactionsResponse>;
306
+ futureIntentions(pagination?: Pagination): Promise<_msafe_sui3_utils.GetTransactionIntentionsResponse>;
319
307
  currentSequenceNumber(): Promise<number>;
320
308
  nextSequenceNumber(): Promise<number>;
321
- proposeIntention(input: {
322
- application: string;
323
- txType: string;
324
- txSubType: string;
325
- intention: TxIntention;
326
- sequenceNumber: number;
327
- }): Promise<void>;
309
+ proposeIntention(input: Omit<IProposeIntentionRequest, 'signature' | 'msafeAddress'>): Promise<void>;
310
+ proposeCoinTransferIntention(intention: CoinTransferIntention): Promise<void>;
311
+ proposeObjectTransferIntention(intention: ObjectTransferIntention): Promise<void>;
328
312
  voteForTransaction(digest: string, payload: string): Promise<void>;
329
313
  proposePendingTransaction(intention: TxIntention): Promise<void>;
330
- rejectCurrentTx(pending?: PendingTx): Promise<void>;
314
+ rejectCurrentTx(): Promise<void>;
331
315
  buildNextIntentionAndAddToPending(): Promise<void>;
332
316
  skipNextFailedIntention(): Promise<void>;
333
- simulateIntention(intention: TxIntention): Promise<SimulationResult>;
317
+ simulateIntention(intention: any): Promise<SimulationResult>;
334
318
  executePendingTx(pending: PendingTx): Promise<_mysten_sui_js_client.SuiTransactionBlockResponse>;
335
319
  get address(): string;
336
320
  private get backend();
@@ -427,4 +411,4 @@ declare class Coin {
427
411
  static getBalance(data: SuiObjectData): bigint | undefined;
428
412
  }
429
413
 
430
- export { AddressBookSDK, COIN_TYPE_ARG_REGEX, Coin, CoinHelper, CreateHelper, type CreateMSafeInfo, DEV_API_URL, DEV_SYNCING_URL, ENV_CONFIGS, Formatter, type FutureIntention, HexToUint8Array, type HistorySendTx, type HistoryVote, type IWallet, type IntentionCoinTransfer, IntentionHelper, type IntentionObjectTransfer, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSAFE_APPLICATION, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnv, MSafeGlobals, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationResult, TESTNET_RPC_URL, type TxIntention, Uint8ArrayToHex, getAllCoins, getMSafeConfig, getPublicKeyFromChain, stringToBuffer };
414
+ export { AddressBookSDK, COIN_TYPE_ARG_REGEX, Coin, CoinHelper, CreateHelper, type CreateMSafeInfo, DEV_API_URL, DEV_SYNCING_URL, ENV_CONFIGS, Formatter, type FutureIntention, HexToUint8Array, type HistorySendTx, type HistoryVote, type IWallet, type IntentionCoinTransfer, IntentionHelper, type IntentionObjectTransfer, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSAFE_APPLICATION, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnv, MSafeGlobals, type Pagination, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationResult, TESTNET_RPC_URL, type TxIntention, Uint8ArrayToHex, getAllCoins, getMSafeConfig, getPublicKeyFromChain, stringToBuffer };