diff --git a/package-lock.json b/package-lock.json index ea47a4b..4770dd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@ton/crypto": "^3.2.0", "@ton/ton": "^13.11.2", "@tonconnect/ui-react": "^2.0.5", + "@twa-dev/sdk": "^7.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "vite-plugin-node-polyfills": "^0.22.0" @@ -1315,6 +1316,22 @@ "react-dom": ">=17.0.0" } }, + "node_modules/@twa-dev/sdk": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@twa-dev/sdk/-/sdk-7.0.0.tgz", + "integrity": "sha512-OZvqGGrdrgE0xU/IGjvsGKKouia5bTu6rA/BOOU6pJYLu776nQJs/HNFl7lwW16RONf1vvPqeV8XximsuzZ9Iw==", + "dependencies": { + "@twa-dev/types": "^7.0.0" + }, + "peerDependencies": { + "react": ">=16.0.0" + } + }, + "node_modules/@twa-dev/types": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@twa-dev/types/-/types-7.0.0.tgz", + "integrity": "sha512-LBnMklxORuXd/ypv9gFKcQVNJkCktkeuU+2V6B5Ww7dcxDCoYBAKkNnIwEQ3cShq+cxTi96jC/CqWhgDMQ7AXQ==" + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", diff --git a/package.json b/package.json index 0378145..5c0312d 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@ton/crypto": "^3.2.0", "@ton/ton": "^13.11.2", "@tonconnect/ui-react": "^2.0.5", + "@twa-dev/sdk": "^7.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "vite-plugin-node-polyfills": "^0.22.0" diff --git a/src/App.tsx b/src/App.tsx index 4a85e8d..46ea4c3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,6 +2,7 @@ import './App.css'; import { TonConnectButton } from '@tonconnect/ui-react'; import { useTonConnect } from './hooks/useTonConnect'; import { useCounterContract } from './hooks/useCounterContract'; +import '@twa-dev/sdk'; function App() { const { connected } = useTonConnect();