@multiversx/sdk-dapp 5.0.0-alpha.1 → 5.0.0-alpha.2
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/out/__chunks__/{chunk-SHNEF3SC.mjs → chunk-3XS5MAKS.mjs} +2 -2
- package/out/__chunks__/{chunk-EXLTOUB5.mjs → chunk-6PTI5SU2.mjs} +2 -2
- package/out/__chunks__/{chunk-AL42X4Q3.mjs → chunk-CUF7MTDG.mjs} +2 -2
- package/out/__chunks__/{chunk-W2WAVVF5.mjs → chunk-DHLQNKB7.mjs} +2 -2
- package/out/__chunks__/{chunk-FJIH6TWP.mjs → chunk-HOVFLZIM.mjs} +2 -2
- package/out/__chunks__/{chunk-OBRX5K2D.mjs → chunk-IGKQDUHE.mjs} +2 -2
- package/out/__chunks__/{chunk-GUG3HFGL.mjs → chunk-IGUBISXF.mjs} +2 -2
- package/out/__chunks__/{chunk-EFVHT26M.mjs → chunk-LAWWSFCA.mjs} +2 -2
- package/out/__chunks__/chunk-LLMOP5KI.mjs +2 -0
- package/out/__chunks__/chunk-LLMOP5KI.mjs.map +7 -0
- package/out/__chunks__/{chunk-DZ5L5MZT.mjs → chunk-R7SGL2HW.mjs} +1 -1
- package/out/__chunks__/chunk-R7SGL2HW.mjs.map +7 -0
- package/out/__chunks__/{chunk-7JA77EJQ.mjs → chunk-S24E3INP.mjs} +2 -2
- package/out/__chunks__/chunk-SGPG7AHK.mjs +2 -0
- package/out/__chunks__/{chunk-OYZFSQEK.mjs → chunk-SM5IXWZT.mjs} +2 -2
- package/out/__chunks__/{chunk-U5GPHLUX.mjs → chunk-SY63TM6N.mjs} +2 -2
- package/out/__chunks__/chunk-TYG6E3LZ.mjs +2 -0
- package/out/__chunks__/chunk-TYG6E3LZ.mjs.map +7 -0
- package/out/__chunks__/{chunk-NJ73RJ4B.mjs → chunk-XS3SFPZ6.mjs} +2 -2
- package/out/__chunks__/{chunk-O4J75OI6.mjs → chunk-YRLMECJT.mjs} +2 -2
- package/out/__chunks__/{chunk-XG2BS23C.mjs → chunk-ZYZ7BDOH.mjs} +2 -2
- package/out/index.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getLatestNonce.js.map +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.js.map +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccount.mjs.map +2 -2
- package/out/react/account/useGetAccountInfo.js.map +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs.map +2 -2
- package/out/react/account/useGetIsLoggedIn.js.map +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs.map +2 -2
- package/out/react/account/useGetLatestNonce.js.map +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs.map +2 -2
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.js.map +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs.map +2 -2
- package/out/react/network/useGetNetworkConfig.js.map +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs.map +2 -2
- package/out/react/store/getReactStore.js +1 -1
- package/out/react/store/getReactStore.js.map +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/getReactStore.mjs.map +4 -4
- package/out/react/store/useSelector.js +1 -1
- package/out/react/store/useSelector.js.map +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.js.map +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs.map +2 -2
- package/out/react/transactions/useGetPendingTransactionsSessions.js.map +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs.map +2 -2
- package/out/react/transactions/useGetTransactionSessions.js.map +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs.map +2 -2
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/out/__chunks__/chunk-DZ5L5MZT.mjs.map +0 -7
- package/out/__chunks__/chunk-PV5A7PX4.mjs +0 -2
- package/out/__chunks__/chunk-UBD2YVBI.mjs +0 -2
- package/out/__chunks__/chunk-UBD2YVBI.mjs.map +0 -7
- /package/out/__chunks__/{chunk-SHNEF3SC.mjs.map → chunk-3XS5MAKS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EXLTOUB5.mjs.map → chunk-6PTI5SU2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AL42X4Q3.mjs.map → chunk-CUF7MTDG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W2WAVVF5.mjs.map → chunk-DHLQNKB7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FJIH6TWP.mjs.map → chunk-HOVFLZIM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OBRX5K2D.mjs.map → chunk-IGKQDUHE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GUG3HFGL.mjs.map → chunk-IGUBISXF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EFVHT26M.mjs.map → chunk-LAWWSFCA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7JA77EJQ.mjs.map → chunk-S24E3INP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PV5A7PX4.mjs.map → chunk-SGPG7AHK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OYZFSQEK.mjs.map → chunk-SM5IXWZT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U5GPHLUX.mjs.map → chunk-SY63TM6N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NJ73RJ4B.mjs.map → chunk-XS3SFPZ6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O4J75OI6.mjs.map → chunk-YRLMECJT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XG2BS23C.mjs.map → chunk-ZYZ7BDOH.mjs.map} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/methods/account/getLatestNonce.ts"],
|
|
4
|
-
"sourcesContent": ["import { accountNonceSelector } from 'store/selectors/accountSelectors';\nimport { transactionsSliceSelector } from 'store/selectors/transactionsSelector';\nimport { getState } from 'store/store';\nimport { AccountType } from 'types/account.types';\n\nexport function getLatestNonce(apiAccount: AccountType | null) {\n const state = getState();\n const transactionsSessions = transactionsSliceSelector(state);\n const currentAccountNonce = accountNonceSelector(state);\n\n // Get the max transactions nonce\n let lastTransactionNonce = Object.keys(transactionsSessions)\n .map(Number) // Convert keys to numbers (timestamps)\n .reduce((maxNonce, timestamp) => {\n const transactions = transactionsSessions[timestamp]?.transactions || [];\n return Math.max(maxNonce, ...transactions.map((tx) => tx.nonce), 0);\n }, 0);\n\n if (lastTransactionNonce > 0) {\n lastTransactionNonce += 1; // Increment only if there's at least one pending transaction\n }\n\n if (apiAccount == null) {\n const currentStoreNonce = Math.max(\n lastTransactionNonce,\n currentAccountNonce\n );\n return currentStoreNonce;\n }\n\n const currentNonce = Math.max(\n lastTransactionNonce || apiAccount.nonce,\n currentAccountNonce\n );\n\n return currentNonce;\n}\n"],
|
|
5
|
-
"mappings": "2HAKO,SAASA,EAAeC,EAAgC,CAC7D,IAAMC,EAAQC,EAAS,EACjBC,EAAuBC,EAA0BH,CAAK,EACtDI,EAAsBC,EAAqBL,CAAK,EAGlDM,EAAuB,OAAO,KAAKJ,CAAoB,EACxD,IAAI,MAAM,EACV,OAAO,CAACK,EAAUC,IAAc,CAC/B,IAAMC,EAAeP,EAAqBM,CAAS,GAAG,cAAgB,CAAC,EACvE,OAAO,KAAK,IAAID,EAAU,GAAGE,EAAa,IAAKC,GAAOA,EAAG,KAAK,EAAG,CAAC,CACpE,EAAG,CAAC,EAMN,OAJIJ,EAAuB,IACzBA,GAAwB,GAGtBP,GAAc,KACU,KAAK,IAC7BO,EACAF,CACF,EAImB,KAAK,IACxBE,GAAwBP,EAAW,MACnCK,CACF,CAGF",
|
|
6
|
-
"names": ["getLatestNonce", "apiAccount", "state", "getState", "transactionsSessions", "transactionsSliceSelector", "currentAccountNonce", "accountNonceSelector", "lastTransactionNonce", "maxNonce", "timestamp", "transactions", "tx"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/react/store/useSelector.ts"],
|
|
4
|
-
"sourcesContent": ["import { getReactStore } from 'react/store/getReactStore';\nimport { StoreType } from 'store/store.types';\n\ntype ExtractState<S> = S extends { getState: () => infer T } ? T : StoreType;\n\nexport function useSelector<T>(\n selector: (state: ExtractState<StoreType>) => T\n) {\n const useStore = getReactStore();\n return useStore(selector);\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,iBAAAA,MAAqB,4BAKvB,SAASC,EACdC,EACA,CAEA,OADiBF,EAAc,EACfE,CAAQ,CAC1B",
|
|
6
|
-
"names": ["getReactStore", "useSelector", "selector"]
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|