@orderly.network/ui-transfer 2.5.0 → 2.5.1
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 +6 -10
- package/dist/index.d.ts +6 -10
- package/dist/index.js +35 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -347,12 +347,10 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
347
347
|
address: string | undefined;
|
|
348
348
|
quantity: string;
|
|
349
349
|
onQuantityChange: (qty: string) => void;
|
|
350
|
-
token: API.
|
|
351
|
-
sourceTokens: API.
|
|
352
|
-
onSourceTokenChange: react.Dispatch<react.SetStateAction<API.
|
|
353
|
-
targetToken: API.
|
|
354
|
-
inputStatus: InputStatus;
|
|
355
|
-
hintMessage: string | undefined;
|
|
350
|
+
token: API.Chain;
|
|
351
|
+
sourceTokens: API.Chain[];
|
|
352
|
+
onSourceTokenChange: react.Dispatch<react.SetStateAction<API.Chain | undefined>>;
|
|
353
|
+
targetToken: API.Chain | undefined;
|
|
356
354
|
balanceRevalidating: boolean;
|
|
357
355
|
maxQuantity: number;
|
|
358
356
|
disabled: boolean;
|
|
@@ -360,11 +358,9 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
360
358
|
wrongNetwork: boolean;
|
|
361
359
|
onConvert: () => Promise<void>;
|
|
362
360
|
crossChainTrans: boolean;
|
|
363
|
-
networkId: NetworkId;
|
|
364
|
-
checkIsBridgeless: boolean;
|
|
365
361
|
hasPositions: boolean;
|
|
366
362
|
onSettlePnl: () => Promise<any>;
|
|
367
|
-
|
|
363
|
+
networkId: NetworkId;
|
|
368
364
|
slippage: any;
|
|
369
365
|
onSlippageChange: (value: number) => void;
|
|
370
366
|
convertRate: string;
|
|
@@ -400,7 +396,7 @@ declare const QuantityInput: react.ForwardRefExoticComponent<{
|
|
|
400
396
|
status?: InputStatus;
|
|
401
397
|
hintMessage?: string;
|
|
402
398
|
onValueChange?: (value: string) => void;
|
|
403
|
-
onTokenChange?: (token:
|
|
399
|
+
onTokenChange?: (token: any) => void;
|
|
404
400
|
fetchBalance?: (token: string, decimals: number) => Promise<any>;
|
|
405
401
|
loading?: boolean;
|
|
406
402
|
testId?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -347,12 +347,10 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
347
347
|
address: string | undefined;
|
|
348
348
|
quantity: string;
|
|
349
349
|
onQuantityChange: (qty: string) => void;
|
|
350
|
-
token: API.
|
|
351
|
-
sourceTokens: API.
|
|
352
|
-
onSourceTokenChange: react.Dispatch<react.SetStateAction<API.
|
|
353
|
-
targetToken: API.
|
|
354
|
-
inputStatus: InputStatus;
|
|
355
|
-
hintMessage: string | undefined;
|
|
350
|
+
token: API.Chain;
|
|
351
|
+
sourceTokens: API.Chain[];
|
|
352
|
+
onSourceTokenChange: react.Dispatch<react.SetStateAction<API.Chain | undefined>>;
|
|
353
|
+
targetToken: API.Chain | undefined;
|
|
356
354
|
balanceRevalidating: boolean;
|
|
357
355
|
maxQuantity: number;
|
|
358
356
|
disabled: boolean;
|
|
@@ -360,11 +358,9 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
360
358
|
wrongNetwork: boolean;
|
|
361
359
|
onConvert: () => Promise<void>;
|
|
362
360
|
crossChainTrans: boolean;
|
|
363
|
-
networkId: NetworkId;
|
|
364
|
-
checkIsBridgeless: boolean;
|
|
365
361
|
hasPositions: boolean;
|
|
366
362
|
onSettlePnl: () => Promise<any>;
|
|
367
|
-
|
|
363
|
+
networkId: NetworkId;
|
|
368
364
|
slippage: any;
|
|
369
365
|
onSlippageChange: (value: number) => void;
|
|
370
366
|
convertRate: string;
|
|
@@ -400,7 +396,7 @@ declare const QuantityInput: react.ForwardRefExoticComponent<{
|
|
|
400
396
|
status?: InputStatus;
|
|
401
397
|
hintMessage?: string;
|
|
402
398
|
onValueChange?: (value: string) => void;
|
|
403
|
-
onTokenChange?: (token:
|
|
399
|
+
onTokenChange?: (token: any) => void;
|
|
404
400
|
fetchBalance?: (token: string, decimals: number) => Promise<any>;
|
|
405
401
|
loading?: boolean;
|
|
406
402
|
testId?: string;
|