@orderly.network/hooks 1.0.26-alpha.2 → 1.0.26

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.26-alpha.2";
26
+ declare const _default: "1.0.26";
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.26-alpha.2";
26
+ declare const _default: "1.0.26";
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.26-alpha.2";
31
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.26";
32
32
  }
33
- var version_default = "1.0.26-alpha.2";
33
+ var version_default = "1.0.26";
34
34
  var fetcher = (url, init = {}, queryOptions) => net.get(url, init, queryOptions?.formatter);
35
35
  var OrderlyContext = React.createContext({
36
36
  // configStore: new MemoryConfigStore(),
@@ -432,8 +432,7 @@ var useWS = () => {
432
432
  const account5 = core.SimpleDI.get(core.Account.instanceName);
433
433
  if (!websocketClient) {
434
434
  websocketClient = new net.WS({
435
- // accountId: "OqdphuyCtYWxwzhxyLLjOWNdFP7sQt8RPWzmb5xY",
436
- networkId: "testnet",
435
+ networkId: configStore.get("networkId"),
437
436
  publicUrl: configStore.get("publicWsUrl"),
438
437
  privateUrl: configStore.get("privateWsUrl"),
439
438
  onSigntureRequest: async (accountId) => {
@@ -3239,25 +3238,6 @@ var useChains = (networkId, options = {}) => {
3239
3238
  ]
3240
3239
  }
3241
3240
  ];
3242
- if (networkEnv === "testnet") {
3243
- const opGoerli = {
3244
- network_infos: {
3245
- name: "Optimism Goerli",
3246
- shortName: "Optimism Goerli",
3247
- public_rpc_url: "https://optimism-goerli.gateway.tenderly.co",
3248
- chain_id: 420,
3249
- currency_symbol: "ETH",
3250
- bridge_enable: true,
3251
- mainnet: false,
3252
- explorer_base_url: "https://goerli-optimism.etherscan.io",
3253
- est_txn_mins: null,
3254
- woofi_dex_cross_chain_router: "",
3255
- woofi_dex_depositor: ""
3256
- }
3257
- };
3258
- testnetArr.push(opGoerli);
3259
- map.current.set(420, opGoerli);
3260
- }
3261
3241
  let mainnetArr = [];
3262
3242
  map.current.set(421613, testnetArr[0]);
3263
3243
  if (wooSwapEnabled) {