remove squidRouter switchNetwork calls, bump abacus
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@
|
||||
"@cosmjs/proto-signing": "^0.31.0",
|
||||
"@cosmjs/stargate": "^0.31.0",
|
||||
"@cosmjs/tendermint-rpc": "^0.31.0",
|
||||
"@dydxprotocol/abacus": "^0.3.9",
|
||||
"@dydxprotocol/abacus": "^0.3.10",
|
||||
"@dydxprotocol/v4-client": "^0.29.0",
|
||||
"@dydxprotocol/v4-localization": "^0.0.12",
|
||||
"@ethersproject/providers": "^5.7.2",
|
||||
|
||||
Generated
+4
-4
@@ -27,8 +27,8 @@ dependencies:
|
||||
specifier: ^0.31.0
|
||||
version: 0.31.0
|
||||
'@dydxprotocol/abacus':
|
||||
specifier: ^0.3.9
|
||||
version: 0.3.9
|
||||
specifier: ^0.3.10
|
||||
version: 0.3.10
|
||||
'@dydxprotocol/v4-client':
|
||||
specifier: ^0.29.0
|
||||
version: 0.29.0
|
||||
@@ -1146,8 +1146,8 @@ packages:
|
||||
resolution: {integrity: sha512-RpfLEtTlyIxeNPGKcokS+p3BZII/Q3bYxryFRglh5H3A3T8q9fsLYm72VYAMEOOIBLEa8o93kFLiBDUWKrwXZA==}
|
||||
dev: true
|
||||
|
||||
/@dydxprotocol/abacus@0.3.9:
|
||||
resolution: {integrity: sha512-VphzsCEP5Apu41ln7Bi8+QwWBO1AuUZ4Fv02b7pPKw/BIy1eDW73FsC4qhyKW3KxQm/wo0X4Huom7r820KoR1A==}
|
||||
/@dydxprotocol/abacus@0.3.10:
|
||||
resolution: {integrity: sha512-CJV6zyoQLAoDWJdgLbP1Y2QYvSPybCGpykQY+WEWk4kQKnZkjxz25LPL0b8I9LrNDt2JknOxPJfAoUDXJPfNkg==}
|
||||
dev: false
|
||||
|
||||
/@dydxprotocol/dydxjs@0.3.0:
|
||||
|
||||
@@ -33,7 +33,7 @@ export const useInitializePage = () => {
|
||||
abacusStateManager.start({ network: localStorageNetwork });
|
||||
|
||||
if (isDydxV4Network(localStorageNetwork)) {
|
||||
squidRouter.switchNetwork(localStorageNetwork);
|
||||
// squidRouter.switchNetwork(localStorageNetwork);
|
||||
}
|
||||
}, []);
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@ export default (store: any) => (next: any) => async (action: PayloadAction<any>)
|
||||
abacusStateManager.switchNetwork(payload);
|
||||
|
||||
if (isDydxV4Network(payload)) {
|
||||
squidRouter.switchNetwork(payload);
|
||||
// squidRouter.switchNetwork(payload);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import { ENDPOINTS, DEV_ENDPOINTS } from '@dydxprotocol/v4-localization';
|
||||
|
||||
import { type MenuItem } from '@/constants/menus';
|
||||
import { DydxNetwork } from '@/constants/networks';
|
||||
import { useStringGetter } from '@/hooks';
|
||||
|
||||
export const useNetworks = (): MenuItem<any>[] => {
|
||||
export const useNetworks = (): MenuItem<DydxNetwork>[] => {
|
||||
const stringGetter = useStringGetter();
|
||||
|
||||
const environments =
|
||||
import.meta.env.MODE === 'production' ? ENDPOINTS.environments : DEV_ENDPOINTS.environments;
|
||||
console.log(environments);
|
||||
|
||||
return environments.map(({ stringKey, environment }) => ({
|
||||
key: environment,
|
||||
label: stringGetter({ key: stringKey }),
|
||||
|
||||
Reference in New Issue
Block a user