Skip to content

Commit

Permalink
Merge pull request #328 from suiet/feat/add-phantom
Browse files Browse the repository at this point in the history
Feat/add phantom
  • Loading branch information
bruceeewong authored Feb 3, 2025
2 parents 33b9e5e + f68a4a6 commit 0661475
Show file tree
Hide file tree
Showing 5 changed files with 1,264 additions and 1,311 deletions.
66 changes: 33 additions & 33 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,43 +27,43 @@
"dependencies": {
"@mysten/sui": "1.12.0",
"@mysten/wallet-standard": "0.13.7",
"@mysten/zksend": "^0.11.0",
"@radix-ui/react-dialog": "^1.0.2",
"@mysten/zksend": "0.11.0",
"@radix-ui/react-dialog": "1.0.2",
"@suiet/wallet-sdk": "workspace:*",
"@svgr/rollup": "^6.5.1",
"@svgr/rollup": "6.5.1",
"@wallet-standard/core": "1.0.3",
"buffer": "^6.0.3",
"classnames": "^2.3.2",
"lodash-es": "^4.17.21",
"mitt": "^3.0.0",
"react-query": "^3.39.2"
"buffer": "6.0.3",
"classnames": "2.3.2",
"lodash-es": "4.17.21",
"mitt": "3.0.0",
"react-query": "3.39.2"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/npm": "^9.0.1",
"@types/jest": "^28.1.7",
"@types/lodash": "^4.14.188",
"@types/lodash-es": "^4.17.6",
"@types/lossless-json": "^1.0.1",
"@types/node": "^20.4.2",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@vanilla-extract/css": "^1.9.0",
"@vanilla-extract/vite-plugin": "^3.4.0",
"@vitejs/plugin-react": "^2.1.0",
"jest": "^28.1.3",
"jest-simple-dot-reporter": "^1.0.5",
"postcss": "^8.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-visualizer": "^5.9.2",
"sass": "^1.56.1",
"semantic-release": "^19.0.5",
"ts-jest": "^28.0.8",
"typescript": "^5.1.6",
"typescript-plugin-css-modules": "^3.4.0",
"vite": "^5.2.12",
"vite-plugin-svgr": "^2.2.1"
"@semantic-release/changelog": "6.0.1",
"@semantic-release/npm": "9.0.1",
"@types/jest": "28.1.7",
"@types/lodash": "4.14.188",
"@types/lodash-es": "4.17.6",
"@types/lossless-json": "1.0.1",
"@types/node": "20.4.2",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.8",
"@vanilla-extract/css": "1.9.0",
"@vanilla-extract/vite-plugin": "3.4.0",
"@vitejs/plugin-react": "2.1.0",
"jest": "28.1.3",
"jest-simple-dot-reporter": "1.0.5",
"postcss": "8.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup-plugin-visualizer": "5.9.2",
"sass": "1.56.1",
"semantic-release": "19.0.5",
"ts-jest": "28.0.8",
"typescript": "5.1.6",
"typescript-plugin-css-modules": "3.4.0",
"vite": "5.2.12",
"vite-plugin-svgr": "2.2.1"
},
"peerDependencies": {
"@mysten/sui": "1.12.0",
Expand Down
36 changes: 18 additions & 18 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@
"dependencies": {
"@mysten/sui": "1.12.0",
"@mysten/wallet-standard": "0.13.7",
"@mysten/zksend": "^0.11.0",
"@noble/hashes": "^1.3.0",
"buffer": "^6.0.3",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
"@mysten/zksend": "0.11.0",
"@noble/hashes": "1.3.0",
"buffer": "6.0.3",
"superstruct": "1.0.3",
"tweetnacl": "1.0.3"
},
"devDependencies": {
"@rollup/plugin-inject": "^5.0.5",
"@types/jest": "^28.1.7",
"@types/node": "^20.4.2",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest-simple-dot-reporter": "^1.0.5",
"rimraf": "^3.0.2",
"rollup-plugin-visualizer": "^5.9.2",
"ts-jest": "^28.0.8",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"vite": "^5.2.12",
"vite-plugin-dts": "^2.3.0"
"@rollup/plugin-inject": "5.0.5",
"@types/jest": "28.1.7",
"@types/node": "20.4.2",
"jest": "28.1.3",
"jest-environment-jsdom": "28.1.3",
"jest-simple-dot-reporter": "1.0.5",
"rimraf": "3.0.2",
"rollup-plugin-visualizer": "5.9.2",
"ts-jest": "28.0.8",
"ts-node": "10.9.1",
"typescript": "5.1.6",
"vite": "5.2.12",
"vite-plugin-dts": "2.3.0"
},
"peerDependencies": {
"@mysten/sui": "1.12.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/src/wallet/AllDefaultWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const AllDefaultWallets = [
presets.NightlyWallet,
presets.ElliWallet,
presets.TokenPocketWallet,
presets.FrontierWallet
presets.FrontierWallet,
presets.PhantomWallet,
].sort((a, b) => (a.name < b.name ? -1 : 1)),
];
12 changes: 12 additions & 0 deletions packages/sdk/src/wallet/preset-wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export enum PresetWallet {
ELLI_WALLET = "Elli",
TOKENPOCKET_WALLET = "TokenPocket Wallet",
FRONTIER_WALLET = "Frontier Wallet",
PHANTOM_WALLET = "Phantom",
}

export const SuietWallet = defineWallet({
Expand Down Expand Up @@ -192,3 +193,14 @@ export const FrontierWallet = defineWallet({
"https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
},
});

export const PhantomWallet = defineWallet({
name: PresetWallet.PHANTOM_WALLET,
label: "Phantom",
iconUrl:
"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA4IiBoZWlnaHQ9IjEwOCIgdmlld0JveD0iMCAwIDEwOCAxMDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3ID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