diff --git a/.changeset/chilled-spies-bathe.md b/.changeset/chilled-spies-bathe.md new file mode 100644 index 00000000..a05b960b --- /dev/null +++ b/.changeset/chilled-spies-bathe.md @@ -0,0 +1,5 @@ +--- +"@starknet-io/get-starknet-core": patch +--- + +Add keplr wallet diff --git a/README.md b/README.md index 54ebd224..dd7b6c27 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ - ⚙️ Customizable and extensible - 🌍 Open source and controlled by the community - ## Installation ``` @@ -24,7 +23,8 @@ yarn add @starknet-io/get-starknet starknet@next pnpm add @starknet-io/get-starknet starknet@next ``` -Read more about the new Starkent Dapp<>Wallet API in the [post](https://community.starknet.io/t/new-starknet-wallet-dapp-api/114295) +Read more about the new Starkent Dapp<>Wallet API in the +[post](https://community.starknet.io/t/new-starknet-wallet-dapp-api/114295) ## Usage for dApp developers diff --git a/packages/core/src/__test__/main.test.ts b/packages/core/src/__test__/main.test.ts index a2421729..64e7a611 100644 --- a/packages/core/src/__test__/main.test.ts +++ b/packages/core/src/__test__/main.test.ts @@ -3,6 +3,8 @@ import { mockStorageFunction } from "./storage.mock" import { ArgentXMock, BraavosMock, + KeplrMock, + OKXMock, UnknownWalletAMock, UnknownWalletBMock, makeAuthorized, @@ -31,11 +33,15 @@ describe("getAvailableWallets()", () => { }, starknet: ArgentXMock, "starknet-braavos": BraavosMock, + starknet_okxwallet: OKXMock, + starknet_keplr: KeplrMock, }) const availableWallets = await sn.getAvailableWallets() - expect(availableWallets.length).toBe(2) + expect(availableWallets.length).toBe(4) expect(availableWallets).toContainEqual(ArgentXMock) expect(availableWallets).toContainEqual(BraavosMock) + expect(availableWallets).toContainEqual(OKXMock) + expect(availableWallets).toContainEqual(KeplrMock) }) it("should return one injected wallet", async () => { const sn = getWallet({ @@ -110,16 +116,22 @@ describe("getAuthorizedWallets()", () => { const sn = getWallet({ "starknet-argent": makeAuthorized(true)(ArgentXMock), "starknet-braavos": makeAuthorized(true)(BraavosMock), + starknet_okxwallet: makeAuthorized(true)(OKXMock), + starknet_keplr: makeAuthorized(true)(KeplrMock), }) - const authorizedWallets = await sn.getAuthorizedWallets() - expect(authorizedWallets.length).toBe(2) - expect(authorizedWallets.map((w) => w.id)).contains(ArgentXMock.id) - expect(authorizedWallets.map((w) => w.id)).contains(BraavosMock.id) + const preauthorizedWallets = await sn.getAuthorizedWallets() + expect(preauthorizedWallets.length).toBe(4) + expect(preauthorizedWallets.map((w) => w.id)).contains(ArgentXMock.id) + expect(preauthorizedWallets.map((w) => w.id)).contains(BraavosMock.id) + expect(preauthorizedWallets.map((w) => w.id)).contains(OKXMock.id) + expect(preauthorizedWallets.map((w) => w.id)).contains(KeplrMock.id) }) it("should return one authorized wallet", async () => { const sn = getWallet({ "starknet-argent": makeAuthorized(true)(ArgentXMock), "starknet-braavos": makeAuthorized(false)(BraavosMock), + starknet_okxwallet: makeAuthorized(false)(OKXMock), + starknet_keplr: makeAuthorized(false)(KeplrMock), }) const authorizedWallets = await sn.getAuthorizedWallets() expect(authorizedWallets.length).toBe(1) @@ -131,8 +143,10 @@ describe("getDiscoveryWallets()", () => { it("should return all discovery wallets", async () => { const sn = getWallet({}) const discoveryWallets = await sn.getDiscoveryWallets() - expect(discoveryWallets.length).toBe(3) + expect(discoveryWallets.length).toBe(5) expect(discoveryWallets.map((w) => w.id)).contains(ArgentXMock.id) expect(discoveryWallets.map((w) => w.id)).contains(BraavosMock.id) + expect(discoveryWallets.map((w) => w.id)).contains(OKXMock.id) + expect(discoveryWallets.map((w) => w.id)).contains(KeplrMock.id) }) }) diff --git a/packages/core/src/__test__/storage.test.ts b/packages/core/src/__test__/storage.test.ts index ca3fbb5d..d7c1e514 100644 --- a/packages/core/src/__test__/storage.test.ts +++ b/packages/core/src/__test__/storage.test.ts @@ -3,6 +3,8 @@ import { mockStorageFunction } from "./storage.mock" import { ArgentXMock, BraavosMock, + KeplrMock, + OKXMock, UnknownWalletAMock, UnknownWalletBMock, makeAuthorized, @@ -48,6 +50,8 @@ describe("getLastConnectedWallet()", () => { { "starknet-argentX": makeAuthorized(false)(ArgentXMock), "starknet-braavos": makeAuthorized(false)(BraavosMock), + starknet_okxwallet: makeAuthorized(false)(OKXMock), + starknet_keplr: makeAuthorized(false)(KeplrMock), }, mockStorageFunction({ "gsw-last": "braavos", @@ -61,6 +65,8 @@ describe("getLastConnectedWallet()", () => { { "starknet-argentX": makeAuthorized(false)(ArgentXMock), "starknet-braavos": makeAuthorized(true)(BraavosMock), + starknet_okxwallet: makeAuthorized(false)(OKXMock), + starknet_keplr: makeAuthorized(false)(KeplrMock), }, mockStorageFunction({ "gsw-last": "braavos", @@ -74,6 +80,8 @@ describe("getLastConnectedWallet()", () => { { "starknet-argentX": makeAuthorized(true)(ArgentXMock), "starknet-braavos": makeAuthorized(true)(BraavosMock), + starknet_okxwallet: makeAuthorized(true)(OKXMock), + starknet_keplr: makeAuthorized(true)(KeplrMock), }, mockStorageFunction({ "gsw-last": "braavos" }), ) @@ -84,6 +92,8 @@ describe("getLastConnectedWallet()", () => { const sn = getWallet({ "starknet-argentX": makeConnected(true)(ArgentXMock), "starknet-braavos": makeConnected(true)(BraavosMock), + starknet_okxwallet: makeConnected(true)(OKXMock), + starknet_keplr: makeAuthorized(true)(KeplrMock), }) const lastConnectedWallet = await sn.getLastConnectedWallet() expect(lastConnectedWallet).toBe(null) @@ -108,6 +118,8 @@ describe("getLastConnectedWallet()", () => { { "starknet-argentX": makeAuthorized(true)(ArgentXMock), "starknet-braavos": makeAuthorized(true)(BraavosMock), + starknet_okxwallet: makeAuthorized(true)(OKXMock), + starknet_keplr: makeAuthorized(true)(KeplrMock), }, mockStorageFunction({ "gsw-last": "braavos", @@ -125,6 +137,8 @@ describe("getLastConnectedWallet()", () => { { "starknet-argentX": makeAuthorized(true)(ArgentXMock), "starknet-braavos": makeAuthorized(true)(BraavosMock), + starknet_okxwallet: makeAuthorized(true)(OKXMock), + starknet_keplr: makeAuthorized(true)(KeplrMock), }, mockStorageFunction({ "gsw-last": "braavos", diff --git a/packages/core/src/__test__/wallet.mock.ts b/packages/core/src/__test__/wallet.mock.ts index 70c5a120..eb881a70 100644 --- a/packages/core/src/__test__/wallet.mock.ts +++ b/packages/core/src/__test__/wallet.mock.ts @@ -50,6 +50,36 @@ export const BraavosMock: StarknetWindowObject = { off: () => {}, } +export const OKXMock: StarknetWindowObject = { + ...wallets.find((w) => w.id === "okxwallet")!, + version: "0.0.0", + request: async (request) => { + switch (request.type) { + case "wallet_getPermissions": + return [] + default: + return undefined as any + } + }, + on: () => {}, + off: () => {}, +} + +export const KeplrMock: StarknetWindowObject = { + ...wallets.find((w) => w.id === "keplr")!, + version: "0.0.0", + request: async (request) => { + switch (request.type) { + case "wallet_getPermissions": + return [] + default: + return undefined as any + } + }, + on: () => {}, + off: () => {}, +} + export function makeAuthorized(authorized: boolean) { return (wallet: StarknetWindowObject) => ({ diff --git a/packages/core/src/discovery.ts b/packages/core/src/discovery.ts index db7c301d..b43273b1 100644 --- a/packages/core/src/discovery.ts +++ b/packages/core/src/discovery.ts @@ -70,6 +70,29 @@ const wallets: WalletProvider[] = [ edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm?hl=en-US", }, }, + { + id: "okxwallet", + name: "OKX Wallet", + icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJDSURBVHgB7Zq9jtpAEMfHlhEgQLiioXEkoAGECwoKxMcTRHmC5E3IoyRPkPAEkI7unJYmTgEFTYwA8a3NTKScLnCHN6c9r1e3P2llWQy7M/s1Gv1twCP0ej37dDq9x+Zut1t3t9vZjDEHIiSRSPg4ZpDL5fxkMvn1cDh8m0wmfugfO53OoFQq/crn8wxfY9EymQyrVCqMfHvScZx1p9ls3pFxXBy/bKlUipGPrVbLuQqAfsCliq3zl0H84zwtjQrOw4Mt1W63P5LvBm2d+Xz+YzqdgkqUy+WgWCy+Mc/nc282m4FqLBYL+3g8fjDxenq72WxANZbLJeA13zDX67UDioL5ybXwafMYu64Ltn3bdDweQ5R97fd7GyhBQMipx4POeEDHIu2LfDdBIGGz+hJ9CQ1ABjoA2egAZPM6AgiCAEQhsi/C4jHyPA/6/f5NG3Ks2+3CYDC4aTccDrn6ojG54MnEvG00GoVmWLIRNZ7wTCwDHYBsdACy0QHIhiuRETxlICWpMMhGZHmqS8qH6JLyGegAZKMDkI0uKf8X4SWlaZo+Pp1bRrwlJU8ZKLIvUjKh0WiQ3sRUbNVq9c5Ebew7KEo2m/1p4jJ4qAmDaqDQBzj5XyiAT4VCQezJigAU+IDU+z8vJFnGWeC+bKQV/5VZ71FV6L7PA3gg3tXrdQ+DgLhC+75Wq3no69P3MC0NFQpx2lL04Ql9gHK1bRDjsSBIvScBnDTk1WrlGIZBorIDEYJj+rhdgnQ67VmWRe0zlplXl81vcyEt0rSoYDUAAAAASUVORK5CYII=", + downloads: { + chrome: + "https://chrome.google.com/webstore/detail/mcohilncbfahbmgdjkbpemcciiolgcge", + firefox: "https://addons.mozilla.org/en-US/firefox/addon/okexwallet", + edge: "https://microsoftedge.microsoft.com/addons/detail/%E6%AC%A7%E6%98%93-web3-%E9%92%B1%E5%8C%85/pbpjkcldjiffchgbbndmhojiacbgflha", + safari: "https://apps.apple.com/us/app/okx-wallet/id6463797825", + }, + }, + { + id: "keplr", + name: "Keplr", + icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACPfSURBVHgBzV0L0B9VdT9nvy/vB6nVOg4GEx/VER3A1iqo9aMzFgWtoOhgsYaHYNV2lNEqxAdfmKHTakuDTge1FJK2tqOtGqoWFWti8TFSxGDriFSbIK+qgB95h+Tb09397+49r3t3/99/LT0zm//e9917fud3zr27SRB+EbKd1gAcOhFg/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3uhhsohFC+aA0IanQbSDJrf8imvrPGSbZyP7+74yMQAaKb8tXA5TZxYdbiiumapzAQAIx8WuYiDqBlpqb8vRAoClFwYApSg256BYHwCZUOSkAJC/DAAFzcPO4u6Go5BtKRQ/BwPIYADQ8qyZXTMZZCcW+4UXF6OsyZDWFQ+8DqKKWTgAMhcI4wHAKLatE+wuCoC6LK5cDwCoACbKdxd9FgrGncUrnNtHv9M7h1I6l/8FAVO2ym5DPSIAAAAASUVORK5CYII=", + downloads: { + chrome: + "https://chrome.google.com/webstore/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap", + firefox: "https://addons.mozilla.org/en-US/firefox/addon/keplr", + edge: "https://microsoftedge.microsoft.com/addons/detail/keplr/ocodgmmffbkkeecmadcijjhkmeohinei", + }, + }, ] export default wallets diff --git a/packages/ui/src/main.ts b/packages/ui/src/main.ts index f29bc60e..07375c15 100644 --- a/packages/ui/src/main.ts +++ b/packages/ui/src/main.ts @@ -33,6 +33,8 @@ function getBrowserStoreVersionFromBrowser(): BrowserStoreVersion | null { case "opera": // opera is chromium based case "vivaldi": // vivaldi is chromium based return "chrome" + case "safari": + return "safari" default: return null }