diff --git a/README.md b/README.md
index a624328..6636d2a 100644
--- a/README.md
+++ b/README.md
@@ -5,15 +5,17 @@ An open source Jetton deployer webapp, based on [jetton contracts starter templa
## How to use
Instructions:
-Make sure you have a TON wallet with at least 0.25 TON balance. Supported wallets include TonHub and Chrome Extension.
+Make sure you have a TON wallet with at least 0.25 TON balance.
Use your web browser to open the site of the deploy form: https://minter.ton.org
+To use the Testnet version open this link: https://minter.ton.org?testnet=true
+
> Safety Notice: The form is based on this repo and served from GitHub Pages
Click the "Connect Wallet" button to connect your wallet.
-Fill in the information about your Jetton in the form - choose a name, ticker and image URI.
+Fill in the information about your Jetton in the form - choose a name, ticker and image URL.
Deploy and approve the deploy transaction in your wallet.
diff --git a/package-lock.json b/package-lock.json
index b994a0f..4dff1e5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,7 +18,7 @@
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
- "@tonconnect/ui-react": "^1.0.0-beta.6",
+ "@tonconnect/ui-react": "^2.0.11",
"@types/jest": "^27.5.1",
"@types/node": "^16.11.36",
"@types/react": "^18.0.9",
@@ -4195,56 +4195,58 @@
}
},
"node_modules/@tonconnect/isomorphic-eventsource": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-eventsource/-/isomorphic-eventsource-0.0.1.tgz",
- "integrity": "sha512-ODk48pMlqLSOvu3fM0R1sdlz/Cv2y4hSfwtXmLq9ky9+H7ZQfw/16ElpIJ69B4lUvHycxrueNgrRtF9PJHoGMw==",
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-eventsource/-/isomorphic-eventsource-0.0.2.tgz",
+ "integrity": "sha512-B4UoIjPi0QkvIzZH5fV3BQLWrqSYABdrzZQSI9sJA9aA+iC0ohOzFwVVGXanlxeDAy1bcvPbb29f6sVUk0UnnQ==",
"dependencies": {
"eventsource": "^2.0.2"
}
},
"node_modules/@tonconnect/isomorphic-fetch": {
- "version": "0.0.2",
- "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-fetch/-/isomorphic-fetch-0.0.2.tgz",
- "integrity": "sha512-DAyA4oL7MqbBo9k8+8E+YiWsGCYi6UMhDTcsZjhgzhESkBNG6b+NBkpb1KH4oi0xDZQoknFtY9XogJLuQtSMQQ==",
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-fetch/-/isomorphic-fetch-0.0.3.tgz",
+ "integrity": "sha512-jIg5nTrDwnite4fXao3dD83eCpTvInTjZon/rZZrIftIegh4XxyVb5G2mpMqXrVGk1e8SVXm3Kj5OtfMplQs0w==",
"dependencies": {
"node-fetch": "^2.6.9"
}
},
"node_modules/@tonconnect/protocol": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/@tonconnect/protocol/-/protocol-2.2.5.tgz",
- "integrity": "sha512-kR0E+CWZl6JrE/30283v+sRiAvEu21t1xOLFx6f/BxlCNLY2wki39+L32+iicX8gn/Ig99L1flr9TAI9QW9bnQ==",
+ "version": "2.2.6",
+ "resolved": "https://registry.npmjs.org/@tonconnect/protocol/-/protocol-2.2.6.tgz",
+ "integrity": "sha512-kyoDz5EqgsycYP+A+JbVsAUYHNT059BCrK+m0pqxykMODwpziuSAXfwAZmHcg8v7NB9VKYbdFY55xKeXOuEd0w==",
"dependencies": {
"tweetnacl": "^1.0.3",
"tweetnacl-util": "^0.15.1"
}
},
"node_modules/@tonconnect/sdk": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/@tonconnect/sdk/-/sdk-2.1.3.tgz",
- "integrity": "sha512-LxHJr96NvGTqj4qSKYPPS/7fMlUpHNyj5bCNlzY5xMW8JmdgPj+jXxm5wEI00xBWy478dbE9ZaBhLMLH1V2wZw==",
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@tonconnect/sdk/-/sdk-3.0.6.tgz",
+ "integrity": "sha512-dJipe0Cw43p/7o3Pa6Y6h0QMDtY2V2YKzwdCqcYvmyCYadBNmvA+8ScH9QK5GpkngRJnYaWq+321lAaQTFpUwA==",
"dependencies": {
- "@tonconnect/isomorphic-eventsource": "^0.0.1",
- "@tonconnect/isomorphic-fetch": "^0.0.2",
- "@tonconnect/protocol": "^2.2.5"
+ "@tonconnect/isomorphic-eventsource": "^0.0.2",
+ "@tonconnect/isomorphic-fetch": "^0.0.3",
+ "@tonconnect/protocol": "^2.2.6"
}
},
"node_modules/@tonconnect/ui": {
- "version": "1.0.0-beta.5",
- "resolved": "https://registry.npmjs.org/@tonconnect/ui/-/ui-1.0.0-beta.5.tgz",
- "integrity": "sha512-F1Z/GAsuebvmMSS5SkY90DyIYogUYNx+b7I8A2LF8nbwDVA0ImsN6oOiOl5PzOhBlNZru8LXJuUUfqgDv1ZHuw==",
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@tonconnect/ui/-/ui-2.0.11.tgz",
+ "integrity": "sha512-5TOhfEDeyY8R9oyEGavLU+DRmDW3wSGyxVshWhHisi8597cZIuG39HHNbP05WJBBjmVm/Kh/bhcHtfx7lQp/Ig==",
"dependencies": {
- "@tonconnect/sdk": "^2.1.3",
+ "@tonconnect/sdk": "3.0.6",
"classnames": "^2.3.2",
- "deepmerge": "^4.2.2"
+ "csstype": "^3.1.1",
+ "deepmerge": "^4.2.2",
+ "ua-parser-js": "^1.0.35"
}
},
"node_modules/@tonconnect/ui-react": {
- "version": "1.0.0-beta.6",
- "resolved": "https://registry.npmjs.org/@tonconnect/ui-react/-/ui-react-1.0.0-beta.6.tgz",
- "integrity": "sha512-j4ziq+5JHmAI74XXodjIomqvLKEwfomJ4mv1LulYWs7izNBDwlpzIW/Un0UzsGZq9fjnuJ/A2Xb9M30j9ucOEg==",
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@tonconnect/ui-react/-/ui-react-2.0.11.tgz",
+ "integrity": "sha512-h8E4zlbdNBJCAPgg6+O5ZkVDZh8mvnc82VRmhInSPLFAr6qDZbE+qSjRVm4lkuN1N/m24lhkDXFCFjvJ9CgCow==",
"dependencies": {
- "@tonconnect/ui": "^1.0.0-beta.5"
+ "@tonconnect/ui": "2.0.11"
},
"peerDependencies": {
"react": ">=17.0.0",
@@ -6483,9 +6485,9 @@
}
},
"node_modules/classnames": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz",
- "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw=="
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz",
+ "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="
},
"node_modules/clean-css": {
"version": "5.3.0",
@@ -7267,9 +7269,9 @@
"integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg=="
},
"node_modules/csstype": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
- "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
},
"node_modules/customize-cra": {
"version": "1.0.0",
@@ -19286,9 +19288,9 @@
}
},
"node_modules/ua-parser-js": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.2.tgz",
- "integrity": "sha512-00y/AXhx0/SsnI51fTc0rLRmafiGOM4/O+ny10Ps7f+j/b8p/ZY11ytMgznXkOVo4GQ+KwQG5UQLkLGirsACRg==",
+ "version": "1.0.40",
+ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.40.tgz",
+ "integrity": "sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew==",
"funding": [
{
"type": "opencollective",
@@ -19297,8 +19299,15 @@
{
"type": "paypal",
"url": "https://paypal.me/faisalman"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/faisalman"
}
],
+ "bin": {
+ "ua-parser-js": "script/cli.js"
+ },
"engines": {
"node": "*"
}
@@ -23377,56 +23386,58 @@
}
},
"@tonconnect/isomorphic-eventsource": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-eventsource/-/isomorphic-eventsource-0.0.1.tgz",
- "integrity": "sha512-ODk48pMlqLSOvu3fM0R1sdlz/Cv2y4hSfwtXmLq9ky9+H7ZQfw/16ElpIJ69B4lUvHycxrueNgrRtF9PJHoGMw==",
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-eventsource/-/isomorphic-eventsource-0.0.2.tgz",
+ "integrity": "sha512-B4UoIjPi0QkvIzZH5fV3BQLWrqSYABdrzZQSI9sJA9aA+iC0ohOzFwVVGXanlxeDAy1bcvPbb29f6sVUk0UnnQ==",
"requires": {
"eventsource": "^2.0.2"
}
},
"@tonconnect/isomorphic-fetch": {
- "version": "0.0.2",
- "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-fetch/-/isomorphic-fetch-0.0.2.tgz",
- "integrity": "sha512-DAyA4oL7MqbBo9k8+8E+YiWsGCYi6UMhDTcsZjhgzhESkBNG6b+NBkpb1KH4oi0xDZQoknFtY9XogJLuQtSMQQ==",
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@tonconnect/isomorphic-fetch/-/isomorphic-fetch-0.0.3.tgz",
+ "integrity": "sha512-jIg5nTrDwnite4fXao3dD83eCpTvInTjZon/rZZrIftIegh4XxyVb5G2mpMqXrVGk1e8SVXm3Kj5OtfMplQs0w==",
"requires": {
"node-fetch": "^2.6.9"
}
},
"@tonconnect/protocol": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/@tonconnect/protocol/-/protocol-2.2.5.tgz",
- "integrity": "sha512-kR0E+CWZl6JrE/30283v+sRiAvEu21t1xOLFx6f/BxlCNLY2wki39+L32+iicX8gn/Ig99L1flr9TAI9QW9bnQ==",
+ "version": "2.2.6",
+ "resolved": "https://registry.npmjs.org/@tonconnect/protocol/-/protocol-2.2.6.tgz",
+ "integrity": "sha512-kyoDz5EqgsycYP+A+JbVsAUYHNT059BCrK+m0pqxykMODwpziuSAXfwAZmHcg8v7NB9VKYbdFY55xKeXOuEd0w==",
"requires": {
"tweetnacl": "^1.0.3",
"tweetnacl-util": "^0.15.1"
}
},
"@tonconnect/sdk": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/@tonconnect/sdk/-/sdk-2.1.3.tgz",
- "integrity": "sha512-LxHJr96NvGTqj4qSKYPPS/7fMlUpHNyj5bCNlzY5xMW8JmdgPj+jXxm5wEI00xBWy478dbE9ZaBhLMLH1V2wZw==",
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@tonconnect/sdk/-/sdk-3.0.6.tgz",
+ "integrity": "sha512-dJipe0Cw43p/7o3Pa6Y6h0QMDtY2V2YKzwdCqcYvmyCYadBNmvA+8ScH9QK5GpkngRJnYaWq+321lAaQTFpUwA==",
"requires": {
- "@tonconnect/isomorphic-eventsource": "^0.0.1",
- "@tonconnect/isomorphic-fetch": "^0.0.2",
- "@tonconnect/protocol": "^2.2.5"
+ "@tonconnect/isomorphic-eventsource": "^0.0.2",
+ "@tonconnect/isomorphic-fetch": "^0.0.3",
+ "@tonconnect/protocol": "^2.2.6"
}
},
"@tonconnect/ui": {
- "version": "1.0.0-beta.5",
- "resolved": "https://registry.npmjs.org/@tonconnect/ui/-/ui-1.0.0-beta.5.tgz",
- "integrity": "sha512-F1Z/GAsuebvmMSS5SkY90DyIYogUYNx+b7I8A2LF8nbwDVA0ImsN6oOiOl5PzOhBlNZru8LXJuUUfqgDv1ZHuw==",
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@tonconnect/ui/-/ui-2.0.11.tgz",
+ "integrity": "sha512-5TOhfEDeyY8R9oyEGavLU+DRmDW3wSGyxVshWhHisi8597cZIuG39HHNbP05WJBBjmVm/Kh/bhcHtfx7lQp/Ig==",
"requires": {
- "@tonconnect/sdk": "^2.1.3",
+ "@tonconnect/sdk": "3.0.6",
"classnames": "^2.3.2",
- "deepmerge": "^4.2.2"
+ "csstype": "^3.1.1",
+ "deepmerge": "^4.2.2",
+ "ua-parser-js": "^1.0.35"
}
},
"@tonconnect/ui-react": {
- "version": "1.0.0-beta.6",
- "resolved": "https://registry.npmjs.org/@tonconnect/ui-react/-/ui-react-1.0.0-beta.6.tgz",
- "integrity": "sha512-j4ziq+5JHmAI74XXodjIomqvLKEwfomJ4mv1LulYWs7izNBDwlpzIW/Un0UzsGZq9fjnuJ/A2Xb9M30j9ucOEg==",
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@tonconnect/ui-react/-/ui-react-2.0.11.tgz",
+ "integrity": "sha512-h8E4zlbdNBJCAPgg6+O5ZkVDZh8mvnc82VRmhInSPLFAr6qDZbE+qSjRVm4lkuN1N/m24lhkDXFCFjvJ9CgCow==",
"requires": {
- "@tonconnect/ui": "^1.0.0-beta.5"
+ "@tonconnect/ui": "2.0.11"
}
},
"@tootallnate/once": {
@@ -25150,9 +25161,9 @@
}
},
"classnames": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz",
- "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw=="
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz",
+ "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="
},
"clean-css": {
"version": "5.3.0",
@@ -25715,9 +25726,9 @@
}
},
"csstype": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
- "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
},
"customize-cra": {
"version": "1.0.0",
@@ -34279,9 +34290,9 @@
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ=="
},
"ua-parser-js": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.2.tgz",
- "integrity": "sha512-00y/AXhx0/SsnI51fTc0rLRmafiGOM4/O+ny10Ps7f+j/b8p/ZY11ytMgznXkOVo4GQ+KwQG5UQLkLGirsACRg=="
+ "version": "1.0.40",
+ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.40.tgz",
+ "integrity": "sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew=="
},
"unbox-primitive": {
"version": "1.0.2",
diff --git a/package.json b/package.json
index 7d539bd..e663bd9 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
- "@tonconnect/ui-react": "^1.0.0-beta.6",
+ "@tonconnect/ui-react": "^2.0.11",
"@types/jest": "^27.5.1",
"@types/node": "^16.11.36",
"@types/react": "^18.0.9",
diff --git a/public/index.html b/public/index.html
index 9108f4d..d3afbd6 100644
--- a/public/index.html
+++ b/public/index.html
@@ -6,17 +6,17 @@
-
Ton Minter
+ TON Minter
-
+
@@ -26,16 +26,16 @@
-
+
@@ -63,7 +63,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
- Ton Minter
+ TON Minter
diff --git a/src/App.tsx b/src/App.tsx
index 1d872cc..f099e0b 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -85,12 +85,15 @@ const App = () => {
resetJetton();
}, [location.pathname]);
+ const isSandbox = window.location.search.includes("sandbox");
+ const isTestnet = window.location.search.includes("testnet");
+
return (
diff --git a/src/assets/icons/bullet.svg b/src/assets/icons/bullet.svg
index fbbde74..fcc9d58 100644
--- a/src/assets/icons/bullet.svg
+++ b/src/assets/icons/bullet.svg
@@ -1,3 +1,3 @@
diff --git a/src/assets/icons/github-hover.svg b/src/assets/icons/github-hover.svg
index b16e1e3..1e076ce 100644
--- a/src/assets/icons/github-hover.svg
+++ b/src/assets/icons/github-hover.svg
@@ -1,4 +1,4 @@
diff --git a/src/assets/icons/logo.svg b/src/assets/icons/logo.svg
index 0c66ca3..bd2a52e 100644
--- a/src/assets/icons/logo.svg
+++ b/src/assets/icons/logo.svg
@@ -1,5 +1,5 @@