@orderly.network/hooks 0.0.99 → 0.0.101
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 +18 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -3151,6 +3151,7 @@ var useChains = (networkId, options = {}) => {
|
|
|
3151
3151
|
dedupingInterval: 36e5
|
|
3152
3152
|
}
|
|
3153
3153
|
);
|
|
3154
|
+
const apiBaseUrl = configStore.get("apiBaseUrl");
|
|
3154
3155
|
const chains = useMemo(() => {
|
|
3155
3156
|
if (!orderlyChains)
|
|
3156
3157
|
return void 0;
|
|
@@ -3215,6 +3216,23 @@ var useChains = (networkId, options = {}) => {
|
|
|
3215
3216
|
}
|
|
3216
3217
|
}
|
|
3217
3218
|
];
|
|
3219
|
+
if (apiBaseUrl === "https://dev-api-iap-v2.orderly.org" || apiBaseUrl === "https://dev-api-v2.orderly.org") {
|
|
3220
|
+
testnetArr.push({
|
|
3221
|
+
network_infos: {
|
|
3222
|
+
name: "Optimism Goerli",
|
|
3223
|
+
shortName: "Optimism Goerli",
|
|
3224
|
+
public_rpc_url: "wss://optimism-goerli.gateway.tenderly.co",
|
|
3225
|
+
chain_id: 420,
|
|
3226
|
+
currency_symbol: "ETH",
|
|
3227
|
+
bridge_enable: true,
|
|
3228
|
+
mainnet: false,
|
|
3229
|
+
explorer_base_url: "https://goerli.arbiscan.io/",
|
|
3230
|
+
est_txn_mins: null,
|
|
3231
|
+
woofi_dex_cross_chain_router: "",
|
|
3232
|
+
woofi_dex_depositor: ""
|
|
3233
|
+
}
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3218
3236
|
let mainnetArr = [];
|
|
3219
3237
|
Object.keys(data.data).forEach((key) => {
|
|
3220
3238
|
const chain = data.data[key];
|