@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.mjs CHANGED
@@ -20,9 +20,9 @@ import { createClient } from '@layerzerolabs/scan-client';
20
20
  // src/version.ts
21
21
  if (typeof window !== "undefined") {
22
22
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
23
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.26-alpha.2";
23
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.26";
24
24
  }
25
- var version_default = "1.0.26-alpha.2";
25
+ var version_default = "1.0.26";
26
26
  var fetcher = (url, init = {}, queryOptions) => get(url, init, queryOptions?.formatter);
27
27
  var OrderlyContext = createContext({
28
28
  // configStore: new MemoryConfigStore(),
@@ -424,8 +424,7 @@ var useWS = () => {
424
424
  const account5 = SimpleDI.get(Account.instanceName);
425
425
  if (!websocketClient) {
426
426
  websocketClient = new WS({
427
- // accountId: "OqdphuyCtYWxwzhxyLLjOWNdFP7sQt8RPWzmb5xY",
428
- networkId: "testnet",
427
+ networkId: configStore.get("networkId"),
429
428
  publicUrl: configStore.get("publicWsUrl"),
430
429
  privateUrl: configStore.get("privateWsUrl"),
431
430
  onSigntureRequest: async (accountId) => {
@@ -3231,25 +3230,6 @@ var useChains = (networkId, options = {}) => {
3231
3230
  ]
3232
3231
  }
3233
3232
  ];
3234
- if (networkEnv === "testnet") {
3235
- const opGoerli = {
3236
- network_infos: {
3237
- name: "Optimism Goerli",
3238
- shortName: "Optimism Goerli",
3239
- public_rpc_url: "https://optimism-goerli.gateway.tenderly.co",
3240
- chain_id: 420,
3241
- currency_symbol: "ETH",
3242
- bridge_enable: true,
3243
- mainnet: false,
3244
- explorer_base_url: "https://goerli-optimism.etherscan.io",
3245
- est_txn_mins: null,
3246
- woofi_dex_cross_chain_router: "",
3247
- woofi_dex_depositor: ""
3248
- }
3249
- };
3250
- testnetArr.push(opGoerli);
3251
- map.current.set(420, opGoerli);
3252
- }
3253
3233
  let mainnetArr = [];
3254
3234
  map.current.set(421613, testnetArr[0]);
3255
3235
  if (wooSwapEnabled) {