Skip to content

Commit

Permalink
Merge pull request #248 from multiversx/tm/upgrade
Browse files Browse the repository at this point in the history
Upgrade @multiversx/sdk-dapp
  • Loading branch information
arhtudormorar authored Oct 3, 2024
2 parents 5d05dcc + 4326aaa commit 7e65ab4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 54 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@fortawesome/free-solid-svg-icons": "6.5.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@multiversx/sdk-core": "13.2.1",
"@multiversx/sdk-dapp": "2.40.6",
"@multiversx/sdk-dapp": "2.40.8",
"@multiversx/sdk-network-providers": "2.4.3",
"axios": "1.6.5",
"classnames": "2.3.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const BatchTransactions = ({ callbackRoute }: WidgetProps) => {
SignedTransactionType[] | null
>(null);
const [currentSessionId, setCurrentSessionId] = useState(
sessionStorage.getItem(SessionEnum.signedSessionId)
sessionStorage.getItem(SessionEnum.signedSessionId) || ''
);

const { batchId, setBatchSessionId } = useSendSignedTransactions({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import {
import { useBatchTransactionContext } from 'wrappers';

export const useSendSignedTransactions = ({
signedSessionId = null
signedSessionId = ''
}: {
signedSessionId: string | null;
signedSessionId: string;
}) => {
const [batchSessionId, setBatchSessionId] = useState<string | null>(
sessionStorage.getItem(SessionEnum.batchSessionId)
Expand Down Expand Up @@ -85,6 +85,8 @@ export const useSendSignedTransactions = ({
}
};

const status = signedTransactions[signedSessionId]?.status;

useEffect(() => {
if (!sendBatchTransactionsOnDemand) {
return;
Expand All @@ -94,13 +96,10 @@ export const useSendSignedTransactions = ({
return;
}

if (
signedTransactions[signedSessionId]?.status ===
TransactionBatchStatusesEnum.signed
) {
if (status === TransactionBatchStatusesEnum.signed) {
sendTransactions();
}
}, [batchSessionId, signedTransactions[signedSessionId]?.status]);
}, [batchSessionId, status]);

return {
batchId,
Expand Down
90 changes: 45 additions & 45 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1054,10 +1054,10 @@
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp-utils/-/sdk-dapp-utils-0.1.0.tgz#3103c2ffc648703e75f96acd229af299cb0840ab"
integrity sha512-EFvktZ/S1WQ1ie02nnKZHARC4r23JZWwoTFd5py1qi/Z/UoLHIzJ394HLjXFb6gBTsp4wnvNwIXBA/DNrd2Yeg==

"@multiversx/sdk-dapp@2.40.6":
version "2.40.6"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.40.6.tgz#3097317aa8c90b1e461e5b9164b223c4ae0cbcc3"
integrity sha512-XJBtpl6pbNhmTlNytZcDhM3V9O9FYqzOnYe0kyYanZ8pDw+7cbOeQhfNur7KgbmfPYupHoob46stVZ6qfwpxyg==
"@multiversx/sdk-dapp@2.40.8":
version "2.40.8"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.40.8.tgz#b93cc4aec836e66c97f6298c1e105074dc5db19f"
integrity sha512-bdawxu34BmVG6GHRd+ZvADLkEI2Vx99zsV8/YvlYd6dmWV37eA7rBDfeEXLUnyWNMtSpbxt7jkWR0R8YSOacrw==
dependencies:
"@lifeomic/axios-fetch" "3.0.1"
"@metamask/providers" "16.0.0"
Expand All @@ -1067,7 +1067,7 @@
"@multiversx/sdk-metamask-provider" "0.0.5"
"@multiversx/sdk-native-auth-client" "1.0.7"
"@multiversx/sdk-opera-provider" "1.0.0-alpha.1"
"@multiversx/sdk-passkey-provider" "1.0.8"
"@multiversx/sdk-passkey-provider" "1.0.9"
"@multiversx/sdk-wallet" "4.2.0"
"@multiversx/sdk-wallet-connect-provider" "4.1.3"
"@multiversx/sdk-web-wallet-cross-window-provider" "1.0.0"
Expand Down Expand Up @@ -1150,10 +1150,10 @@
resolved "https://registry.yarnpkg.com/@multiversx/sdk-opera-provider/-/sdk-opera-provider-1.0.0-alpha.1.tgz#2beebd5423fdc2e667b33660f17cbff325449097"
integrity sha512-5hrqn+kNpuy/S6eV5wh5mE4lvQo0PduZ7fLsh/2Srcaz3K5kM5lE1VyQmWk4DTxToZSldrGbgWz/olezoC6fPg==

"@multiversx/sdk-passkey-provider@1.0.8":
version "1.0.8"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-passkey-provider/-/sdk-passkey-provider-1.0.8.tgz#efe2e3f95a76cbb9651cbc3567c30ceca46c97bf"
integrity sha512-5SJGc2PkcXjxeBlzufeSd6sbW+X7pLyB519gT2PW4qeF9LMnC4Agt3tliNsVK87bV6uiJlglWsNbVMuOUUw5PA==
"@multiversx/sdk-passkey-provider@1.0.9":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@multiversx/sdk-passkey-provider/-/sdk-passkey-provider-1.0.9.tgz#2c6824393b49d972295aa2c46d479971b407da9d"
integrity sha512-9CNQICB7xPUJYzLKYBLzxTDhiwkcmfCxijnP1otjuQDY4AIKyHctVTXfF0C9WreMs0HlNMzJve81+FonhoPjYA==
dependencies:
"@noble/ed25519" "2.1.0"
"@types/jest" "29.5.11"
Expand Down Expand Up @@ -1476,9 +1476,9 @@
magic-string "^0.30.3"

"@rollup/pluginutils@^5.0.1", "@rollup/pluginutils@^5.0.4":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0"
integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==
version "5.1.2"
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.2.tgz#d3bc9f0fea4fd4086aaac6aa102f3fa587ce8bd9"
integrity sha512-/FIdS3PyZ39bjZlwqFnWqCOVnW7o963LtKMwQOD0NhQqw22gSr2YY1afu3FxRip4ZCZNsD5jq6Aaz6QV3D/Njw==
dependencies:
"@types/estree" "^1.0.0"
estree-walker "^2.0.2"
Expand Down Expand Up @@ -2071,9 +2071,9 @@
form-data "^4.0.0"

"@types/node@*", "@types/node@>=13.7.0", "@types/node@^22.2.0":
version "22.5.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.5.tgz#52f939dd0f65fc552a4ad0b392f3c466cc5d7a44"
integrity sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==
version "22.6.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.6.1.tgz#e531a45f4d78f14a8468cb9cdc29dc9602afc7ac"
integrity sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw==
dependencies:
undici-types "~6.19.2"

Expand All @@ -2088,9 +2088,9 @@
integrity sha512-LT+OIXpp2kj4E2S/p91BMe+VgGX2+lfO+XTpfXhh+bCk2LkQtHZSub8ewFBMGP5ClysPjTDFa4sMI8Q3n4T0wg==

"@types/node@^20.1.0":
version "20.16.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.5.tgz#d43c7f973b32ffdf9aa7bd4f80e1072310fd7a53"
integrity sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==
version "20.16.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.6.tgz#0bf99fcebcee68ecdc2c45b160a10a0fe5c652b8"
integrity sha512-T7PpxM/6yeDE+AdlVysT62BX6/bECZOmQAgiFg5NoBd5MQheZ3tzal7f1wvzfiEcmrcJNRi2zRr2nY2zF+0uqw==
dependencies:
undici-types "~6.19.2"

Expand Down Expand Up @@ -2538,9 +2538,9 @@
strip-ansi "^7.1.0"

"@wdio/logger@^9.0.0":
version "9.0.8"
resolved "https://registry.yarnpkg.com/@wdio/logger/-/logger-9.0.8.tgz#919f122bbcce90f3cde6bc8e8a4922d6c582b0bb"
integrity sha512-uIyYIDBwLczmsp9JE5hN3ME8Xg+9WNBfSNXD69ICHrY9WPTzFf94UeTuavK7kwSKF3ro2eJbmNZItYOfnoovnw==
version "9.1.0"
resolved "https://registry.yarnpkg.com/@wdio/logger/-/logger-9.1.0.tgz#41f93a164f2048d7625882e3c83affc23d800523"
integrity sha512-1Rfg9VCy87I9IrViA1ned1Rqa66JwhCzdEo8rA8T3Ro6lBfOEwDbK1XW8ETKLWcweddzGeFalfVnvUlNgPmFdA==
dependencies:
chalk "^5.1.2"
loglevel "^1.6.0"
Expand Down Expand Up @@ -2840,9 +2840,9 @@ aria-query@5.1.3:
deep-equal "^2.0.5"

aria-query@^5.0.0:
version "5.3.1"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.1.tgz#ebcb2c0d7fc43e68e4cb22f774d1209cb627ab42"
integrity sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==
version "5.3.2"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.2.tgz#93f81a43480e33a338f19163a3d10a50c01dcd59"
integrity sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==

array-buffer-byte-length@^1.0.0, array-buffer-byte-length@^1.0.1:
version "1.0.1"
Expand Down Expand Up @@ -3093,9 +3093,9 @@ balanced-match@^1.0.0:
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==

bare-events@^2.0.0, bare-events@^2.2.0:
version "2.4.2"
resolved "https://registry.yarnpkg.com/bare-events/-/bare-events-2.4.2.tgz#3140cca7a0e11d49b3edc5041ab560659fd8e1f8"
integrity sha512-qMKFd2qG/36aA4GwvKq8MxnPgCQAmBWmSyLWsJcbn8v03wvIPQ/hG1Ms8bPzndZxMDoHpxez5VOS+gC9Yi24/Q==
version "2.5.0"
resolved "https://registry.yarnpkg.com/bare-events/-/bare-events-2.5.0.tgz#305b511e262ffd8b9d5616b056464f8e1b3329cc"
integrity sha512-/E8dDe9dsbLyh2qrZ64PEPadOQ0F4gbl1sUJOrmph7xOiIxfY8vwab/4bFLh4Y88/Hk/ujKcrQKc+ps0mv873A==

bare-fs@^2.1.1:
version "2.3.5"
Expand Down Expand Up @@ -3434,9 +3434,9 @@ camelcase@^6.0.0, camelcase@^6.2.0:
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==

caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001646:
version "1.0.30001662"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001662.tgz#3574b22dfec54a3f3b6787331da1040fe8e763ec"
integrity sha512-sgMUVwLmGseH8ZIrm1d51UbrhqMCH3jvS7gF/M6byuHOnKyLOBL7W8yz5V02OHwgLGA36o/AFhWzzh4uc5aqTA==
version "1.0.30001663"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001663.tgz#1529a723505e429fdfd49532e9fc42273ba7fed7"
integrity sha512-o9C3X27GLKbLeTYZ6HBOLU1tsAcBZsLis28wrVzddShCS16RujjHp9GDHKZqrB3meE0YjhawvMFsGb/igqiPzA==

chalk@^2.4.2:
version "2.4.2"
Expand Down Expand Up @@ -4240,9 +4240,9 @@ ejs@^3.1.9:
jake "^10.8.5"

electron-to-chromium@^1.5.4:
version "1.5.26"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.26.tgz#449b4fa90e83ab98abbe3b6a96c8ee395de94452"
integrity sha512-Z+OMe9M/V6Ep9n/52+b7lkvYEps26z4Yz3vjWL1V61W0q+VLF1pOHhMY17sa4roz4AWmULSI8E6SAojZA5L0YQ==
version "1.5.28"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.28.tgz#aee074e202c6ee8a0030a9c2ef0b3fe9f967d576"
integrity sha512-VufdJl+rzaKZoYVUijN13QcXVF5dWPZANeFTLNy+OSpHdDL5ynXTF35+60RSBbaQYB1ae723lQXHCrf4pyLsMw==

elliptic@^6.5.3, elliptic@^6.5.5:
version "6.5.7"
Expand Down Expand Up @@ -4563,9 +4563,9 @@ eslint-import-resolver-typescript@3.6.1:
is-glob "^4.0.3"

eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0:
version "2.11.0"
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.11.0.tgz#b99b211ca4318243f09661fae088f373ad5243c4"
integrity sha512-gbBE5Hitek/oG6MUVj6sFuzEjA/ClzNflVrLovHi/JgLdC7fiN5gLAY1WIPW1a0V5I999MnsrvVrCOGmmVqDBQ==
version "2.11.1"
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.11.1.tgz#6d5a05f09af98f4d238a819ae4c23626a75fa65b"
integrity sha512-EwcbfLOhwVMAfatfqLecR2yv3dE5+kQ8kx+Rrt0DvDXEVwW86KQ/xbMDQhtp5l42VXukD5SOF8mQQHbaNtO0CQ==
dependencies:
debug "^3.2.7"

Expand Down Expand Up @@ -7248,7 +7248,7 @@ node-domexception@^1.0.0:
resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5"
integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==

node-fetch-native@^1.6.3, node-fetch-native@^1.6.4:
node-fetch-native@^1.6.4:
version "1.6.4"
resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-1.6.4.tgz#679fc8fd8111266d47d7e72c379f1bed9acff06e"
integrity sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==
Expand Down Expand Up @@ -7457,13 +7457,13 @@ object.values@^1.1.6:
es-object-atoms "^1.0.0"

ofetch@^1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/ofetch/-/ofetch-1.3.4.tgz#7ea65ced3c592ec2b9906975ae3fe1d26a56f635"
integrity sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==
version "1.4.0"
resolved "https://registry.yarnpkg.com/ofetch/-/ofetch-1.4.0.tgz#89ef58fb673fbe2a87250973d4586ce7725e8399"
integrity sha512-MuHgsEhU6zGeX+EMh+8mSMrYTnsqJQQrpM00Q6QHMKNqQ0bKy0B43tk8tL1wg+CnsSTy1kg4Ir2T5Ig6rD+dfQ==
dependencies:
destr "^2.0.3"
node-fetch-native "^1.6.3"
ufo "^1.5.3"
node-fetch-native "^1.6.4"
ufo "^1.5.4"

ohash@^1.1.3:
version "1.1.4"
Expand Down Expand Up @@ -8520,9 +8520,9 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
inherits "^2.0.1"

rollup@^3.27.1:
version "3.29.4"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981"
integrity sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==
version "3.29.5"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.5.tgz#8a2e477a758b520fb78daf04bca4c522c1da8a54"
integrity sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==
optionalDependencies:
fsevents "~2.3.2"

Expand Down

0 comments on commit 7e65ab4

Please sign in to comment.