@msafe/sui3-sdk 0.0.89 → 1.0.4

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,10 +1,10 @@
1
1
  import * as _msafe_sui3_utils from '@msafe/sui3-utils';
2
2
  import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, IGetPendingTransactionRequest, GetPendingTransactionResponse, IGetHistoryTransactionsRequest, GetHistoryTransactionsResponse, IGetIntentionsRequest, GetTransactionIntentionsResponse, IMSafeAddressRequest, TransactionIntentionItem, ICreateMSafeReq, IProposeIntentionRequest, IRejectTransactionRequest, IVoteTransactionRequest, IBuildTransactionRequest, ISkipIntentionRequest, IProposeIntentionAndBuildAndVoteRequest, IGetAddressBookResult, UpdateAddressBookEntry, IGetAddressBookModeResult, ISetAddressBookModeReq, Report, IGetDashboardReq, IGetDashboardResp, TransactionType, TxIntention, IGasOption, PublicKeyWithSchema, AddressBookMode, MultiSigAccount, CoinTransferIntention, ObjectTransferIntention, PlainPayloadIntention } from '@msafe/sui3-utils';
3
- import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
4
- import { PublicKey, SerializedSignature, SignatureWithBytes } from '@mysten/sui.js/cryptography';
5
- import * as _mysten_sui_js_client from '@mysten/sui.js/client';
6
- import { SuiClientOptions, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, SuiClient, GasCostSummary, SuiObjectRef, DryRunTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
7
- import { TransactionBlock } from '@mysten/sui.js/transactions';
3
+ import * as _mysten_sui_cryptography from '@mysten/sui/cryptography';
4
+ import { PublicKey, SignatureWithBytes } from '@mysten/sui/cryptography';
5
+ import * as _mysten_sui_jsonRpc from '@mysten/sui/jsonRpc';
6
+ import { JsonRpcTransport, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, SuiJsonRpcClient, GasCostSummary, SuiObjectRef, DryRunTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui/jsonRpc';
7
+ import { Transaction } from '@mysten/sui/transactions';
8
8
  import { Buffer } from 'buffer';
9
9
 
10
10
  declare enum InfoTypeKey {
@@ -78,7 +78,7 @@ interface IBackend {
78
78
  getAddressBookEntries(pagination?: IPageOptions): Promise<IGetAddressBookResult>;
79
79
  updateAddressBook(input: {
80
80
  updates: UpdateAddressBookEntry[];
81
- signature: SerializedSignature;
81
+ signature: string;
82
82
  }): Promise<void>;
83
83
  getAddressBookMode(): Promise<IGetAddressBookModeResult>;
84
84
  setAddressBookMode(input: ISetAddressBookModeReq): Promise<void>;
@@ -89,6 +89,7 @@ interface IBackend {
89
89
  updateNotificationSubscription(input: NotificationUpdateDto): Promise<void>;
90
90
  }
91
91
 
92
+ declare function msafeChainToSuiNetwork(chain: 'sui:mainnet' | 'sui:testnet'): 'mainnet' | 'testnet';
92
93
  declare enum MSafeEnv {
93
94
  local = "local",
94
95
  unit = "unit",
@@ -99,7 +100,7 @@ declare enum MSafeEnv {
99
100
  interface MSafeConfig {
100
101
  suiClient: {
101
102
  url: string;
102
- transport?: SuiClientOptions['transport'];
103
+ transport?: JsonRpcTransport;
103
104
  };
104
105
  backend: {
105
106
  url: string;
@@ -110,7 +111,7 @@ interface MSafeConfig {
110
111
  interface MSafeConfigOptions {
111
112
  suiClient?: {
112
113
  url: string;
113
- transport?: SuiClientOptions['transport'];
114
+ transport?: JsonRpcTransport;
114
115
  };
115
116
  backend?: {
116
117
  url?: string;
@@ -135,10 +136,10 @@ interface IWallet {
135
136
  messageStr: string;
136
137
  }): Promise<SignatureWithBytes>;
137
138
  signTransactionBlock(input: {
138
- transactionBlock: TransactionBlock | Uint8Array;
139
+ transactionBlock: Transaction | Uint8Array;
139
140
  }): Promise<SignatureWithBytes>;
140
141
  signAndExecuteTransactionBlock(input: {
141
- transactionBlock: TransactionBlock;
142
+ transactionBlock: Transaction | Uint8Array;
142
143
  requestType?: ExecuteTransactionRequestType;
143
144
  options?: SuiTransactionBlockResponseOptions;
144
145
  }): Promise<SuiTransactionBlockResponse>;
@@ -146,12 +147,12 @@ interface IWallet {
146
147
 
147
148
  declare class MSafeGlobals {
148
149
  readonly backend: IBackend;
149
- readonly suiClient: SuiClient;
150
+ readonly suiClient: SuiJsonRpcClient;
150
151
  readonly config: MSafeConfig;
151
152
  _wallet: IWallet | undefined;
152
153
  constructor(input: {
153
154
  backend: IBackend;
154
- suiClient: SuiClient;
155
+ suiClient: SuiJsonRpcClient;
155
156
  config: MSafeConfig;
156
157
  });
157
158
  static New(env: MSafeEnv, options?: MSafeConfigOptions): Promise<MSafeGlobals>;
@@ -243,7 +244,7 @@ interface ProposeIntention {
243
244
  sequenceNumber: number;
244
245
  userAddress: string;
245
246
  msafeAddress: string;
246
- signature: SerializedSignature;
247
+ signature: string;
247
248
  }
248
249
  type SimulationResult = SimulationSuccessResult | SimulationFailedResult;
249
250
  interface SimulationSuccessResult {
@@ -320,12 +321,12 @@ declare class Simulator {
320
321
  private globals;
321
322
  constructor(globals: MSafeGlobals);
322
323
  simulate(input: {
323
- txb: TransactionBlock;
324
+ txb: Transaction;
324
325
  sender: string;
325
326
  }): Promise<SimulationResult>;
326
327
  private getGasPrice;
327
328
  private toGasBudget;
328
- private copyTransactionBlock;
329
+ private copyTransaction;
329
330
  }
330
331
 
331
332
  interface OwnedCoin {
@@ -357,11 +358,11 @@ declare class MSafeAccount {
357
358
  currentSequenceNumber(): Promise<number>;
358
359
  nextSequenceNumber(): Promise<number>;
359
360
  simulateIntention(request: Omit<IProposeIntentionRequest, 'msafeAddress' | 'signature'> & {
360
- txb?: TransactionBlock;
361
+ txb?: Transaction;
361
362
  }): Promise<SimulationResult>;
362
363
  proposeIntention(input: Omit<IProposeIntentionRequest, 'signature' | 'msafeAddress'>): Promise<void>;
363
364
  proposeIntentionAndBuildVote(input: Omit<IProposeIntentionAndBuildAndVoteRequest, 'signature' | 'msafeAddress' | 'payload' | 'digest'> & {
364
- txb?: TransactionBlock;
365
+ txb?: Transaction;
365
366
  }): Promise<void>;
366
367
  simulateCoinTransferIntention(intention: CoinTransferIntention): Promise<SimulationResult>;
367
368
  proposeCoinTransferIntention(intention: CoinTransferIntention): Promise<void>;
@@ -380,7 +381,7 @@ declare class MSafeAccount {
380
381
  }): Promise<void>;
381
382
  skipNextFailedIntention(): Promise<void>;
382
383
  fetchTransaction(): Promise<string[]>;
383
- executePendingTx(pending: PendingTx, isRejectTx?: boolean): Promise<_mysten_sui_js_client.SuiTransactionBlockResponse>;
384
+ executePendingTx(pending: PendingTx, isRejectTx?: boolean): Promise<_mysten_sui_jsonRpc.SuiTransactionBlockResponse>;
384
385
  dashboard(): Promise<_msafe_sui3_utils.IGetDashboardResp>;
385
386
  private calculateWeightFromVotes;
386
387
  private calculateWeight;
@@ -432,26 +433,26 @@ declare class SignatureVerifier {
432
433
  static getPublicKeyFromSignature(input: {
433
434
  message: Uint8Array;
434
435
  messageType: 'TransactionBlock' | 'Personal';
435
- signature: SerializedSignature;
436
- }): Promise<_mysten_sui_js_cryptography.PublicKey>;
436
+ signature: string;
437
+ }): Promise<_mysten_sui_cryptography.PublicKey>;
437
438
  static getPublicKeyFromPersonalSignature(input: {
438
439
  messageStr: string;
439
- signature: SerializedSignature;
440
- }): Promise<_mysten_sui_js_cryptography.PublicKey>;
440
+ signature: string;
441
+ }): Promise<_mysten_sui_cryptography.PublicKey>;
441
442
  static verifySignature(input: {
442
443
  message: Uint8Array;
443
444
  messageType: 'TransactionBlock' | 'Personal';
444
- signature: SerializedSignature;
445
+ signature: string;
445
446
  targetAddress: string;
446
447
  }): Promise<boolean>;
447
448
  static verifyPersonalSignature(input: {
448
449
  messageStr: string;
449
- signature: SerializedSignature;
450
+ signature: string;
450
451
  targetAddress: string;
451
452
  }): Promise<boolean>;
452
453
  static verifyTransactionSignature(input: {
453
454
  payload: Uint8Array;
454
- signature: SerializedSignature;
455
+ signature: string;
455
456
  targetAddress: string;
456
457
  }): Promise<boolean>;
457
458
  }
@@ -466,9 +467,9 @@ declare class Formatter {
466
467
  declare function addPrefix(s: string, prefix: string): string;
467
468
 
468
469
  declare const SUI_COIN = "0x2::sui::SUI";
469
- declare function getPublicKeyFromChain(suiClient: SuiClient, address: string): Promise<PublicKey | undefined>;
470
+ declare function getPublicKeyFromChain(suiClient: SuiJsonRpcClient, address: string): Promise<PublicKey | undefined>;
470
471
  declare function getAllCoins(input: {
471
- suiClient: SuiClient;
472
+ suiClient: SuiJsonRpcClient;
472
473
  owner: string;
473
474
  coinType: string | undefined;
474
475
  }): Promise<CoinStruct[]>;
@@ -476,7 +477,7 @@ declare function getAllCoins(input: {
476
477
  declare class CoinHelper {
477
478
  private _client;
478
479
  private _coinMetaReg;
479
- constructor(client: SuiClient);
480
+ constructor(client: SuiJsonRpcClient);
480
481
  getCoinMeta(coinType: string): Promise<CoinMetadata | undefined>;
481
482
  private queryCoinMeta;
482
483
  }
@@ -487,4 +488,9 @@ declare class Coin {
487
488
  static getBalance(data: SuiObjectData): bigint | undefined;
488
489
  }
489
490
 
490
- 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, InfoTypeEnabledDto, InfoTypeKey, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnabledDto, MSafeEnv, MSafeGlobals, type NotificationData, type NotificationInfo, NotificationSubscribeDto, NotificationUpdateDto, PREV_API_URL, PROD_API_URL, type Pagination, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationFailedResult, type SimulationOption, type SimulationResult, type SimulationSuccessResult, TESTNET_RPC_URL, Uint8ArrayToHex, addPrefix, getAllCoins, getMSafeConfig, getPublicKeyFromChain, stringToBuffer };
491
+ /**
492
+ * Normalize a transaction from legacy helpers (sui.js TransactionBlock) or v2 Transaction.
493
+ */
494
+ declare function toSuiTransaction(txb: Transaction | unknown): Transaction;
495
+
496
+ 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, InfoTypeEnabledDto, InfoTypeKey, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnabledDto, MSafeEnv, MSafeGlobals, type NotificationData, type NotificationInfo, NotificationSubscribeDto, NotificationUpdateDto, PREV_API_URL, PROD_API_URL, type Pagination, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationFailedResult, type SimulationOption, type SimulationResult, type SimulationSuccessResult, TESTNET_RPC_URL, Uint8ArrayToHex, addPrefix, getAllCoins, getMSafeConfig, getPublicKeyFromChain, msafeChainToSuiNetwork, stringToBuffer, toSuiTransaction };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _msafe_sui3_utils from '@msafe/sui3-utils';
2
2
  import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, IGetPendingTransactionRequest, GetPendingTransactionResponse, IGetHistoryTransactionsRequest, GetHistoryTransactionsResponse, IGetIntentionsRequest, GetTransactionIntentionsResponse, IMSafeAddressRequest, TransactionIntentionItem, ICreateMSafeReq, IProposeIntentionRequest, IRejectTransactionRequest, IVoteTransactionRequest, IBuildTransactionRequest, ISkipIntentionRequest, IProposeIntentionAndBuildAndVoteRequest, IGetAddressBookResult, UpdateAddressBookEntry, IGetAddressBookModeResult, ISetAddressBookModeReq, Report, IGetDashboardReq, IGetDashboardResp, TransactionType, TxIntention, IGasOption, PublicKeyWithSchema, AddressBookMode, MultiSigAccount, CoinTransferIntention, ObjectTransferIntention, PlainPayloadIntention } from '@msafe/sui3-utils';
3
- import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
4
- import { PublicKey, SerializedSignature, SignatureWithBytes } from '@mysten/sui.js/cryptography';
5
- import * as _mysten_sui_js_client from '@mysten/sui.js/client';
6
- import { SuiClientOptions, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, SuiClient, GasCostSummary, SuiObjectRef, DryRunTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
7
- import { TransactionBlock } from '@mysten/sui.js/transactions';
3
+ import * as _mysten_sui_cryptography from '@mysten/sui/cryptography';
4
+ import { PublicKey, SignatureWithBytes } from '@mysten/sui/cryptography';
5
+ import * as _mysten_sui_jsonRpc from '@mysten/sui/jsonRpc';
6
+ import { JsonRpcTransport, ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, SuiJsonRpcClient, GasCostSummary, SuiObjectRef, DryRunTransactionBlockResponse, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui/jsonRpc';
7
+ import { Transaction } from '@mysten/sui/transactions';
8
8
  import { Buffer } from 'buffer';
9
9
 
10
10
  declare enum InfoTypeKey {
@@ -78,7 +78,7 @@ interface IBackend {
78
78
  getAddressBookEntries(pagination?: IPageOptions): Promise<IGetAddressBookResult>;
79
79
  updateAddressBook(input: {
80
80
  updates: UpdateAddressBookEntry[];
81
- signature: SerializedSignature;
81
+ signature: string;
82
82
  }): Promise<void>;
83
83
  getAddressBookMode(): Promise<IGetAddressBookModeResult>;
84
84
  setAddressBookMode(input: ISetAddressBookModeReq): Promise<void>;
@@ -89,6 +89,7 @@ interface IBackend {
89
89
  updateNotificationSubscription(input: NotificationUpdateDto): Promise<void>;
90
90
  }
91
91
 
92
+ declare function msafeChainToSuiNetwork(chain: 'sui:mainnet' | 'sui:testnet'): 'mainnet' | 'testnet';
92
93
  declare enum MSafeEnv {
93
94
  local = "local",
94
95
  unit = "unit",
@@ -99,7 +100,7 @@ declare enum MSafeEnv {
99
100
  interface MSafeConfig {
100
101
  suiClient: {
101
102
  url: string;
102
- transport?: SuiClientOptions['transport'];
103
+ transport?: JsonRpcTransport;
103
104
  };
104
105
  backend: {
105
106
  url: string;
@@ -110,7 +111,7 @@ interface MSafeConfig {
110
111
  interface MSafeConfigOptions {
111
112
  suiClient?: {
112
113
  url: string;
113
- transport?: SuiClientOptions['transport'];
114
+ transport?: JsonRpcTransport;
114
115
  };
115
116
  backend?: {
116
117
  url?: string;
@@ -135,10 +136,10 @@ interface IWallet {
135
136
  messageStr: string;
136
137
  }): Promise<SignatureWithBytes>;
137
138
  signTransactionBlock(input: {
138
- transactionBlock: TransactionBlock | Uint8Array;
139
+ transactionBlock: Transaction | Uint8Array;
139
140
  }): Promise<SignatureWithBytes>;
140
141
  signAndExecuteTransactionBlock(input: {
141
- transactionBlock: TransactionBlock;
142
+ transactionBlock: Transaction | Uint8Array;
142
143
  requestType?: ExecuteTransactionRequestType;
143
144
  options?: SuiTransactionBlockResponseOptions;
144
145
  }): Promise<SuiTransactionBlockResponse>;
@@ -146,12 +147,12 @@ interface IWallet {
146
147
 
147
148
  declare class MSafeGlobals {
148
149
  readonly backend: IBackend;
149
- readonly suiClient: SuiClient;
150
+ readonly suiClient: SuiJsonRpcClient;
150
151
  readonly config: MSafeConfig;
151
152
  _wallet: IWallet | undefined;
152
153
  constructor(input: {
153
154
  backend: IBackend;
154
- suiClient: SuiClient;
155
+ suiClient: SuiJsonRpcClient;
155
156
  config: MSafeConfig;
156
157
  });
157
158
  static New(env: MSafeEnv, options?: MSafeConfigOptions): Promise<MSafeGlobals>;
@@ -243,7 +244,7 @@ interface ProposeIntention {
243
244
  sequenceNumber: number;
244
245
  userAddress: string;
245
246
  msafeAddress: string;
246
- signature: SerializedSignature;
247
+ signature: string;
247
248
  }
248
249
  type SimulationResult = SimulationSuccessResult | SimulationFailedResult;
249
250
  interface SimulationSuccessResult {
@@ -320,12 +321,12 @@ declare class Simulator {
320
321
  private globals;
321
322
  constructor(globals: MSafeGlobals);
322
323
  simulate(input: {
323
- txb: TransactionBlock;
324
+ txb: Transaction;
324
325
  sender: string;
325
326
  }): Promise<SimulationResult>;
326
327
  private getGasPrice;
327
328
  private toGasBudget;
328
- private copyTransactionBlock;
329
+ private copyTransaction;
329
330
  }
330
331
 
331
332
  interface OwnedCoin {
@@ -357,11 +358,11 @@ declare class MSafeAccount {
357
358
  currentSequenceNumber(): Promise<number>;
358
359
  nextSequenceNumber(): Promise<number>;
359
360
  simulateIntention(request: Omit<IProposeIntentionRequest, 'msafeAddress' | 'signature'> & {
360
- txb?: TransactionBlock;
361
+ txb?: Transaction;
361
362
  }): Promise<SimulationResult>;
362
363
  proposeIntention(input: Omit<IProposeIntentionRequest, 'signature' | 'msafeAddress'>): Promise<void>;
363
364
  proposeIntentionAndBuildVote(input: Omit<IProposeIntentionAndBuildAndVoteRequest, 'signature' | 'msafeAddress' | 'payload' | 'digest'> & {
364
- txb?: TransactionBlock;
365
+ txb?: Transaction;
365
366
  }): Promise<void>;
366
367
  simulateCoinTransferIntention(intention: CoinTransferIntention): Promise<SimulationResult>;
367
368
  proposeCoinTransferIntention(intention: CoinTransferIntention): Promise<void>;
@@ -380,7 +381,7 @@ declare class MSafeAccount {
380
381
  }): Promise<void>;
381
382
  skipNextFailedIntention(): Promise<void>;
382
383
  fetchTransaction(): Promise<string[]>;
383
- executePendingTx(pending: PendingTx, isRejectTx?: boolean): Promise<_mysten_sui_js_client.SuiTransactionBlockResponse>;
384
+ executePendingTx(pending: PendingTx, isRejectTx?: boolean): Promise<_mysten_sui_jsonRpc.SuiTransactionBlockResponse>;
384
385
  dashboard(): Promise<_msafe_sui3_utils.IGetDashboardResp>;
385
386
  private calculateWeightFromVotes;
386
387
  private calculateWeight;
@@ -432,26 +433,26 @@ declare class SignatureVerifier {
432
433
  static getPublicKeyFromSignature(input: {
433
434
  message: Uint8Array;
434
435
  messageType: 'TransactionBlock' | 'Personal';
435
- signature: SerializedSignature;
436
- }): Promise<_mysten_sui_js_cryptography.PublicKey>;
436
+ signature: string;
437
+ }): Promise<_mysten_sui_cryptography.PublicKey>;
437
438
  static getPublicKeyFromPersonalSignature(input: {
438
439
  messageStr: string;
439
- signature: SerializedSignature;
440
- }): Promise<_mysten_sui_js_cryptography.PublicKey>;
440
+ signature: string;
441
+ }): Promise<_mysten_sui_cryptography.PublicKey>;
441
442
  static verifySignature(input: {
442
443
  message: Uint8Array;
443
444
  messageType: 'TransactionBlock' | 'Personal';
444
- signature: SerializedSignature;
445
+ signature: string;
445
446
  targetAddress: string;
446
447
  }): Promise<boolean>;
447
448
  static verifyPersonalSignature(input: {
448
449
  messageStr: string;
449
- signature: SerializedSignature;
450
+ signature: string;
450
451
  targetAddress: string;
451
452
  }): Promise<boolean>;
452
453
  static verifyTransactionSignature(input: {
453
454
  payload: Uint8Array;
454
- signature: SerializedSignature;
455
+ signature: string;
455
456
  targetAddress: string;
456
457
  }): Promise<boolean>;
457
458
  }
@@ -466,9 +467,9 @@ declare class Formatter {
466
467
  declare function addPrefix(s: string, prefix: string): string;
467
468
 
468
469
  declare const SUI_COIN = "0x2::sui::SUI";
469
- declare function getPublicKeyFromChain(suiClient: SuiClient, address: string): Promise<PublicKey | undefined>;
470
+ declare function getPublicKeyFromChain(suiClient: SuiJsonRpcClient, address: string): Promise<PublicKey | undefined>;
470
471
  declare function getAllCoins(input: {
471
- suiClient: SuiClient;
472
+ suiClient: SuiJsonRpcClient;
472
473
  owner: string;
473
474
  coinType: string | undefined;
474
475
  }): Promise<CoinStruct[]>;
@@ -476,7 +477,7 @@ declare function getAllCoins(input: {
476
477
  declare class CoinHelper {
477
478
  private _client;
478
479
  private _coinMetaReg;
479
- constructor(client: SuiClient);
480
+ constructor(client: SuiJsonRpcClient);
480
481
  getCoinMeta(coinType: string): Promise<CoinMetadata | undefined>;
481
482
  private queryCoinMeta;
482
483
  }
@@ -487,4 +488,9 @@ declare class Coin {
487
488
  static getBalance(data: SuiObjectData): bigint | undefined;
488
489
  }
489
490
 
490
- 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, InfoTypeEnabledDto, InfoTypeKey, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnabledDto, MSafeEnv, MSafeGlobals, type NotificationData, type NotificationInfo, NotificationSubscribeDto, NotificationUpdateDto, PREV_API_URL, PROD_API_URL, type Pagination, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationFailedResult, type SimulationOption, type SimulationResult, type SimulationSuccessResult, TESTNET_RPC_URL, Uint8ArrayToHex, addPrefix, getAllCoins, getMSafeConfig, getPublicKeyFromChain, stringToBuffer };
491
+ /**
492
+ * Normalize a transaction from legacy helpers (sui.js TransactionBlock) or v2 Transaction.
493
+ */
494
+ declare function toSuiTransaction(txb: Transaction | unknown): Transaction;
495
+
496
+ 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, InfoTypeEnabledDto, InfoTypeKey, LOCAL_API_URL, LOCAL_SYNCING_URL, MAINNET_RPC_URL, MSafeAccount, MSafeClient, type MSafeConfig, type MSafeConfigOptions, MSafeEnabledDto, MSafeEnv, MSafeGlobals, type NotificationData, type NotificationInfo, NotificationSubscribeDto, NotificationUpdateDto, PREV_API_URL, PROD_API_URL, type Pagination, type PendingTx, type PendingVote, type ProposeIntention, type ReceiveTransaction, SUI_COIN, SignatureVerifier, type SimulationFailedResult, type SimulationOption, type SimulationResult, type SimulationSuccessResult, TESTNET_RPC_URL, Uint8ArrayToHex, addPrefix, getAllCoins, getMSafeConfig, getPublicKeyFromChain, msafeChainToSuiNetwork, stringToBuffer, toSuiTransaction };