diff --git a/README.md b/README.md index 0bfbee615..aa033e367 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem: -- [NEAR Wallet](https://www.npmjs.com/package/@near-wallet-selector/near-wallet) - Browser wallet. - [My NEAR Wallet](https://www.npmjs.com/package/@near-wallet-selector/my-near-wallet) - Browser wallet. - [Mintbase Wallet](https://www.npmjs.com/package/@near-wallet-selector/mintbase-wallet) - Browser wallet. - [Ledger](https://www.npmjs.com/package/@near-wallet-selector/ledger) - Hardware wallet. @@ -54,7 +53,6 @@ Next, you'll need to install the wallets you want to support: ```bash # Using Yarn yarn add \ - @near-wallet-selector/near-wallet \ @near-wallet-selector/bitget-wallet \ @near-wallet-selector/my-near-wallet \ @near-wallet-selector/sender \ @@ -77,7 +75,6 @@ yarn add \ # Using NPM. npm install \ - @near-wallet-selector/near-wallet \ @near-wallet-selector/bitget-wallet \ @near-wallet-selector/my-near-wallet \ @near-wallet-selector/sender \ @@ -115,7 +112,6 @@ Then in your dApp: import { setupWalletSelector } from "@near-wallet-selector/core"; import { setupModal } from "@near-wallet-selector/modal-ui"; import { setupBitgetWallet } from "@near-wallet-selector/bitget-wallet"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet"; import { setupSender } from "@near-wallet-selector/sender"; import { setupHereWallet } from "@near-wallet-selector/here-wallet"; @@ -139,7 +135,6 @@ import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; const selector = await setupWalletSelector({ network: "testnet", modules: [ - setupNearWallet(), setupBitgetWallet(), setupMyNearWallet(), setupSender(), diff --git a/examples/angular/project.json b/examples/angular/project.json index e7d1c4fef..91dc82330 100644 --- a/examples/angular/project.json +++ b/examples/angular/project.json @@ -19,11 +19,6 @@ "assets": [ "examples/angular/src/favicon.ico", "examples/angular/src/assets", - { - "glob": "**/*", - "input": "packages/near-wallet/assets/", - "output": "assets/" - }, { "glob": "**/*", "input": "packages/my-near-wallet/assets/", diff --git a/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts b/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts index 2340d3529..0f6fbc59b 100644 --- a/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts +++ b/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts @@ -2,7 +2,6 @@ import type { OnInit } from "@angular/core"; import type { AccountState, WalletSelector } from "@near-wallet-selector/core"; import { setupWalletSelector } from "@near-wallet-selector/core"; import type { WalletSelectorModal } from "@near-wallet-selector/account-export"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; import { setupSender } from "@near-wallet-selector/sender"; import { setupBitgetWallet } from "@near-wallet-selector/bitget-wallet"; import { setupXDEFI } from "@near-wallet-selector/xdefi"; @@ -56,7 +55,6 @@ export class WalletSelectorExportComponent implements OnInit { modules: [ setupMyNearWallet(), setupLedger(), - setupNearWallet(), setupSender(), setupBitgetWallet(), setupXDEFI(), diff --git a/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts b/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts index 823a17bad..0b7b8be43 100644 --- a/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts +++ b/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts @@ -3,7 +3,6 @@ import type { AccountState, WalletSelector } from "@near-wallet-selector/core"; import { setupWalletSelector } from "@near-wallet-selector/core"; import type { WalletSelectorModal } from "@near-wallet-selector/modal-ui-js"; import { setupModal } from "@near-wallet-selector/modal-ui-js"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; import { setupSender } from "@near-wallet-selector/sender"; import { setupBitgetWallet } from "@near-wallet-selector/bitget-wallet"; import { setupXDEFI } from "@near-wallet-selector/xdefi"; @@ -58,7 +57,6 @@ export class WalletSelectorComponent implements OnInit { modules: [ setupMyNearWallet(), setupLedger(), - setupNearWallet(), setupSender(), setupBitgetWallet(), setupXDEFI(), diff --git a/examples/react/contexts/WalletSelectorContext.tsx b/examples/react/contexts/WalletSelectorContext.tsx index cc5575896..158ea3817 100644 --- a/examples/react/contexts/WalletSelectorContext.tsx +++ b/examples/react/contexts/WalletSelectorContext.tsx @@ -7,7 +7,6 @@ import { setupMeteorWallet } from "@near-wallet-selector/meteor-wallet"; import { setupNarwallets } from "@near-wallet-selector/narwallets"; import type { WalletSelectorModal } from "@near-wallet-selector/modal-ui"; import { setupModal } from "@near-wallet-selector/modal-ui"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; import { setupNearFi } from "@near-wallet-selector/nearfi"; import { setupNightly } from "@near-wallet-selector/nightly"; import { setupSender } from "@near-wallet-selector/sender"; @@ -68,7 +67,6 @@ export const WalletSelectorContextProvider: React.FC<{ modules: [ setupMyNearWallet(), setupLedger(), - setupNearWallet(), setupSender(), setupBitgetWallet(), setupMathWallet(), diff --git a/examples/react/contexts/WalletSelectorExportContext.tsx b/examples/react/contexts/WalletSelectorExportContext.tsx index bc9c94aab..d58abe0ef 100644 --- a/examples/react/contexts/WalletSelectorExportContext.tsx +++ b/examples/react/contexts/WalletSelectorExportContext.tsx @@ -11,7 +11,6 @@ import { setupWalletSelector } from "@near-wallet-selector/core"; import type { WalletSelector, AccountState } from "@near-wallet-selector/core"; import { setupExportSelectorModal } from "@near-wallet-selector/account-export"; import type { WalletSelectorModal } from "@near-wallet-selector/account-export"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; import { setupHereWallet } from "@near-wallet-selector/here-wallet"; import { setupSender } from "@near-wallet-selector/sender"; import { setupBitgetWallet } from "@near-wallet-selector/bitget-wallet"; @@ -61,7 +60,6 @@ export const ExportAccountSelectorContextProvider: React.FC<{ modules: [ setupMyNearWallet(), setupLedger(), - setupNearWallet(), setupSender(), setupBitgetWallet(), setupMathWallet(), diff --git a/examples/react/project.json b/examples/react/project.json index 7d2ab917c..b5958eca0 100644 --- a/examples/react/project.json +++ b/examples/react/project.json @@ -12,11 +12,6 @@ "root": "examples/react", "outputPath": "dist/examples/react", "assets": [ - { - "glob": "**/*", - "input": "packages/near-wallet/assets/", - "output": "assets/" - }, { "glob": "**/*", "input": "packages/my-near-wallet/assets/", diff --git a/package.json b/package.json index 637a9c5b7..271c022b2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "dapps", "near-protocol", "near-blockchain", - "near-wallet", "near-snap", "my-near-wallet", "bitget-wallet", @@ -48,7 +47,6 @@ "build:bitget-wallet": "nx run-many --target=build --projects=bitget-wallet --configuration=production", "build:ledger": "nx run-many --target=build --projects=ledger --configuration=production", "build:math-wallet": "nx run-many --target=build --projects=math-wallet --configuration=production", - "build:near-wallet": "nx run-many --target=build --projects=near-wallet --configuration=production", "build:here-wallet": "nx run-many --target=build --projects=here-wallet --configuration=production", "build:my-near-wallet": "nx run-many --target=build --projects=my-near-wallet --configuration=production", "build:sender": "nx run-many --target=build --projects=sender --configuration=production", diff --git a/packages/account-export/README.md b/packages/account-export/README.md index 859798dd3..8ec3d8cb7 100644 --- a/packages/account-export/README.md +++ b/packages/account-export/README.md @@ -19,11 +19,11 @@ Then use it in your wallet: ```ts import { setupWalletSelector } from "@near-wallet-selector/core"; import { setupExportSelectorModal } from "@near-wallet-selector/account-export"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; +import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet"; const selector = await setupWalletSelector({ network: "testnet", - modules: [setupNearWallet()], + modules: [setupMyNearWallet()], }); const modal = setupExportSelectorModal(selector, { diff --git a/packages/core/README.md b/packages/core/README.md index 7a0c2f404..15c327dfb 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -26,12 +26,12 @@ Then use it in your dApp: ```ts import { setupWalletSelector } from "@near-wallet-selector/core"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; +import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet"; // The entire set of options can be found in the section below. const selector = await setupWalletSelector({ network: "testnet", - modules: [setupNearWallet()], + modules: [setupMyNearWallet()], }); ``` diff --git a/packages/core/docs/api/selector.md b/packages/core/docs/api/selector.md index 875b59555..818dd2e8f 100644 --- a/packages/core/docs/api/selector.md +++ b/packages/core/docs/api/selector.md @@ -65,7 +65,7 @@ Retrieve the current state. You can find more information on `WalletSelectorStat ```ts const state = selector.store.getState(); -console.log(state); // { modules: [{ id: "near-wallet", ... }], ... } +console.log(state); // { modules: [{ id: "my-near-wallet", ... }], ... } ``` ### `.store.observable` @@ -126,7 +126,7 @@ Programmatically access wallets and call their methods. It's advised to use `sta // Specific wallet. (async () => { - const wallet = await selector.wallet("near-wallet"); + const wallet = await selector.wallet("my-near-wallet"); const accounts = await wallet.signIn({ contractId: "test.testnet" }); })(); ``` diff --git a/packages/core/docs/api/state.md b/packages/core/docs/api/state.md index d8bd6ab2d..f9537acf4 100644 --- a/packages/core/docs/api/state.md +++ b/packages/core/docs/api/state.md @@ -37,7 +37,7 @@ Returns the list of available modules. ```ts const { modules } = selector.store.getState(); -console.log(modules); // [{ id: "near-wallet", ... }] +console.log(modules); // [{ id: "my-near-wallet", ... }] ``` ### `.accounts` @@ -74,7 +74,7 @@ Returns the ID of the selected wallet. ```ts const { selectedWalletId } = selector.store.getState(); -console.log(selectedWalletId); // "near-wallet" +console.log(selectedWalletId); // "my-near-wallet" ``` ### `.recentlySignedInWallets` @@ -91,5 +91,5 @@ Returns ID-s of 5 recently signed in wallets. ```ts const { recentlySignedInWallets } = selector.store.getState(); -console.log(recentlySignedInWallets); // ["near-wallet", "sender", ...] +console.log(recentlySignedInWallets); // ["my-near-wallet", "sender", ...] ``` diff --git a/packages/core/docs/api/wallet.md b/packages/core/docs/api/wallet.md index 020a9e167..c7eb30170 100644 --- a/packages/core/docs/api/wallet.md +++ b/packages/core/docs/api/wallet.md @@ -14,8 +14,8 @@ Unique identifier of the wallet. ```ts (async () => { - const wallet = await selector.wallet("near-wallet"); - console.log(wallet.id); // "near-wallet" + const wallet = await selector.wallet("my-near-wallet"); + console.log(wallet.id); // "my-near-wallet" })(); ``` @@ -97,9 +97,9 @@ Programmatically sign in. Hardware wallets (e.g. Ledger) require `derivationPath **Example** ```ts -// NEAR Wallet. +// MyNearWallet. (async () => { - const wallet = await selector.wallet("near-wallet"); + const wallet = await selector.wallet("my-near-wallet"); const accounts = await wallet.signIn({ contractId: "test.testnet" }); })(); @@ -223,7 +223,7 @@ Signs the message and verifies the owner. Message is not sent to blockchain. - `signerId` (`string?`): Account ID used to sign the transaction. Defaults to the first account. - `receiverId` (`string?`): Account ID to receive the transaction. Defaults to `contractId` defined in `.init`. - `actions` (`Array`): NEAR Action(s) to sign and send to the network (e.g. `FunctionCall`). You can find more information on `Action` [here](./transactions.md). - - `callbackUrl` (`string?`): Applicable to browser wallets (e.g. NEAR Wallet). This the callback url once the transaction is approved. + - `callbackUrl` (`string?`): Applicable to browser wallets (e.g. MyNearWallet). This the callback url once the transaction is approved. **Returns** @@ -260,7 +260,7 @@ Signs one or more NEAR Actions before sending to the network. The user must be s - `params` (`object`) - `transactions` (`Array`): NEAR Transactions(s) to sign and send to the network. You can find more information on `Transaction` [here](./transactions.md). - - `callbackUrl` (`string?`): Applicable to browser wallets (e.g. NEAR Wallet). This the callback url once the transaction is approved. + - `callbackUrl` (`string?`): Applicable to browser wallets (e.g. MyNearWallet). This the callback url once the transaction is approved. **Returns** diff --git a/packages/core/docs/guides/custom-wallets.md b/packages/core/docs/guides/custom-wallets.md index ee19670cc..59d27f9d2 100644 --- a/packages/core/docs/guides/custom-wallets.md +++ b/packages/core/docs/guides/custom-wallets.md @@ -142,15 +142,15 @@ This method signs a list of NEAR Actions before sending via an RPC endpoint. The Where you might have to construct NEAR Transactions and send them yourself, you can import `near-api-js` and make use of the injected `provider` that's configured based on `options.network`. -> Note: Browser wallets (i.e. NEAR Wallet) are unable to return the transaction outcome as they can trigger a redirect. The return type in this case is `Promise` instead of the usual `Promise`. +> Note: Browser wallets (i.e. MyNearWallet) are unable to return the transaction outcome as they can trigger a redirect. The return type in this case is `Promise` instead of the usual `Promise`. ### `signAndSendTransactions` This method is similar to `signAndSendTransaction` but instead sends a batch of Transactions. -> Note: Exactly how this method should behave when transactions fail is still under review with no clear "right" way to do it. NEAR Wallet (website) seems to ignore any transactions that fail and continue executing the rest. Our approach attempts to execute the transactions in a series and bail if any fail (we will look to improve this in the future by implementing a retry feature). +> Note: Exactly how this method should behave when transactions fail is still under review with no clear "right" way to do it. MyNearWallet (website) seems to ignore any transactions that fail and continue executing the rest. Our approach attempts to execute the transactions in a series and bail if any fail (we will look to improve this in the future by implementing a retry feature). ### `signMessage` This method allows users to sign a message for a specific recipient using their NEAR account. -Returns the `SignedMessage` based on the [NEP413](https://github.com/near/NEPs/blob/master/neps/nep-0413.md). \ No newline at end of file +Returns the `SignedMessage` based on the [NEP413](https://github.com/near/NEPs/blob/master/neps/nep-0413.md). diff --git a/packages/core/src/lib/wallet/wallet.types.ts b/packages/core/src/lib/wallet/wallet.types.ts index dbafac0ee..586e4c1bc 100644 --- a/packages/core/src/lib/wallet/wallet.types.ts +++ b/packages/core/src/lib/wallet/wallet.types.ts @@ -220,7 +220,7 @@ interface BrowserWalletSignInParams extends SignInParams { interface BrowserWalletSignAndSendTransactionParams extends SignAndSendTransactionParams { /** - * Applicable to browser wallets (e.g. NEAR Wallet). This the callback url once the transaction is approved. + * Applicable to browser wallets (e.g. MyNearWallet). This the callback url once the transaction is approved. */ callbackUrl?: string; } @@ -228,7 +228,7 @@ interface BrowserWalletSignAndSendTransactionParams interface BrowserWalletSignAndSendTransactionsParams extends SignAndSendTransactionsParams { /** - * Applicable to browser wallets (e.g. NEAR Wallet). This the callback url once the transaction is approved. + * Applicable to browser wallets (e.g. MyNearWallet). This the callback url once the transaction is approved. */ callbackUrl?: string; } diff --git a/packages/modal-ui-js/README.md b/packages/modal-ui-js/README.md index 7e4f94520..db6ae6a59 100644 --- a/packages/modal-ui-js/README.md +++ b/packages/modal-ui-js/README.md @@ -19,11 +19,11 @@ Then use it in your dApp: ```ts import { setupWalletSelector } from "@near-wallet-selector/core"; import { setupModal } from "@near-wallet-selector/modal-ui-js"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; +import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet"; const selector = await setupWalletSelector({ network: "testnet", - modules: [setupNearWallet()], + modules: [setupMyNearWallet()], }); const modal = setupModal(selector, { diff --git a/packages/modal-ui/README.md b/packages/modal-ui/README.md index a4dd4e08d..cb51b0967 100644 --- a/packages/modal-ui/README.md +++ b/packages/modal-ui/README.md @@ -19,11 +19,11 @@ Then use it in your dApp: ```ts import { setupWalletSelector } from "@near-wallet-selector/core"; import { setupModal } from "@near-wallet-selector/modal-ui"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; +import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet"; const selector = await setupWalletSelector({ network: "testnet", - modules: [setupNearWallet()], + modules: [setupMyNearWallet()], }); const modal = setupModal(selector, { diff --git a/packages/near-wallet/.babelrc b/packages/near-wallet/.babelrc deleted file mode 100644 index b63f0528f..000000000 --- a/packages/near-wallet/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@nrwl/js/babel", - { - "useBuiltIns": "usage" - } - ] - ] -} diff --git a/packages/near-wallet/.eslintrc.json b/packages/near-wallet/.eslintrc.json deleted file mode 100644 index 9d9c0db55..000000000 --- a/packages/near-wallet/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/packages/near-wallet/README.md b/packages/near-wallet/README.md deleted file mode 100644 index 44f7b0979..000000000 --- a/packages/near-wallet/README.md +++ /dev/null @@ -1,58 +0,0 @@ -# @near-wallet-selector/near-wallet - -This is the [NEAR Wallet](https://wallet.near.org/) package for NEAR Wallet Selector. - -## Installation and Usage - -The easiest way to use this package is to install it from the NPM registry: - -```bash -# Using Yarn -yarn add @near-wallet-selector/near-wallet - -# Using NPM. -npm install @near-wallet-selector/near-wallet -``` - -Then use it in your dApp: - -```ts -import { setupWalletSelector } from "@near-wallet-selector/core"; -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; - -// NEAR Wallet for Wallet Selector can be setup without any params or it can take few optional params, see options below. -const nearWallet = setupNearWallet({ - walletUrl: "https://wallet.testnet.near.org", - iconUrl: "https://" // optional -}); - -const selector = await setupWalletSelector({ - network: "testnet", - modules: [nearWallet], -}); -``` - -## Options - -- `walletUrl` (`string?`): Wallet URL used to redirect when signing transactions. This parameter is required when using custom network configuration. -- `iconUrl`: (`string?`): Image URL for the icon shown in the modal. This can also be a relative path or base64 encoded image. Defaults to `./assets/near-wallet-icon.png`. -- `deprecated`: (`boolean?`): Deprecated is optional. Default is `false`. -- `successUrl`: (`string?`): SuccessUrl is optional. Default is `''` (empty string). -- `failureUrl`: (`string?`): FailureUrl is optional. Default is `''` (empty string). - -## Assets - -Assets such as icons can be found in the `/assets` directory of the package. Below is an example using Webpack: - -```ts -import { setupNearWallet } from "@near-wallet-selector/near-wallet"; -import nearWalletIconUrl from "@near-wallet-selector/near-wallet/assets/near-wallet-icon.png"; - -const nearWallet = setupNearWallet({ - iconUrl: nearWalletIconUrl -}); -``` - -## License - -This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). diff --git a/packages/near-wallet/assets/near-wallet-icon.png b/packages/near-wallet/assets/near-wallet-icon.png deleted file mode 100644 index d7126f96c..000000000 Binary files a/packages/near-wallet/assets/near-wallet-icon.png and /dev/null differ diff --git a/packages/near-wallet/jest.config.js b/packages/near-wallet/jest.config.js deleted file mode 100644 index 6bcf27813..000000000 --- a/packages/near-wallet/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - displayName: "near-wallet", - preset: "../../jest.preset.js", - globals: { - "ts-jest": { - tsconfig: "/tsconfig.spec.json", - }, - }, - transform: { - "^.+\\.[tj]sx?$": "ts-jest", - }, - moduleFileExtensions: ["ts", "tsx", "js", "jsx"], - coverageDirectory: "../../coverage/packages/near-wallet", -}; diff --git a/packages/near-wallet/jest.config.ts b/packages/near-wallet/jest.config.ts deleted file mode 100644 index c0c034d31..000000000 --- a/packages/near-wallet/jest.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* eslint-disable */ -export default { - displayName: "near-wallet", - preset: "../../jest.preset.js", - globals: {}, - transform: { - "^.+\\.[tj]s$": [ - "ts-jest", - { - tsconfig: "/tsconfig.spec.json", - }, - ], - }, - moduleFileExtensions: ["ts", "tsx", "js", "jsx"], - coverageDirectory: "../../coverage/packages/near-wallet", -}; diff --git a/packages/near-wallet/package.json b/packages/near-wallet/package.json deleted file mode 100644 index 02bb9da81..000000000 --- a/packages/near-wallet/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@near-wallet-selector/near-wallet", - "version": "8.9.3", - "description": "Near Wallet package for NEAR Wallet Selector.", - "keywords": [ - "near", - "blockchain", - "wallets", - "dapps", - "near-protocol", - "near-blockchain", - "wallet selector", - "browser wallet", - "near wallet" - ], - "repository": { - "type": "git", - "url": "https://github.com/near/wallet-selector.git" - }, - "bugs": { - "url": "https://github.com/near/wallet-selector/issues" - }, - "homepage": "https://github.com/near/wallet-selector/tree/main/packages/near-wallet", - "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" - } -} diff --git a/packages/near-wallet/project.json b/packages/near-wallet/project.json deleted file mode 100644 index 84eacf628..000000000 --- a/packages/near-wallet/project.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "near-wallet", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/near-wallet/src", - "projectType": "library", - "targets": { - "build": { - "executor": "@nrwl/rollup:rollup", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/near-wallet", - "tsConfig": "packages/near-wallet/tsconfig.lib.json", - "project": "packages/near-wallet/package.json", - "entryFile": "packages/near-wallet/src/index.ts", - "buildableProjectDepsInPackageJsonType": "dependencies", - "compiler": "babel", - "format": ["esm", "cjs"], - "assets": [ - { - "glob": "packages/near-wallet/README.md", - "input": ".", - "output": "." - }, - { - "glob": "packages/near-wallet/assets/*", - "input": ".", - "output": "assets" - } - ] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["packages/near-wallet/**/*.ts"] - } - }, - "test": { - "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/packages/near-wallet"], - "options": { - "jestConfig": "packages/near-wallet/jest.config.ts", - "passWithNoTests": true - } - }, - "deploy": { - "executor": "ngx-deploy-npm:deploy", - "options": { - "access": "public" - }, - "dependsOn": ["^deploy"] - } - }, - "tags": ["browser-wallet"] -} diff --git a/packages/near-wallet/src/index.ts b/packages/near-wallet/src/index.ts deleted file mode 100644 index 41c0cd352..000000000 --- a/packages/near-wallet/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { setupNearWallet } from "./lib/near-wallet"; -export type { NearWalletParams } from "./lib/near-wallet"; diff --git a/packages/near-wallet/src/lib/icon.ts b/packages/near-wallet/src/lib/icon.ts deleted file mode 100644 index ba1c4b4d2..000000000 --- a/packages/near-wallet/src/lib/icon.ts +++ /dev/null @@ -1 +0,0 @@ -export default `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAQAAADTdEb+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfmCBYRIzjChBcFAAAabUlEQVR42u2deWBVxfXHPwlhSYCAsikiqCAYQJGqdSmCWrVotbVgUdzrhlWUHWQTRCkiCAEtFdywILRWkWo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8SpTnfWGxZVLi/Zfy1XhU58nsCjfAEf0jG8BbqCc3jF2KueIj6nc6JvT+rSja9szG4d4lNup5Z2e4b8TGWu5HX2JiiqAr6im6mDHerSlVkWqvZuYQY3hKJyIVVpx0RW2Xzm2sEsusYnqqR4/giAKrSgA+05h4ZUL/cAzSIOsIWlzGcBazms3YYhUWnERVzB+ZxOLSrH/OtictnKMj7jU1ZTEJ+L+IVVQmUa0oJWnEUT6pFOVSCfHHawnlV8zxq2uXJnbsjx1KUpLWlJU06mNmnHPAsXk08OO9nAKpazmq3WNjb/PwtMam6w6l9KAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTIyVDE3OjM1OjQ4KzAwOjAwUOMNpQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0yMlQxNzozNTo0OCswMDowMCG+tRkAAAAASUVORK5CYII=`; diff --git a/packages/near-wallet/src/lib/near-wallet.ts b/packages/near-wallet/src/lib/near-wallet.ts deleted file mode 100644 index 3aa384dff..000000000 --- a/packages/near-wallet/src/lib/near-wallet.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type { - WalletModuleFactory, - BrowserWallet, - Network, -} from "@near-wallet-selector/core"; -import type { MyNearWalletParams } from "@near-wallet-selector/my-near-wallet"; -import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet"; -import icon from "./icon"; - -export type NearWalletParams = MyNearWalletParams; - -const resolveWalletUrl = (network: Network, walletUrl?: string) => { - if (walletUrl) { - return walletUrl; - } - - switch (network.networkId) { - case "mainnet": - return "https://wallet.near.org"; - case "testnet": - return "https://wallet.testnet.near.org"; - default: - throw new Error("Invalid wallet url"); - } -}; - -export function setupNearWallet({ - walletUrl, - iconUrl = icon, - deprecated = true, - successUrl = "", - failureUrl = "", -}: NearWalletParams = {}): WalletModuleFactory { - return async (options) => { - const wallet = await setupMyNearWallet({ - walletUrl: resolveWalletUrl(options.options.network, walletUrl), - iconUrl, - successUrl, - failureUrl, - })(options); - - if (!wallet) { - return null; - } - - return { - ...wallet, - id: "near-wallet", - metadata: { - ...wallet.metadata, - name: "NEAR Wallet", - description: "Web wallet for NEAR Protocol", - iconUrl, - deprecated, - available: true, - }, - }; - }; -} diff --git a/packages/near-wallet/tsconfig.json b/packages/near-wallet/tsconfig.json deleted file mode 100644 index 8b6d6acaf..000000000 --- a/packages/near-wallet/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "forceConsistentCasingInFileNames": true, - "strict": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true - }, - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/packages/near-wallet/tsconfig.lib.json b/packages/near-wallet/tsconfig.lib.json deleted file mode 100644 index e85ef50f6..000000000 --- a/packages/near-wallet/tsconfig.lib.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "declaration": true, - "types": [] - }, - "include": ["**/*.ts"], - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"] -} diff --git a/packages/near-wallet/tsconfig.spec.json b/packages/near-wallet/tsconfig.spec.json deleted file mode 100644 index b506d384e..000000000 --- a/packages/near-wallet/tsconfig.spec.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": ["jest.config.ts", "**/*.spec.ts"] -} diff --git a/scripts/release-packages.bash b/scripts/release-packages.bash index b4f8e2c11..14aeeece6 100644 --- a/scripts/release-packages.bash +++ b/scripts/release-packages.bash @@ -7,7 +7,6 @@ npm publish dist/packages/core --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/modal-ui --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/modal-ui-js --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/wallet-utils --tag "${TAG}" --otp "${OTP}" -npm publish dist/packages/near-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/my-near-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/sender --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/math-wallet --tag "${TAG}" --otp "${OTP}" diff --git a/tsconfig.base.json b/tsconfig.base.json index 4d5915198..8dfb318b0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -59,9 +59,6 @@ "@near-wallet-selector/near-snap": [ "packages/near-snap/src/index.ts" ], - "@near-wallet-selector/near-wallet": [ - "packages/near-wallet/src/index.ts" - ], "@near-wallet-selector/nearfi": [ "packages/nearfi/src/index.ts" ],