@orderly.network/hooks 0.0.99 → 0.0.100

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.js CHANGED
@@ -3159,6 +3159,7 @@ var useChains = (networkId, options = {}) => {
3159
3159
  dedupingInterval: 36e5
3160
3160
  }
3161
3161
  );
3162
+ const { apiBaseUrl } = react.useContext(OrderlyContext);
3162
3163
  const chains = react.useMemo(() => {
3163
3164
  if (!orderlyChains)
3164
3165
  return void 0;
@@ -3223,6 +3224,23 @@ var useChains = (networkId, options = {}) => {
3223
3224
  }
3224
3225
  }
3225
3226
  ];
3227
+ if (apiBaseUrl === "https://dev-api-iap-v2.orderly.org") {
3228
+ testnetArr.push({
3229
+ network_infos: {
3230
+ name: "Optimism Goerli",
3231
+ shortName: "Optimism Goerli",
3232
+ public_rpc_url: "wss://optimism-goerli.gateway.tenderly.co",
3233
+ chain_id: 420,
3234
+ currency_symbol: "ETH",
3235
+ bridge_enable: true,
3236
+ mainnet: false,
3237
+ explorer_base_url: "https://goerli.arbiscan.io/",
3238
+ est_txn_mins: null,
3239
+ woofi_dex_cross_chain_router: "",
3240
+ woofi_dex_depositor: ""
3241
+ }
3242
+ });
3243
+ }
3226
3244
  let mainnetArr = [];
3227
3245
  Object.keys(data.data).forEach((key) => {
3228
3246
  const chain = data.data[key];