From eee9f9be7f53ecf91121f7f27470432ba1072a38 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 12 Dec 2023 19:37:27 -0300 Subject: [PATCH] enable Solana wallets --- package-lock.json | 301 ++++++++++++++++++++------- package.json | 2 +- src/contexts/SolanaWalletContext.tsx | 19 +- 3 files changed, 231 insertions(+), 91 deletions(-) diff --git a/package-lock.json b/package-lock.json index 947591111..8c00670e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "@solana/wallet-adapter-base": "^0.9.3", "@solana/wallet-adapter-react": "^0.15.32", "@solana/wallet-adapter-react-ui": "^0.9.5", - "@solana/wallet-adapter-wallets": "^0.19.5", + "@solana/wallet-adapter-wallets": "^0.19.20", "@solana/web3.js": "^1.35.1", "@terra-money/wallet-provider": "^3.9.4", "@types/react-dom": "^17.0.20", @@ -2413,7 +2413,8 @@ }, "node_modules/@censo-custody/solana-wallet-adapter": { "version": "0.1.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@censo-custody/solana-wallet-adapter/-/solana-wallet-adapter-0.1.0.tgz", + "integrity": "sha512-iM1jFVzBMfk7iokgUVfA2xvGUegixklUISgMARa/VA2mFIjoi32t4xmD8PtWHht81fmg107aYhLnTV1cM7NkAg==", "dependencies": { "@solana/web3.js": "^1.44.3", "bs58": "^4.0.1", @@ -10517,6 +10518,21 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-backpack": { + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-backpack/-/wallet-adapter-backpack-0.1.14.tgz", + "integrity": "sha512-DfNLd5S1P7rmrgqMp+jRd21ryuXUxia1mu4qmZ+cau1NGFO2v5ep14LhzYXmqPde6kgbzPLPkLdRnkffLdI4TA==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-base": { "version": "0.9.23", "license": "Apache-2.0", @@ -10548,8 +10564,9 @@ } }, "node_modules/@solana/wallet-adapter-bitkeep": { - "version": "0.3.19", - "license": "Apache-2.0", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-bitkeep/-/wallet-adapter-bitkeep-0.3.20.tgz", + "integrity": "sha512-v6Jd13CZOPNIAX0nFlopAJ3HDvC+MhiB4sde3C8sSnNbjVi9h1WLHBmaUfgqU6mAyhDjWUZjKt4zYlMhLdp/bg==", "dependencies": { "@solana/wallet-adapter-base": "^0.9.23" }, @@ -10573,9 +10590,56 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-blocto": { + "version": "0.5.22", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-blocto/-/wallet-adapter-blocto-0.5.22.tgz", + "integrity": "sha512-e98VaErdaVJE14WovTaw6Fpu1F1BP7DbzOdwIR/cAKXkss+Lh4dxZPwT8UVOMwBb2/CZYbuJtEvJuzIzlch0gQ==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@blocto/sdk": "^0.2.22", + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, + "node_modules/@solana/wallet-adapter-blocto/node_modules/@blocto/sdk": { + "version": "0.2.22", + "resolved": "https://registry.npmjs.org/@blocto/sdk/-/sdk-0.2.22.tgz", + "integrity": "sha512-Ro1AiISSlOiri/It932NEFxnDuF83Ide+z0p3KHs5+CdYYLYgCMmyroQnfRtoh3mbXdrTvI+EAuSkr+meWNqrg==", + "dependencies": { + "bs58": "^4.0.1", + "buffer": "^6.0.3", + "eip1193-provider": "^1.0.1", + "js-sha3": "^0.8.0" + }, + "peerDependencies": { + "@solana/web3.js": "^1.30.2" + } + }, + "node_modules/@solana/wallet-adapter-brave": { + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-brave/-/wallet-adapter-brave-0.1.17.tgz", + "integrity": "sha512-E+TxSpW7+tqR6EFbQ7GMm+92KklEcwsySDWq7RPifet7nmrqKuxbfAHk+OgmwCePxXIH7DsMHV4rmkcT4UZPOw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-censo": { "version": "0.1.4", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-censo/-/wallet-adapter-censo-0.1.4.tgz", + "integrity": "sha512-T0p416xmTTlelhCt755KT/lkaN8uS/QO5NvnOatCx0ZRD41ra9Sqxksbr/G2cIjP2dy7WcXVFO0wLI7moUkqfQ==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "dependencies": { "@censo-custody/solana-wallet-adapter": "^0.1.0", "@solana/wallet-adapter-base": "^0.9.23" @@ -10640,6 +10704,21 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-exodus": { + "version": "0.1.18", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-exodus/-/wallet-adapter-exodus-0.1.18.tgz", + "integrity": "sha512-mkHLWQWLFtfEm2p4+S/kZM269VaQ8LrABT0ra4359sii4MMMPD5HDLfMzax0RmfEA3PjSHpj6PdBsqw7DNK+og==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-fractal": { "version": "0.1.8", "license": "Apache-2.0", @@ -10654,6 +10733,21 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-glow": { + "version": "0.1.18", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-glow/-/wallet-adapter-glow-0.1.18.tgz", + "integrity": "sha512-5e4WKZ4cgN/dlhBJoHKn/+6z68mRl1A5yf3KBYl1+RgO7ixTN/JncY+ckpdsWUi08hL1Xv8swhyec30JACH/mw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-huobi": { "version": "0.1.15", "license": "Apache-2.0", @@ -10794,6 +10888,21 @@ "version": "4.0.0", "license": "ISC" }, + "node_modules/@solana/wallet-adapter-magiceden": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-magiceden/-/wallet-adapter-magiceden-0.1.13.tgz", + "integrity": "sha512-3jaUBTBmRNLK94ednqUgeszFR2L6nlttVZquJP4z12qSFinwXsdAqAvbxV3NbEY/JHm62EoFj+o4U+mVxaL5fw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-mathwallet": { "version": "0.9.18", "license": "Apache-2.0", @@ -10972,9 +11081,26 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-slope": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-slope/-/wallet-adapter-slope-0.5.21.tgz", + "integrity": "sha512-4byuSwqkt8L3w7VzFvVPBN+lNkx7CmEc+FMFZUuo9pBDwwi6sDYZK/+wBBep7L7+xW81XKN9K4MsMOQAD2snSg==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23", + "bs58": "^4.0.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-solflare": { - "version": "0.6.27", - "license": "Apache-2.0", + "version": "0.6.28", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-solflare/-/wallet-adapter-solflare-0.6.28.tgz", + "integrity": "sha512-iiUQtuXp8p4OdruDawsm1dRRnzUCcsu+lKo8OezESskHtbmZw2Ifej0P99AbJbBAcBw7q4GPI6987Vh05Si5rw==", "dependencies": { "@solana/wallet-adapter-base": "^0.9.23", "@solana/wallet-standard-chains": "^1.1.0", @@ -10989,6 +11115,22 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-sollet": { + "version": "0.11.17", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-sollet/-/wallet-adapter-sollet-0.11.17.tgz", + "integrity": "sha512-jT5kan3FJ6cWfuyFxvDhO9aXyYO8nNAjhJEZWIAPH3to4yrQRCsW/7SJ2M6pTkI9rp7dMX8u5Lm7lWxyPEecBA==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@project-serum/sol-wallet-adapter": "^0.2.6", + "@solana/wallet-adapter-base": "^0.9.23" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-solong": { "version": "0.9.18", "license": "Apache-2.0", @@ -11015,6 +11157,22 @@ "@solana/web3.js": "^1.77.3" } }, + "node_modules/@solana/wallet-adapter-strike": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-strike/-/wallet-adapter-strike-0.1.13.tgz", + "integrity": "sha512-SwM6oRiTZm75t6ACJZsbouJ21Ftvsxg6OYkyhCvsdi1KOv60/i4CHDTfFEvEYe+C2GR2p8W7RxyOuxp74pueZA==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.23", + "@strike-protocols/solana-wallet-adapter": "^0.1.8" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.77.3" + } + }, "node_modules/@solana/wallet-adapter-tokenary": { "version": "0.1.12", "license": "Apache-2.0", @@ -11103,24 +11261,31 @@ } }, "node_modules/@solana/wallet-adapter-wallets": { - "version": "0.19.22", - "license": "Apache-2.0", + "version": "0.19.20", + "resolved": "https://registry.npmjs.org/@solana/wallet-adapter-wallets/-/wallet-adapter-wallets-0.19.20.tgz", + "integrity": "sha512-bE7tS6UykCSiWmudo8DYe/mZV0HoyqI+XifIjPaY/BNSgXQ3u1cwbqvqcLURuixBRnOka7FE6VuT90PhRsosqA==", "dependencies": { "@solana/wallet-adapter-alpha": "^0.1.10", "@solana/wallet-adapter-avana": "^0.1.13", + "@solana/wallet-adapter-backpack": "^0.1.14", "@solana/wallet-adapter-bitkeep": "^0.3.19", "@solana/wallet-adapter-bitpie": "^0.5.18", + "@solana/wallet-adapter-blocto": "^0.5.22", + "@solana/wallet-adapter-brave": "^0.1.17", "@solana/wallet-adapter-censo": "^0.1.4", "@solana/wallet-adapter-clover": "^0.4.19", "@solana/wallet-adapter-coin98": "^0.5.20", "@solana/wallet-adapter-coinbase": "^0.1.18", "@solana/wallet-adapter-coinhub": "^0.3.18", + "@solana/wallet-adapter-exodus": "^0.1.18", "@solana/wallet-adapter-fractal": "^0.1.8", + "@solana/wallet-adapter-glow": "^0.1.18", "@solana/wallet-adapter-huobi": "^0.1.15", "@solana/wallet-adapter-hyperpay": "^0.1.14", "@solana/wallet-adapter-keystone": "^0.1.12", "@solana/wallet-adapter-krystal": "^0.1.12", "@solana/wallet-adapter-ledger": "^0.9.25", + "@solana/wallet-adapter-magiceden": "^0.1.13", "@solana/wallet-adapter-mathwallet": "^0.9.18", "@solana/wallet-adapter-neko": "^0.2.12", "@solana/wallet-adapter-nightly": "^0.1.16", @@ -11132,9 +11297,12 @@ "@solana/wallet-adapter-saifu": "^0.1.15", "@solana/wallet-adapter-salmon": "^0.1.14", "@solana/wallet-adapter-sky": "^0.1.15", - "@solana/wallet-adapter-solflare": "^0.6.27", + "@solana/wallet-adapter-slope": "^0.5.21", + "@solana/wallet-adapter-solflare": "^0.6.26", + "@solana/wallet-adapter-sollet": "^0.11.17", "@solana/wallet-adapter-solong": "^0.9.18", "@solana/wallet-adapter-spot": "^0.1.15", + "@solana/wallet-adapter-strike": "^0.1.13", "@solana/wallet-adapter-tokenary": "^0.1.12", "@solana/wallet-adapter-tokenpocket": "^0.4.19", "@solana/wallet-adapter-torus": "^0.11.28", @@ -11269,7 +11437,8 @@ }, "node_modules/@solflare-wallet/metamask-sdk": { "version": "1.0.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@solflare-wallet/metamask-sdk/-/metamask-sdk-1.0.2.tgz", + "integrity": "sha512-IoHz81EfU8x/QlmUlVimt45FTPlqOQzTcVpB4T3h1E/J9jtuywHHsdRAzmjw71phPCp/5fgFIfg+pD48GIqmQA==", "dependencies": { "@solana/wallet-standard-features": "^1.1.0", "@wallet-standard/base": "^1.0.1", @@ -11283,29 +11452,38 @@ }, "node_modules/@solflare-wallet/metamask-sdk/node_modules/base-x": { "version": "4.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" }, "node_modules/@solflare-wallet/metamask-sdk/node_modules/bs58": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", "dependencies": { "base-x": "^4.0.0" } }, "node_modules/@solflare-wallet/metamask-sdk/node_modules/eventemitter3": { "version": "5.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" }, "node_modules/@solflare-wallet/metamask-sdk/node_modules/uuid": { - "version": "9.0.0", - "license": "MIT", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/@solflare-wallet/sdk": { - "version": "1.3.1", - "license": "Apache-2.0", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@solflare-wallet/sdk/-/sdk-1.4.1.tgz", + "integrity": "sha512-opkddo/NkYIIzK3W6RCTdELWOSRY/i72U9syRrUP3vN1C/OcXSjJ5wuwmNHR2dj+MCStdUnGUggYz3KPpu088g==", "dependencies": { "bs58": "^5.0.0", "eventemitter3": "^5.0.1", @@ -11317,22 +11495,30 @@ }, "node_modules/@solflare-wallet/sdk/node_modules/base-x": { "version": "4.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" }, "node_modules/@solflare-wallet/sdk/node_modules/bs58": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", "dependencies": { "base-x": "^4.0.0" } }, "node_modules/@solflare-wallet/sdk/node_modules/eventemitter3": { "version": "5.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" }, "node_modules/@solflare-wallet/sdk/node_modules/uuid": { - "version": "9.0.0", - "license": "MIT", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } @@ -11465,6 +11651,17 @@ "@stablelib/wipe": "^1.0.1" } }, + "node_modules/@strike-protocols/solana-wallet-adapter": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@strike-protocols/solana-wallet-adapter/-/solana-wallet-adapter-0.1.8.tgz", + "integrity": "sha512-8gZAfjkoFgwf5fLFzrVuE2MtxAc7Pc0loBgi0zfcb3ijOy/FEpm5RJKLruKOhcThS6CHrfFxDU80AsZe+msObw==", + "dependencies": { + "@solana/web3.js": "^1.44.3", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + } + }, "node_modules/@suchipi/femver": { "version": "1.0.0", "license": "MIT" @@ -25383,8 +25580,6 @@ }, "node_modules/ganache/node_modules/@trufflesuite/bigint-buffer": { "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.10.tgz", - "integrity": "sha512-pYIQC5EcMmID74t26GCC67946mgTJFiLXOT/BYozgrd4UEY2JHEGLhWi9cMiQCt5BSqFEvKkCHNnoj82SRjiEw==", "dev": true, "hasInstallScript": true, "inBundle": true, @@ -25398,8 +25593,6 @@ }, "node_modules/ganache/node_modules/@trufflesuite/bigint-buffer/node_modules/node-gyp-build": { "version": "4.4.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz", - "integrity": "sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -25517,8 +25710,6 @@ }, "node_modules/ganache/node_modules/abstract-leveldown": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-7.2.0.tgz", - "integrity": "sha512-DnhQwcFEaYsvYDnACLZhMmCWd3rkOeEvglpa4q5i/5Jlm3UIsWaxVzuXvDLFCSCWRO3yy2/+V/G7FusFgejnfQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -25552,8 +25743,6 @@ }, "node_modules/ganache/node_modules/base64-js": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, "funding": [ { @@ -25574,16 +25763,12 @@ }, "node_modules/ganache/node_modules/brorand": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/ganache/node_modules/buffer": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", "dev": true, "funding": [ { @@ -25621,8 +25806,6 @@ }, "node_modules/ganache/node_modules/catering": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/catering/-/catering-2.1.1.tgz", - "integrity": "sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w==", "dev": true, "inBundle": true, "license": "MIT", @@ -25632,8 +25815,6 @@ }, "node_modules/ganache/node_modules/elliptic": { "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -25649,8 +25830,6 @@ }, "node_modules/ganache/node_modules/elliptic/node_modules/bn.js": { "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true, "inBundle": true, "license": "MIT" @@ -25668,8 +25847,6 @@ }, "node_modules/ganache/node_modules/hash.js": { "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "dev": true, "inBundle": true, "license": "MIT", @@ -25680,8 +25857,6 @@ }, "node_modules/ganache/node_modules/hmac-drbg": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "dev": true, "inBundle": true, "license": "MIT", @@ -25693,8 +25868,6 @@ }, "node_modules/ganache/node_modules/ieee754": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true, "funding": [ { @@ -25715,16 +25888,12 @@ }, "node_modules/ganache/node_modules/inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/ganache/node_modules/is-buffer": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", "dev": true, "funding": [ { @@ -25748,8 +25917,6 @@ }, "node_modules/ganache/node_modules/keccak": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.2.tgz", - "integrity": "sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ==", "dev": true, "hasInstallScript": true, "inBundle": true, @@ -25765,8 +25932,6 @@ }, "node_modules/ganache/node_modules/level-concat-iterator": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/level-concat-iterator/-/level-concat-iterator-3.1.0.tgz", - "integrity": "sha512-BWRCMHBxbIqPxJ8vHOvKUsaO0v1sLYZtjN3K2iZJsRBYtp+ONsY6Jfi6hy9K3+zolgQRryhIn2NRZjZnWJ9NmQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -25779,8 +25944,6 @@ }, "node_modules/ganache/node_modules/level-supports": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/level-supports/-/level-supports-2.1.0.tgz", - "integrity": "sha512-E486g1NCjW5cF78KGPrMDRBYzPuueMZ6VBXHT6gC7A8UYWGiM14fGgp+s/L1oFfDWSPV/+SFkYCmZ0SiESkRKA==", "dev": true, "inBundle": true, "license": "MIT", @@ -25802,8 +25965,6 @@ }, "node_modules/ganache/node_modules/leveldown": { "version": "6.1.0", - "resolved": "https://registry.npmjs.org/leveldown/-/leveldown-6.1.0.tgz", - "integrity": "sha512-8C7oJDT44JXxh04aSSsfcMI8YiaGRhOFI9/pMEL7nWJLVsWajDPTRxsSHTM2WcTVY5nXM+SuRHzPPi0GbnDX+w==", "dev": true, "hasInstallScript": true, "inBundle": true, @@ -25824,16 +25985,12 @@ }, "node_modules/ganache/node_modules/minimalistic-assert": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/ganache/node_modules/minimalistic-crypto-utils": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", "dev": true, "inBundle": true, "license": "MIT" @@ -25848,24 +26005,18 @@ }, "node_modules/ganache/node_modules/napi-macros": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-macros/-/napi-macros-2.0.0.tgz", - "integrity": "sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/ganache/node_modules/node-addon-api": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", - "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/ganache/node_modules/node-gyp-build": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", - "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", "dev": true, "inBundle": true, "license": "MIT", @@ -25877,8 +26028,6 @@ }, "node_modules/ganache/node_modules/queue-microtask": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, "funding": [ { @@ -25899,8 +26048,6 @@ }, "node_modules/ganache/node_modules/readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "inBundle": true, "license": "MIT", @@ -25915,8 +26062,6 @@ }, "node_modules/ganache/node_modules/safe-buffer": { "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true, "funding": [ { @@ -25937,8 +26082,6 @@ }, "node_modules/ganache/node_modules/secp256k1": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", "dev": true, "hasInstallScript": true, "inBundle": true, @@ -25954,8 +26097,6 @@ }, "node_modules/ganache/node_modules/string_decoder": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, "inBundle": true, "license": "MIT", @@ -25978,8 +26119,6 @@ }, "node_modules/ganache/node_modules/util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "inBundle": true, "license": "MIT" diff --git a/package.json b/package.json index 6bc0fd80f..ec3a39d93 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@solana/wallet-adapter-base": "^0.9.3", "@solana/wallet-adapter-react": "^0.15.32", "@solana/wallet-adapter-react-ui": "^0.9.5", - "@solana/wallet-adapter-wallets": "^0.19.5", + "@solana/wallet-adapter-wallets": "^0.19.20", "@solana/web3.js": "^1.35.1", "@terra-money/wallet-provider": "^3.9.4", "@types/react-dom": "^17.0.20", diff --git a/src/contexts/SolanaWalletContext.tsx b/src/contexts/SolanaWalletContext.tsx index c7928d86e..aa75e8812 100644 --- a/src/contexts/SolanaWalletContext.tsx +++ b/src/contexts/SolanaWalletContext.tsx @@ -4,14 +4,14 @@ import { SolflareWalletAdapter, CloverWalletAdapter, Coin98WalletAdapter, - //SlopeWalletAdapter, + SlopeWalletAdapter, SolongWalletAdapter, TorusWalletAdapter, - //ExodusWalletAdapter, - //BackpackWalletAdapter, + ExodusWalletAdapter, + BackpackWalletAdapter, NightlyWalletAdapter, - //BloctoWalletAdapter, - //BraveWalletAdapter, + BloctoWalletAdapter, + BraveWalletAdapter, } from "@solana/wallet-adapter-wallets"; import { Connection } from "@solana/web3.js"; import { CHAIN_ID_SOLANA, Wallet } from "@xlabs-libs/wallet-aggregator-core"; @@ -27,15 +27,16 @@ export const getWrappedWallets = (): Wallet[] => { const wallets: SolanaAdapter[] = [ new PhantomWalletAdapter(), new SolflareWalletAdapter(), - //new BackpackWalletAdapter(), + new BackpackWalletAdapter(), new NightlyWalletAdapter(), new CloverWalletAdapter(), new Coin98WalletAdapter(), - //new SlopeWalletAdapter(), + new SlopeWalletAdapter(), new SolongWalletAdapter(), new TorusWalletAdapter(), - //new ExodusWalletAdapter(), - //new BraveWalletAdapter(), + new ExodusWalletAdapter(), + new BraveWalletAdapter(), + new BloctoWalletAdapter() ]; const network =