@orderly.network/hooks 1.0.28-alpha.7 → 1.0.28
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
|
31
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28";
|
|
32
32
|
}
|
|
33
|
-
var version_default = "1.0.28
|
|
33
|
+
var version_default = "1.0.28";
|
|
34
34
|
var fetcher = (url, init = {}, queryOptions) => net.get(url, init, queryOptions?.formatter);
|
|
35
35
|
var OrderlyContext = React.createContext({
|
|
36
36
|
// configStore: new MemoryConfigStore(),
|
|
@@ -3238,6 +3238,25 @@ var useChains = (networkId, options = {}) => {
|
|
|
3238
3238
|
]
|
|
3239
3239
|
}
|
|
3240
3240
|
];
|
|
3241
|
+
if (networkEnv === "testnet") {
|
|
3242
|
+
const opGoerli = {
|
|
3243
|
+
network_infos: {
|
|
3244
|
+
name: "Optimism Goerli",
|
|
3245
|
+
shortName: "Optimism Goerli",
|
|
3246
|
+
public_rpc_url: "https://optimism-goerli.gateway.tenderly.co",
|
|
3247
|
+
chain_id: 420,
|
|
3248
|
+
currency_symbol: "ETH",
|
|
3249
|
+
bridge_enable: true,
|
|
3250
|
+
mainnet: false,
|
|
3251
|
+
explorer_base_url: "https://goerli-optimism.etherscan.io",
|
|
3252
|
+
est_txn_mins: null,
|
|
3253
|
+
woofi_dex_cross_chain_router: "",
|
|
3254
|
+
woofi_dex_depositor: ""
|
|
3255
|
+
}
|
|
3256
|
+
};
|
|
3257
|
+
testnetArr.push(opGoerli);
|
|
3258
|
+
map.current.set(420, opGoerli);
|
|
3259
|
+
}
|
|
3241
3260
|
let mainnetArr = [];
|
|
3242
3261
|
map.current.set(421613, testnetArr[0]);
|
|
3243
3262
|
if (wooSwapEnabled) {
|