@orderly.network/ui-transfer 2.8.0 → 2.8.1-alpha.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.d.mts +33 -7
- package/dist/index.d.ts +33 -7
- package/dist/index.js +45 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { FC, ReactNode } from 'react';
|
|
3
3
|
import { ConnectedChain, Chain, SubAccount } from '@orderly.network/hooks';
|
|
4
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
4
5
|
import { API, NetworkId, AssetHistoryStatusEnum } from '@orderly.network/types';
|
|
5
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import { InputFormatter, InputProps } from '@orderly.network/ui';
|
|
@@ -173,11 +174,11 @@ type WithdrawFormScriptOptions = {
|
|
|
173
174
|
close?: () => void;
|
|
174
175
|
};
|
|
175
176
|
declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
|
|
177
|
+
withdrawTo: WithdrawTo;
|
|
178
|
+
setWithdrawTo: react.Dispatch<react.SetStateAction<WithdrawTo>>;
|
|
176
179
|
currentLTV: number;
|
|
177
180
|
nextLTV: number;
|
|
178
181
|
warningMessage: string | undefined;
|
|
179
|
-
withdrawTo: WithdrawTo;
|
|
180
|
-
setWithdrawTo: react.Dispatch<react.SetStateAction<WithdrawTo>>;
|
|
181
182
|
toAccountId: string;
|
|
182
183
|
setToAccountId: react.Dispatch<react.SetStateAction<string>>;
|
|
183
184
|
onTransfer: () => void;
|
|
@@ -353,10 +354,26 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
353
354
|
address: string | undefined;
|
|
354
355
|
quantity: string;
|
|
355
356
|
onQuantityChange: (qty: string) => void;
|
|
356
|
-
token: API.Chain
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
token: (_orderly_network_types.API.Chain & {
|
|
358
|
+
contract_address: string;
|
|
359
|
+
quoteChainId: string;
|
|
360
|
+
precision: number;
|
|
361
|
+
}) | undefined;
|
|
362
|
+
sourceTokens: (_orderly_network_types.API.Chain & {
|
|
363
|
+
contract_address: string;
|
|
364
|
+
quoteChainId: string;
|
|
365
|
+
precision: number;
|
|
366
|
+
})[];
|
|
367
|
+
onSourceTokenChange: react.Dispatch<react.SetStateAction<(_orderly_network_types.API.Chain & {
|
|
368
|
+
contract_address: string;
|
|
369
|
+
quoteChainId: string;
|
|
370
|
+
precision: number;
|
|
371
|
+
}) | undefined>>;
|
|
372
|
+
targetToken: (_orderly_network_types.API.Chain & {
|
|
373
|
+
contract_address: string;
|
|
374
|
+
quoteChainId: string;
|
|
375
|
+
precision: number;
|
|
376
|
+
}) | undefined;
|
|
360
377
|
balanceRevalidating: boolean;
|
|
361
378
|
maxQuantity: number;
|
|
362
379
|
disabled: boolean;
|
|
@@ -374,6 +391,16 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
374
391
|
isQuoteLoading: boolean;
|
|
375
392
|
currentLTV: number;
|
|
376
393
|
nextLTV: number;
|
|
394
|
+
targetChainInfo: {
|
|
395
|
+
precision: number | undefined;
|
|
396
|
+
chain_id?: string | undefined;
|
|
397
|
+
contract_address?: string | undefined;
|
|
398
|
+
decimals?: number | undefined;
|
|
399
|
+
withdrawal_fee?: number | undefined;
|
|
400
|
+
chain_name?: string;
|
|
401
|
+
cross_chain_withdrawal_fee?: number | undefined;
|
|
402
|
+
display_name?: string | undefined;
|
|
403
|
+
};
|
|
377
404
|
};
|
|
378
405
|
|
|
379
406
|
type ConvertFormProps = ConvertFormScriptReturn;
|
|
@@ -410,7 +437,6 @@ type QuantityInputProps = {
|
|
|
410
437
|
formatters?: InputFormatter[];
|
|
411
438
|
vaultBalanceList?: API.VaultBalance[];
|
|
412
439
|
displayType?: "balance" | "vaultBalance";
|
|
413
|
-
checkVaultBalance?: boolean;
|
|
414
440
|
} & Omit<InputProps, "onClear" | "suffix" | "onValueChange">;
|
|
415
441
|
declare const QuantityInput: FC<QuantityInputProps>;
|
|
416
442
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { FC, ReactNode } from 'react';
|
|
3
3
|
import { ConnectedChain, Chain, SubAccount } from '@orderly.network/hooks';
|
|
4
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
4
5
|
import { API, NetworkId, AssetHistoryStatusEnum } from '@orderly.network/types';
|
|
5
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import { InputFormatter, InputProps } from '@orderly.network/ui';
|
|
@@ -173,11 +174,11 @@ type WithdrawFormScriptOptions = {
|
|
|
173
174
|
close?: () => void;
|
|
174
175
|
};
|
|
175
176
|
declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
|
|
177
|
+
withdrawTo: WithdrawTo;
|
|
178
|
+
setWithdrawTo: react.Dispatch<react.SetStateAction<WithdrawTo>>;
|
|
176
179
|
currentLTV: number;
|
|
177
180
|
nextLTV: number;
|
|
178
181
|
warningMessage: string | undefined;
|
|
179
|
-
withdrawTo: WithdrawTo;
|
|
180
|
-
setWithdrawTo: react.Dispatch<react.SetStateAction<WithdrawTo>>;
|
|
181
182
|
toAccountId: string;
|
|
182
183
|
setToAccountId: react.Dispatch<react.SetStateAction<string>>;
|
|
183
184
|
onTransfer: () => void;
|
|
@@ -353,10 +354,26 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
353
354
|
address: string | undefined;
|
|
354
355
|
quantity: string;
|
|
355
356
|
onQuantityChange: (qty: string) => void;
|
|
356
|
-
token: API.Chain
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
token: (_orderly_network_types.API.Chain & {
|
|
358
|
+
contract_address: string;
|
|
359
|
+
quoteChainId: string;
|
|
360
|
+
precision: number;
|
|
361
|
+
}) | undefined;
|
|
362
|
+
sourceTokens: (_orderly_network_types.API.Chain & {
|
|
363
|
+
contract_address: string;
|
|
364
|
+
quoteChainId: string;
|
|
365
|
+
precision: number;
|
|
366
|
+
})[];
|
|
367
|
+
onSourceTokenChange: react.Dispatch<react.SetStateAction<(_orderly_network_types.API.Chain & {
|
|
368
|
+
contract_address: string;
|
|
369
|
+
quoteChainId: string;
|
|
370
|
+
precision: number;
|
|
371
|
+
}) | undefined>>;
|
|
372
|
+
targetToken: (_orderly_network_types.API.Chain & {
|
|
373
|
+
contract_address: string;
|
|
374
|
+
quoteChainId: string;
|
|
375
|
+
precision: number;
|
|
376
|
+
}) | undefined;
|
|
360
377
|
balanceRevalidating: boolean;
|
|
361
378
|
maxQuantity: number;
|
|
362
379
|
disabled: boolean;
|
|
@@ -374,6 +391,16 @@ declare const useConvertFormScript: (options: ConvertFormScriptOptions) => {
|
|
|
374
391
|
isQuoteLoading: boolean;
|
|
375
392
|
currentLTV: number;
|
|
376
393
|
nextLTV: number;
|
|
394
|
+
targetChainInfo: {
|
|
395
|
+
precision: number | undefined;
|
|
396
|
+
chain_id?: string | undefined;
|
|
397
|
+
contract_address?: string | undefined;
|
|
398
|
+
decimals?: number | undefined;
|
|
399
|
+
withdrawal_fee?: number | undefined;
|
|
400
|
+
chain_name?: string;
|
|
401
|
+
cross_chain_withdrawal_fee?: number | undefined;
|
|
402
|
+
display_name?: string | undefined;
|
|
403
|
+
};
|
|
377
404
|
};
|
|
378
405
|
|
|
379
406
|
type ConvertFormProps = ConvertFormScriptReturn;
|
|
@@ -410,7 +437,6 @@ type QuantityInputProps = {
|
|
|
410
437
|
formatters?: InputFormatter[];
|
|
411
438
|
vaultBalanceList?: API.VaultBalance[];
|
|
412
439
|
displayType?: "balance" | "vaultBalance";
|
|
413
|
-
checkVaultBalance?: boolean;
|
|
414
440
|
} & Omit<InputProps, "onClear" | "suffix" | "onValueChange">;
|
|
415
441
|
declare const QuantityInput: FC<QuantityInputProps>;
|
|
416
442
|
|