Skip to content

Commit

Permalink
Some updates (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
arhtudormorar authored Feb 14, 2025
1 parent b07f1a6 commit c007402
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
import { PageNotFound } from 'pages';
import { PageNotFound } from 'pages/PageNotFound/PageNotFound';
import { routes } from 'routes';
import { BatchTransactionsContextProvider } from 'wrappers';
import { Layout } from './components';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sdkDapp/components/ExplorerLink/ExplorerLink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PropsWithChildren } from 'react';
import { useGetNetworkConfig } from 'lib/sdkDapp/sdkDappCore';
import { useGetNetworkConfig } from 'lib/sdkDapp/sdkDapp.hooks';
import { ExplorerLinkSDK } from 'lib/sdkDappCoreUI/sdkDappCoreUI.components';
import { ExplorerLinkSDKPropsType } from 'lib/sdkDappCoreUI/sdkDappCoreUI.types';
import { WithClassnameType } from 'types/componentsTypes';
Expand Down
3 changes: 2 additions & 1 deletion src/lib/sdkDapp/components/FormatAmount/FormatAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { WithClassnameType } from 'types';
import { FormatAmountSDK } from '../../../sdkDappCoreUI/sdkDappCoreUI.components';
import { FormatAmountSDKPropsType } from '../../../sdkDappCoreUI/sdkDappCoreUI.types';
import { DECIMALS, DIGITS } from '../../../sdkDappUtils';
import { FormatAmountController, useGetNetworkConfig } from '../../sdkDappCore';
import { FormatAmountController } from '../../sdkDapp.helpers';
import { useGetNetworkConfig } from '../../sdkDapp.hooks';

interface FormatAmountPropsType
extends Partial<FormatAmountSDKPropsType>,
Expand Down
6 changes: 4 additions & 2 deletions src/lib/sdkDapp/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from './components';
export * from './sdkDappCore';
export * from './sdkDappCore.types';
export * from './sdkDapp.constants';
export * from './sdkDapp.helpers';
export * from './sdkDapp.hooks';
export * from './sdkDapp.types';
10 changes: 10 additions & 0 deletions src/lib/sdkDapp/sdkDapp.constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export {
ACCOUNTS_ENDPOINT,
TRANSACTIONS_ENDPOINT
} from '@multiversx/sdk-dapp-core/out/apiCalls/endpoints';
export {
EXTRA_GAS_LIMIT_GUARDED_TX,
GAS_LIMIT,
GAS_PRICE,
VERSION
} from '@multiversx/sdk-dapp-core/out/constants/mvx.constants';
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
export {
ACCOUNTS_ENDPOINT,
TRANSACTIONS_ENDPOINT
} from '@multiversx/sdk-dapp-core/out/apiCalls/endpoints';
export {
EXTRA_GAS_LIMIT_GUARDED_TX,
GAS_LIMIT,
GAS_PRICE,
VERSION
} from '@multiversx/sdk-dapp-core/out/constants/mvx.constants';
export { FormatAmountController } from '@multiversx/sdk-dapp-core/out/controllers/FormatAmountController';
export { ProviderFactory } from '@multiversx/sdk-dapp-core/out/core/providers/ProviderFactory';
export { TransactionManager } from '@multiversx/sdk-dapp-core/out/core/managers/TransactionManager';
Expand All @@ -20,9 +10,3 @@ export { getTransactions } from '@multiversx/sdk-dapp-core/out/apiCalls/transact
export { initApp } from '@multiversx/sdk-dapp-core/out/core/methods/initApp/initApp';
export { signTransactions } from '@multiversx/sdk-dapp-core/out/core/providers/strategies/helpers/signTransactions/signTransactions';
export { trimUsernameDomain } from '@multiversx/sdk-dapp-core/out/utils/account/trimUsernameDomain';
export { useGetAccount } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccount';
export { useGetAccountInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccountInfo';
export { useGetIsLoggedIn } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetIsLoggedIn';
export { useGetLoginInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/loginInfo/useGetLoginInfo';
export { useGetNetworkConfig } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/network/useGetNetworkConfig';
export { useGetPendingTransactions } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/transactions/useGetPendingTransactions';
6 changes: 6 additions & 0 deletions src/lib/sdkDapp/sdkDapp.hooks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { useGetAccount } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccount';
export { useGetAccountInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccountInfo';

Check failure on line 2 in src/lib/sdkDapp/sdkDapp.hooks.ts

View workflow job for this annotation

GitHub Actions / test

'"@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccountInfo"' has no exported member named 'useGetAccountInfo'. Did you mean 'useGetAccount'?
export { useGetIsLoggedIn } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetIsLoggedIn';
export { useGetLoginInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/loginInfo/useGetLoginInfo';
export { useGetNetworkConfig } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/network/useGetNetworkConfig';
export { useGetPendingTransactions } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/transactions/useGetPendingTransactions';
File renamed without changes.

0 comments on commit c007402

Please sign in to comment.