From 4a00b7cf00624cfac51be1c4e8e5a0ac75cff0bb Mon Sep 17 00:00:00 2001 From: cipriandraghici Date: Wed, 7 Aug 2024 20:01:29 +0300 Subject: [PATCH] replace IFrameProvider with MetamaskProxyProvider --- package.json | 2 +- src/components/sdkDappComponents.ts | 2 +- src/pages/Unlock/Unlock.tsx | 6 +++--- yarn.lock | 28 +++++++++++++++++++--------- 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index aeab61da..77a4d5db 100644 --- a/package.json +++ b/package.json @@ -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.36.1", + "@multiversx/sdk-dapp": "2.38.0", "@multiversx/sdk-network-providers": "2.4.3", "axios": "1.6.5", "classnames": "2.3.2", diff --git a/src/components/sdkDappComponents.ts b/src/components/sdkDappComponents.ts index aa8d103e..6beb97e2 100644 --- a/src/components/sdkDappComponents.ts +++ b/src/components/sdkDappComponents.ts @@ -24,4 +24,4 @@ export { DappProvider } from '@multiversx/sdk-dapp/wrappers/DappProvider/DappPro export { TransactionRow } from '@multiversx/sdk-dapp/UI/TransactionsTable/components/TransactionRow'; export { ACCOUNTS_ENDPOINT } from '@multiversx/sdk-dapp/apiCalls/endpoints'; export { ExplorerLink } from '@multiversx/sdk-dapp/UI/ExplorerLink'; -export { IFrameLoginButton } from '@multiversx/sdk-dapp/UI/iframe/IFrameLoginButton/IFrameLoginButton'; +export { MetamaskProxyButton } from '@multiversx/sdk-dapp/UI/metamaskProxy/MetamaskProxyLoginButton/MetamaskProxyButton'; diff --git a/src/pages/Unlock/Unlock.tsx b/src/pages/Unlock/Unlock.tsx index 2c1788a4..8bd2f18f 100644 --- a/src/pages/Unlock/Unlock.tsx +++ b/src/pages/Unlock/Unlock.tsx @@ -13,7 +13,7 @@ import { WebWalletLoginButton as WebWalletUrlLoginButton, XaliasCrossWindowLoginButton, CrossWindowLoginButton, - IFrameLoginButton + MetamaskProxyButton } from 'components/sdkDappComponents'; import { nativeAuth } from 'config'; import { RouteNamesEnum } from 'localConstants'; @@ -80,8 +80,8 @@ export const Unlock = () => { /> - diff --git a/yarn.lock b/yarn.lock index 3f30da1d..21b92dc8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1033,10 +1033,10 @@ resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp-utils/-/sdk-dapp-utils-0.0.1.tgz#ba8bd9319649d45dea9a76beca1e03d957dea2cb" integrity sha512-fl3TdES93Jc4T559BI+QxNRGRUTabb7TiAXHKL9g6mbLD+silK+5euAoDpPBkbZpVFnfsXQssUVuyKBV4Ine6w== -"@multiversx/sdk-dapp@2.36.1": - version "2.36.1" - resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.36.1.tgz#e70fd9e2df092f65882f32d5a7515ed41b1f63b7" - integrity sha512-hzLRGt1/gAw7I/yc5cjrH3hoWo9LRA+UvpgcokP4PAP9SBZnbqIcJKWOoqS56xQTxN8I2OlSwOZfBML6hps5lA== +"@multiversx/sdk-dapp@2.38.0": + version "2.38.0" + resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp/-/sdk-dapp-2.38.0.tgz#abbbb12d1226049426bb030c534946130121356b" + integrity sha512-e7cIHXuVRe7O7oflHs6KnC54mxIVq+La7r1AOGiub3u+rBGf8hOOdeslBcEyi+m614fRfNR9SZ2UMjawszvakg== dependencies: "@lifeomic/axios-fetch" "3.0.1" "@metamask/providers" "16.0.0" @@ -1044,11 +1044,12 @@ "@multiversx/sdk-extension-provider" "3.0.0" "@multiversx/sdk-hw-provider" "6.4.0" "@multiversx/sdk-metamask-provider" "0.0.5" + "@multiversx/sdk-metamask-proxy-provider" "0.2.0" "@multiversx/sdk-native-auth-client" "1.0.7" "@multiversx/sdk-opera-provider" "1.0.0-alpha.1" "@multiversx/sdk-wallet" "4.2.0" "@multiversx/sdk-wallet-connect-provider" "4.1.3" - "@multiversx/sdk-web-wallet-cross-window-provider" "0.3.0" + "@multiversx/sdk-web-wallet-cross-window-provider" "0.4.0" "@multiversx/sdk-web-wallet-provider" "3.2.1" "@multiversx/sdk-webview-provider" "0.0.11" "@reduxjs/toolkit" "1.8.2" @@ -1104,6 +1105,15 @@ "@metamask/providers" "16.0.0" "@multiversx/sdk-core" "12.18.0" +"@multiversx/sdk-metamask-proxy-provider@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@multiversx/sdk-metamask-proxy-provider/-/sdk-metamask-proxy-provider-0.2.0.tgz#8dda49fa4da54f3758d5f48c0c62c1c015af1028" + integrity sha512-fgYfMslqEX0gnm+eLwdRI2GYsbbUqEjBS1/YN7dta6ROXhPG9hz0srKcmlaqKtn6zqgiI7KKlWkZ0MJgy7GGuA== + dependencies: + "@types/jest" "^29.5.11" + "@types/qs" "6.9.10" + qs "6.11.2" + "@multiversx/sdk-native-auth-client@1.0.7": version "1.0.7" resolved "https://registry.yarnpkg.com/@multiversx/sdk-native-auth-client/-/sdk-native-auth-client-1.0.7.tgz#ae3c4afbd88349059c606e47c9515825ed4047ac" @@ -1161,10 +1171,10 @@ tweetnacl "1.0.3" uuid "8.3.2" -"@multiversx/sdk-web-wallet-cross-window-provider@0.3.0": - version "0.3.0" - resolved "https://registry.yarnpkg.com/@multiversx/sdk-web-wallet-cross-window-provider/-/sdk-web-wallet-cross-window-provider-0.3.0.tgz#2f44ac2b384d823d474c63397124bf4639a5803e" - integrity sha512-DbFB0VuKWWXWcaKNOf9068vPVb5zWHNpDCVSKXLN5fKlNRPQ2zI7LNvhh53PMyR8X+s0aewn5gKNdYlDLTuzvQ== +"@multiversx/sdk-web-wallet-cross-window-provider@0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@multiversx/sdk-web-wallet-cross-window-provider/-/sdk-web-wallet-cross-window-provider-0.4.0.tgz#3e9ca646859c4a67591240fbe8bc6d0fa61d198c" + integrity sha512-GIfHTRHtRLGm+aJ/EXFzFUgAGhA3vkJoceuNgNeifct+dyPRS7dpTvC9DBogVGHDTmBDes+sEq/iK1qqMVhxYg== dependencies: "@types/jest" "^29.5.11" "@types/qs" "6.9.10"