@orderly.network/ui-transfer 2.8.8 → 2.8.9

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.mts CHANGED
@@ -187,6 +187,11 @@ declare const DepositForm: FC<DepositFormScriptReturn>;
187
187
  type DepositFormWidgetProps = DepositFormScriptOptions;
188
188
  declare const DepositFormWidget: FC<DepositFormWidgetProps>;
189
189
 
190
+ type AccountInfo = {
191
+ accountId: string;
192
+ address: string;
193
+ };
194
+
190
195
  type WithdrawFormScriptReturn = ReturnType<typeof useWithdrawFormScript>;
191
196
  type WithdrawFormScriptOptions = {
192
197
  close?: () => void;
@@ -200,12 +205,25 @@ declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
200
205
  isLoggedIn: boolean;
201
206
  isTokenUnsupported: boolean;
202
207
  onSwitchToSupportedNetwork: (this: unknown) => Promise<void>;
208
+ enableWithdrawToExternalWallet: boolean;
209
+ externalWallets: any;
210
+ selectedWalletAddress: string | undefined;
211
+ onSelectWallet: (address: string) => void;
212
+ onAddExternalWallet: (addr: string, network?: "EVM" | "SOL") => void;
213
+ setExternalWallets: (value: {
214
+ address: string;
215
+ network?: "EVM" | "SOL";
216
+ }[]) => void;
217
+ isEnableTrading: boolean;
203
218
  toAccountId: string;
204
- setToAccountId: react.Dispatch<react.SetStateAction<string>>;
219
+ setToAccountId: (val: string) => void;
205
220
  onTransfer: () => void;
206
221
  internalWithdrawSubmitting: boolean;
207
222
  toAccountIdInputStatus: InputStatus;
208
223
  toAccountIdHintMessage: string | undefined;
224
+ toAccountInfo: AccountInfo | null;
225
+ toAccountInfoDropdownOpen: boolean;
226
+ setToAccountInfoDropdownOpen: react.Dispatch<react.SetStateAction<boolean>>;
209
227
  walletName: string | undefined;
210
228
  address: string | undefined;
211
229
  quantity: string;
@@ -274,7 +292,7 @@ declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
274
292
  };
275
293
 
276
294
  type WithdrawFormProps = WithdrawFormScriptReturn;
277
- declare const WithdrawForm: react__default.FC<WithdrawFormProps>;
295
+ declare const WithdrawForm: React.FC<WithdrawFormProps>;
278
296
 
279
297
  type WithdrawFormWidgetProps = WithdrawFormScriptOptions;
280
298
  declare const WithdrawFormWidget: FC<WithdrawFormWidgetProps>;
package/dist/index.d.ts CHANGED
@@ -187,6 +187,11 @@ declare const DepositForm: FC<DepositFormScriptReturn>;
187
187
  type DepositFormWidgetProps = DepositFormScriptOptions;
188
188
  declare const DepositFormWidget: FC<DepositFormWidgetProps>;
189
189
 
190
+ type AccountInfo = {
191
+ accountId: string;
192
+ address: string;
193
+ };
194
+
190
195
  type WithdrawFormScriptReturn = ReturnType<typeof useWithdrawFormScript>;
191
196
  type WithdrawFormScriptOptions = {
192
197
  close?: () => void;
@@ -200,12 +205,25 @@ declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
200
205
  isLoggedIn: boolean;
201
206
  isTokenUnsupported: boolean;
202
207
  onSwitchToSupportedNetwork: (this: unknown) => Promise<void>;
208
+ enableWithdrawToExternalWallet: boolean;
209
+ externalWallets: any;
210
+ selectedWalletAddress: string | undefined;
211
+ onSelectWallet: (address: string) => void;
212
+ onAddExternalWallet: (addr: string, network?: "EVM" | "SOL") => void;
213
+ setExternalWallets: (value: {
214
+ address: string;
215
+ network?: "EVM" | "SOL";
216
+ }[]) => void;
217
+ isEnableTrading: boolean;
203
218
  toAccountId: string;
204
- setToAccountId: react.Dispatch<react.SetStateAction<string>>;
219
+ setToAccountId: (val: string) => void;
205
220
  onTransfer: () => void;
206
221
  internalWithdrawSubmitting: boolean;
207
222
  toAccountIdInputStatus: InputStatus;
208
223
  toAccountIdHintMessage: string | undefined;
224
+ toAccountInfo: AccountInfo | null;
225
+ toAccountInfoDropdownOpen: boolean;
226
+ setToAccountInfoDropdownOpen: react.Dispatch<react.SetStateAction<boolean>>;
209
227
  walletName: string | undefined;
210
228
  address: string | undefined;
211
229
  quantity: string;
@@ -274,7 +292,7 @@ declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
274
292
  };
275
293
 
276
294
  type WithdrawFormProps = WithdrawFormScriptReturn;
277
- declare const WithdrawForm: react__default.FC<WithdrawFormProps>;
295
+ declare const WithdrawForm: React.FC<WithdrawFormProps>;
278
296
 
279
297
  type WithdrawFormWidgetProps = WithdrawFormScriptOptions;
280
298
  declare const WithdrawFormWidget: FC<WithdrawFormWidgetProps>;