@orderly.network/hooks 1.0.28-alpha.6 → 1.0.28-alpha.7

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
@@ -23,7 +23,7 @@ declare global {
23
23
  };
24
24
  }
25
25
  }
26
- declare const _default: "1.0.28-alpha.6";
26
+ declare const _default: "1.0.28-alpha.7";
27
27
 
28
28
  declare type useQueryOptions<T> = SWRConfiguration & {
29
29
  formatter?: (data: any) => T;
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ declare global {
23
23
  };
24
24
  }
25
25
  }
26
- declare const _default: "1.0.28-alpha.6";
26
+ declare const _default: "1.0.28-alpha.7";
27
27
 
28
28
  declare type useQueryOptions<T> = SWRConfiguration & {
29
29
  formatter?: (data: any) => T;
package/dist/index.js CHANGED
@@ -28,9 +28,9 @@ var useSWRSubscription__default = /*#__PURE__*/_interopDefault(useSWRSubscriptio
28
28
  // src/version.ts
29
29
  if (typeof window !== "undefined") {
30
30
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
31
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-alpha.6";
31
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-alpha.7";
32
32
  }
33
- var version_default = "1.0.28-alpha.6";
33
+ var version_default = "1.0.28-alpha.7";
34
34
  var fetcher = (url, init = {}, queryOptions) => net.get(url, init, queryOptions?.formatter);
35
35
  var OrderlyContext = React.createContext({
36
36
  // configStore: new MemoryConfigStore(),
@@ -3124,8 +3124,6 @@ var woofiDexCrossChainRouterAbi = [
3124
3124
  ];
3125
3125
  var nativeTokenAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
3126
3126
  var isNativeTokenChecker = (address) => address === nativeTokenAddress;
3127
- var woofiDexDepositor = "0x7347383c4D258f3c64987acaf0E7c3C2bF5bE0bA";
3128
- var woofiDexCrossChainRouter = "0x82Fde5086784e348aEd03eB7b19ded97652DB7A8";
3129
3127
 
3130
3128
  // src/orderly/useChains.ts
3131
3129
  var useChains = (networkId, options = {}) => {
@@ -3333,14 +3331,14 @@ var useChains = (networkId, options = {}) => {
3333
3331
  mainnetArr = mainnetArr.map((item) => item[field]);
3334
3332
  }
3335
3333
  if (networkId === "mainnet") {
3336
- return wrapTestData(mainnetArr);
3334
+ return mainnetArr;
3337
3335
  }
3338
3336
  if (networkId === "testnet") {
3339
3337
  return testnetArr;
3340
3338
  }
3341
3339
  return {
3342
3340
  testnet: testnetArr,
3343
- mainnet: wrapTestData(mainnetArr)
3341
+ mainnet: mainnetArr
3344
3342
  };
3345
3343
  }, [
3346
3344
  data,
@@ -3378,29 +3376,6 @@ var useChains = (networkId, options = {}) => {
3378
3376
  }
3379
3377
  ];
3380
3378
  };
3381
- function wrapTestData(chains) {
3382
- const mapData = (list) => {
3383
- return list.map((item) => {
3384
- if (item.name === "Arbitrum") {
3385
- return {
3386
- ...item,
3387
- woofi_dex_depositor: woofiDexDepositor
3388
- };
3389
- }
3390
- if (item.name === "Base") {
3391
- return {
3392
- ...item,
3393
- woofi_dex_cross_chain_router: woofiDexCrossChainRouter
3394
- };
3395
- }
3396
- return item;
3397
- });
3398
- };
3399
- if (Array.isArray(chains)) {
3400
- return mapData(chains);
3401
- }
3402
- return chains;
3403
- }
3404
3379
  var useChain = (token) => {
3405
3380
  const { data, isLoading } = useQuery("/v1/public/token");
3406
3381
  const chains = React.useMemo(() => {