@orderly.network/hooks 2.8.2 → 2.8.3-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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -36,7 +36,7 @@ declare global {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
declare const _default: "2.8.
|
|
39
|
+
declare const _default: "2.8.3-alpha.0";
|
|
40
40
|
|
|
41
41
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
42
42
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -1329,6 +1329,7 @@ declare const useDeposit: (options: DepositOptions) => {
|
|
|
1329
1329
|
fetchBalances: (tokens: API.TokenInfo[]) => Promise<Record<string, string>>;
|
|
1330
1330
|
/** set input quantity */
|
|
1331
1331
|
setQuantity: react.Dispatch<react.SetStateAction<string>>;
|
|
1332
|
+
targetChain: API.Chain;
|
|
1332
1333
|
};
|
|
1333
1334
|
|
|
1334
1335
|
interface ConvertOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare global {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
declare const _default: "2.8.
|
|
39
|
+
declare const _default: "2.8.3-alpha.0";
|
|
40
40
|
|
|
41
41
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
42
42
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -1329,6 +1329,7 @@ declare const useDeposit: (options: DepositOptions) => {
|
|
|
1329
1329
|
fetchBalances: (tokens: API.TokenInfo[]) => Promise<Record<string, string>>;
|
|
1330
1330
|
/** set input quantity */
|
|
1331
1331
|
setQuantity: react.Dispatch<react.SetStateAction<string>>;
|
|
1332
|
+
targetChain: API.Chain;
|
|
1332
1333
|
};
|
|
1333
1334
|
|
|
1334
1335
|
interface ConvertOptions {
|
package/dist/index.js
CHANGED
|
@@ -64,9 +64,9 @@ var __export = (target, all) => {
|
|
|
64
64
|
// src/version.ts
|
|
65
65
|
if (typeof window !== "undefined") {
|
|
66
66
|
window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
|
|
67
|
-
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.8.
|
|
67
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.8.3-alpha.0";
|
|
68
68
|
}
|
|
69
|
-
var version_default = "2.8.
|
|
69
|
+
var version_default = "2.8.3-alpha.0";
|
|
70
70
|
var fetcher = (url, init2 = {}, queryOptions) => net.get(url, init2, queryOptions?.formatter);
|
|
71
71
|
var noCacheConfig = {
|
|
72
72
|
dedupingInterval: 0,
|
|
@@ -6645,6 +6645,7 @@ function formatChains({
|
|
|
6645
6645
|
name,
|
|
6646
6646
|
public_rpc_url,
|
|
6647
6647
|
currency_symbol,
|
|
6648
|
+
currency_decimal,
|
|
6648
6649
|
explorer_base_url,
|
|
6649
6650
|
vault_address
|
|
6650
6651
|
} = chainInfo;
|
|
@@ -6656,6 +6657,7 @@ function formatChains({
|
|
|
6656
6657
|
mainnet,
|
|
6657
6658
|
public_rpc_url,
|
|
6658
6659
|
currency_symbol,
|
|
6660
|
+
currency_decimal,
|
|
6659
6661
|
bridge_enable: true,
|
|
6660
6662
|
explorer_base_url,
|
|
6661
6663
|
// swap field
|
|
@@ -7396,7 +7398,8 @@ var useDeposit = (options) => {
|
|
|
7396
7398
|
fetchBalance: fetchBalanceHandler,
|
|
7397
7399
|
fetchBalances,
|
|
7398
7400
|
/** set input quantity */
|
|
7399
|
-
setQuantity
|
|
7401
|
+
setQuantity,
|
|
7402
|
+
targetChain
|
|
7400
7403
|
};
|
|
7401
7404
|
};
|
|
7402
7405
|
function ignoreBalanceError(options) {
|