From e03acf6d0bc81576478567e1b61697638d48e87d Mon Sep 17 00:00:00 2001 From: ruisantiago Date: Wed, 26 Jun 2024 14:34:40 +0100 Subject: [PATCH 1/3] add bitte-wallet --- README.md | 19 +++++-- .../wallet-selector-export.component.ts | 2 + .../wallet-selector.component.ts | 2 + .../react/contexts/WalletSelectorContext.tsx | 2 + .../contexts/WalletSelectorExportContext.tsx | 2 + package.json | 6 +- packages/bitte-wallet/.babelrc | 10 ++++ packages/bitte-wallet/.eslintrc.json | 18 ++++++ packages/bitte-wallet/README.md | 55 ++++++++++++++++++ packages/bitte-wallet/jest.config.js | 14 +++++ packages/bitte-wallet/jest.config.ts | 16 ++++++ packages/bitte-wallet/package.json | 27 +++++++++ packages/bitte-wallet/project.json | 56 +++++++++++++++++++ packages/bitte-wallet/src/index.ts | 3 + packages/bitte-wallet/tsconfig.json | 20 +++++++ packages/bitte-wallet/tsconfig.lib.json | 10 ++++ packages/bitte-wallet/tsconfig.spec.json | 9 +++ scripts/release-packages.bash | 2 +- tsconfig.base.json | 3 + yarn.lock | 39 ++++++++++--- 20 files changed, 299 insertions(+), 16 deletions(-) create mode 100644 packages/bitte-wallet/.babelrc create mode 100644 packages/bitte-wallet/.eslintrc.json create mode 100644 packages/bitte-wallet/README.md create mode 100644 packages/bitte-wallet/jest.config.js create mode 100644 packages/bitte-wallet/jest.config.ts create mode 100644 packages/bitte-wallet/package.json create mode 100644 packages/bitte-wallet/project.json create mode 100644 packages/bitte-wallet/src/index.ts create mode 100644 packages/bitte-wallet/tsconfig.json create mode 100644 packages/bitte-wallet/tsconfig.lib.json create mode 100644 packages/bitte-wallet/tsconfig.spec.json diff --git a/README.md b/README.md index 3160d2333..729adb14b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ NEAR Wallet Selector makes it easy for users to interact with your dApp by provi - [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. +- [Bitte Wallet](https://www.npmjs.com/package/@near-wallet-selector/bitte-wallet) - Browser wallet. - [Ledger](https://www.npmjs.com/package/@near-wallet-selector/ledger) - Hardware wallet. - [Sender](https://www.npmjs.com/package/@near-wallet-selector/sender) - Injected wallet. - [Math Wallet](https://www.npmjs.com/package/@near-wallet-selector/math-wallet) - Injected wallet. @@ -72,10 +73,10 @@ yarn add \ @near-wallet-selector/neth \ @near-wallet-selector/xdefi \ @near-wallet-selector/ramper-wallet \ + @near-wallet-selector/near-mobile-wallet \ @near-wallet-selector/mintbase-wallet \ - @near-wallet-selector/near-mobile-wallet \ - @near-wallet-selector/bitget-wallet \ - @near-wallet-selector/okx-wallet + @near-wallet-selector/bitte-wallet + # Using NPM. npm install \ @@ -99,8 +100,7 @@ npm install \ @near-wallet-selector/ramper-wallet \ @near-wallet-selector/near-mobile-wallet \ @near-wallet-selector/mintbase-wallet \ - @near-wallet-selector/bitget-wallet \ - @near-wallet-selector/okx-wallet + @near-wallet-selector/bitte-wallet ``` Optionally, you can install our [`modal-ui`](https://www.npmjs.com/package/@near-wallet-selector/modal-ui) or [`modal-ui-js`](https://www.npmjs.com/package/@near-wallet-selector/modal-ui-js) package for a pre-built interface that wraps the `core` API and presents the supported wallets: @@ -139,6 +139,7 @@ import { setupXDEFI } from "@near-wallet-selector/xdefi"; import { setupRamperWallet } from "@near-wallet-selector/ramper-wallet"; import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet"; import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; const selector = await setupWalletSelector({ network: "testnet", @@ -174,7 +175,13 @@ const selector = await setupWalletSelector({ walletUrl: "https://wallet.mintbase.xyz", callbackUrl: "https://www.mywebsite.com", deprecated: false, - }), + }), + setupBitteWallet({ + networkId: "mainnet", + walletUrl: "https://wallet.bitte.ai", + callbackUrl: "https://www.mywebsite.com", + deprecated: false, + }), ], }); 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 4eeaf47c3..77d1cbd67 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 @@ -22,6 +22,7 @@ import { setupRamperWallet } from "@near-wallet-selector/ramper-wallet"; import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet"; import { setupLedger } from "@near-wallet-selector/ledger"; import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; declare global { interface Window { @@ -81,6 +82,7 @@ export class WalletSelectorExportComponent implements OnInit { setupRamperWallet(), setupNearMobileWallet(), setupMintbaseWallet({ contractId: "guest-book.testnet" }), + setupBitteWallet({ contractId: "guest-book.testnet" }), ], }); /** 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 24d161a0f..194f5da3c 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 @@ -23,6 +23,7 @@ import { setupRamperWallet } from "@near-wallet-selector/ramper-wallet"; import { setupLedger } from "@near-wallet-selector/ledger"; import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet"; import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; import { setupOKXWallet } from "@near-wallet-selector/okx-wallet"; import { CONTRACT_ID } from "../../../constants"; @@ -95,6 +96,7 @@ export class WalletSelectorComponent implements OnInit { setupRamperWallet(), setupNearMobileWallet(), setupMintbaseWallet({ contractId: "guest-book.testnet" }), + setupBitteWallet({ contractId: "guest-book.testnet" }), ], }); diff --git a/examples/react/contexts/WalletSelectorContext.tsx b/examples/react/contexts/WalletSelectorContext.tsx index e2f550d3a..fdde74eb9 100644 --- a/examples/react/contexts/WalletSelectorContext.tsx +++ b/examples/react/contexts/WalletSelectorContext.tsx @@ -21,6 +21,7 @@ import { setupXDEFI } from "@near-wallet-selector/xdefi"; import { setupRamperWallet } from "@near-wallet-selector/ramper-wallet"; import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet"; import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; import { setupOKXWallet } from "@near-wallet-selector/okx-wallet"; import type { ReactNode } from "react"; @@ -97,6 +98,7 @@ export const WalletSelectorContextProvider: React.FC<{ }), setupNearMobileWallet(), setupMintbaseWallet({ contractId: "guest-book.testnet" }), + setupBitteWallet({ contractId: "guest-book.testnet" }), ], }); const _modal = setupModal(_selector, { diff --git a/examples/react/contexts/WalletSelectorExportContext.tsx b/examples/react/contexts/WalletSelectorExportContext.tsx index 9c4b2e39e..3bf7b26e3 100644 --- a/examples/react/contexts/WalletSelectorExportContext.tsx +++ b/examples/react/contexts/WalletSelectorExportContext.tsx @@ -27,6 +27,7 @@ import { setupLedger } from "@near-wallet-selector/ledger"; import { setupRamperWallet } from "@near-wallet-selector/ramper-wallet"; import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet"; import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; declare global { interface Window { @@ -71,6 +72,7 @@ export const ExportAccountSelectorContextProvider: React.FC<{ setupNearFi(), setupRamperWallet(), setupMintbaseWallet({ contractId: "guest-book.testnet" }), + setupBitteWallet({ contractId: "guest-book.testnet" }), setupWalletConnect({ projectId: "c4f79cc...", metadata: { diff --git a/package.json b/package.json index e14ea014d..ecd24b683 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-wallet-selector", - "version": "8.9.10", + "version": "8.9.9", "description": "NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem", "keywords": [ "near", @@ -24,6 +24,7 @@ "ramper-wallet", "near-mobile-wallet", "mintbase-wallet", + "bitte-wallet", "okx-wallet" ], "homepage": "https://github.com/near/wallet-selector#README", @@ -65,6 +66,7 @@ "build:ramper-wallet": "nx run-many --target=build --projects=ramper-wallet --configuration=production", "build:near-mobile-wallet": "nx run-many --target=build --projects=near-mobile-wallet --configuration=production", "build:mintbase-wallet": "nx run-many --target=build --projects=mintbase-wallet --configuration=production", + "build:bitte-wallet": "nx run-many --target=build --projects=bitte-wallet --configuration=production", "build:okx-wallet": "nx run-many --target=build --projects=okx-wallet --configuration=production", "examples:vanillajs:generateimportmap": "(cd examples/vanillajs && jspm link index.html -o index.html)", "serve:vanillajs": "yarn examples:vanillajs:generateimportmap && http-server -c-1 examples/vanillajs", @@ -92,7 +94,7 @@ "@ledgerhq/hw-transport-webhid": "6.28.3", "@metamask/detect-provider": "^2.0.0", "@meteorwallet/sdk": "^1.0.9", - "@mintbase-js/wallet": "0.6.0-beta.3", + "@mintbase-js/wallet": "v0.6.0-beta.7", "@near-snap/sdk": "^0.6.0", "@peersyst/near-mobile-signer": "^1.0.10", "@ramper/near": "^0.0.30", diff --git a/packages/bitte-wallet/.babelrc b/packages/bitte-wallet/.babelrc new file mode 100644 index 000000000..b63f0528f --- /dev/null +++ b/packages/bitte-wallet/.babelrc @@ -0,0 +1,10 @@ +{ + "presets": [ + [ + "@nrwl/js/babel", + { + "useBuiltIns": "usage" + } + ] + ] +} diff --git a/packages/bitte-wallet/.eslintrc.json b/packages/bitte-wallet/.eslintrc.json new file mode 100644 index 000000000..9d9c0db55 --- /dev/null +++ b/packages/bitte-wallet/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/packages/bitte-wallet/README.md b/packages/bitte-wallet/README.md new file mode 100644 index 000000000..5e1d3d0a5 --- /dev/null +++ b/packages/bitte-wallet/README.md @@ -0,0 +1,55 @@ +# @near-wallet-selector/bitte-wallet + +This is the [Bitte Wallet](https://wallet.bitte.ai) package for NEAR Wallet Selector. + +## Installation and Usage + +The easiest way to use this package is to install it from the NPM registry, this package requires `near-api-js` v1.0.0 or above: + +```bash +# Using Yarn +yarn add near-api-js + +# Using NPM. +npm install near-api-js +``` +```bash +# Using Yarn +yarn add @near-wallet-selector/bitte-wallet + +# Using NPM. +npm install @near-wallet-selector/bitte-wallet +``` + +Then use it in your dApp: + +```ts +import { setupWalletSelector } from "@near-wallet-selector/core"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; + +const bitteWallet = setupBitteWallet({ + networkId: 'mainnet', + walletUrl: 'https://wallet.bitte.ai', + callbackUrl: 'https://www.mywebsite.com', + contractId: "yourcontract.near", //remove if you don't want limited access keys to be generated + deprecated: false, +}); + +const selector = await setupWalletSelector({ + network: "testnet", + modules: [bitteWallet], +}); +``` + +## Options + +- `networkId`: (`string?`): 'mainnet' or 'testnet' . Defaults to `mainnet`. +- `deprecated`: (`boolean?`): Deprecated is optional. Default is `false`. +- `callbackUrl`: (`string?`): Valid url to send your user after txn. +- `walletUrl`: (`string?`): wallet url: https://wallet.bitte.ai for mainnet and https://testnet.wallet.bitte.ai for testnet. +- `contractId`: (`string?`): the contract for which the generated limited access key will allow transactions, if you do not need a limited access key do not add this and it wont be created providing quicker onboarding + + +## License + +This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). diff --git a/packages/bitte-wallet/jest.config.js b/packages/bitte-wallet/jest.config.js new file mode 100644 index 000000000..6aaf1aee1 --- /dev/null +++ b/packages/bitte-wallet/jest.config.js @@ -0,0 +1,14 @@ +module.exports = { + displayName: "bitte-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/bitte-wallet", +}; diff --git a/packages/bitte-wallet/jest.config.ts b/packages/bitte-wallet/jest.config.ts new file mode 100644 index 000000000..a319150f1 --- /dev/null +++ b/packages/bitte-wallet/jest.config.ts @@ -0,0 +1,16 @@ +/* eslint-disable */ +export default { + displayName: "bitte-wallet", + preset: "../../jest.preset.js", + globals: {}, + transform: { + "^.+\\.[tj]s$": [ + "ts-jest", + { + tsconfig: "/tsconfig.spec.json", + }, + ], + }, + moduleFileExtensions: ["ts", "tsx", "js", "jsx"], + coverageDirectory: "../../coverage/packages/bitte-wallet", +}; diff --git a/packages/bitte-wallet/package.json b/packages/bitte-wallet/package.json new file mode 100644 index 000000000..7ec33e076 --- /dev/null +++ b/packages/bitte-wallet/package.json @@ -0,0 +1,27 @@ +{ + "name": "@near-wallet-selector/bitte-wallet", + "version": "8.9.9", + "description": "Bitte wallet package for NEAR Wallet Selector.", + "keywords": [ + "near", + "blockchain", + "wallets", + "dapps", + "near-protocol", + "near-blockchain", + "wallet selector", + "browser wallet", + "bitte 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/bitte-wallet", + "peerDependencies": { + "near-api-js": "^1.0.0 || ^2.0.0" + } +} diff --git a/packages/bitte-wallet/project.json b/packages/bitte-wallet/project.json new file mode 100644 index 000000000..86b56daa8 --- /dev/null +++ b/packages/bitte-wallet/project.json @@ -0,0 +1,56 @@ +{ + "name": "bitte-wallet", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "packages/bitte-wallet/src", + "projectType": "library", + "targets": { + "build": { + "executor": "@nrwl/rollup:rollup", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/packages/bitte-wallet", + "tsConfig": "packages/bitte-wallet/tsconfig.lib.json", + "project": "packages/bitte-wallet/package.json", + "entryFile": "packages/bitte-wallet/src/index.ts", + "buildableProjectDepsInPackageJsonType": "dependencies", + "compiler": "babel", + "format": ["esm", "cjs"], + "assets": [ + { + "glob": "packages/bitte-wallet/README.md", + "input": ".", + "output": "." + }, + { + "glob": "packages/bitte-wallet/assets/*", + "input": ".", + "output": "assets" + } + ] + } + }, + "lint": { + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["packages/bitte-wallet/**/*.ts"] + } + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/packages/bitte-wallet"], + "options": { + "jestConfig": "packages/bitte-wallet/jest.config.ts", + "passWithNoTests": true + } + }, + "deploy": { + "executor": "ngx-deploy-npm:deploy", + "options": { + "access": "public" + }, + "dependsOn": ["^deploy"] + } + }, + "tags": ["browser-wallet"] +} diff --git a/packages/bitte-wallet/src/index.ts b/packages/bitte-wallet/src/index.ts new file mode 100644 index 000000000..f52b64d75 --- /dev/null +++ b/packages/bitte-wallet/src/index.ts @@ -0,0 +1,3 @@ +import { setupBitteWallet } from "@mintbase-js/wallet"; + +export { setupBitteWallet }; diff --git a/packages/bitte-wallet/tsconfig.json b/packages/bitte-wallet/tsconfig.json new file mode 100644 index 000000000..6532eb213 --- /dev/null +++ b/packages/bitte-wallet/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "resolveJsonModule": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} \ No newline at end of file diff --git a/packages/bitte-wallet/tsconfig.lib.json b/packages/bitte-wallet/tsconfig.lib.json new file mode 100644 index 000000000..b3f90c22f --- /dev/null +++ b/packages/bitte-wallet/tsconfig.lib.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "declaration": true, + "types": [] + }, + "include": ["**/*.ts"], + "exclude": ["jest.config.ts", "**/*.spec.ts"] +} diff --git a/packages/bitte-wallet/tsconfig.spec.json b/packages/bitte-wallet/tsconfig.spec.json new file mode 100644 index 000000000..546f12877 --- /dev/null +++ b/packages/bitte-wallet/tsconfig.spec.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"] +} diff --git a/scripts/release-packages.bash b/scripts/release-packages.bash index 479b00cb5..00fcf03fe 100644 --- a/scripts/release-packages.bash +++ b/scripts/release-packages.bash @@ -26,5 +26,5 @@ npm publish dist/packages/near-snap --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/ramper-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/near-mobile-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/mintbase-wallet --tag "${TAG}" --otp "${OTP}" +npm publish dist/packages/bitte-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/bitget-wallet --tag "${TAG}" --otp "${OTP}" -npm publish dist/packages/okx-wallet --tag "${TAG}" --otp "${OTP}" diff --git a/tsconfig.base.json b/tsconfig.base.json index 52eaeebdd..6667f4c10 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -92,6 +92,9 @@ "@near-wallet-selector/mintbase-wallet": [ "packages/mintbase-wallet/src/index.ts" ], + "@near-wallet-selector/bitte-wallet": [ + "packages/bitte-wallet/src/index.ts" + ], "@near-wallet-selector/okx-wallet": [ "packages/okx-wallet/src/index.ts" ], diff --git a/yarn.lock b/yarn.lock index 8966ae8e5..2d196bdd9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3466,10 +3466,10 @@ nanoid "3.3.6" query-string "^7.1.3" -"@mintbase-js/wallet@0.6.0-beta.3": - version "0.6.0-beta.3" - resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.6.0-beta.3.tgz#31ee107f2cf888fa120e8ca07f47e5dcd278ca26" - integrity sha512-fzkqS3LDnSHB4YG0ync8JRuv+xQlMOzcu0btpAN8SC1hZNGUak0BTXBiNxKZQTeuH/DL+6ghh+t9VzJknOorhA== +"@mintbase-js/wallet@v0.6.0-beta.7": + version "0.6.0-beta.7" + resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.6.0-beta.7.tgz#5d2ab3a03889624873f15a276652e6d5a3d77fb1" + integrity sha512-Trp7WJucfG0j3QLZFw1rcT3H1zp3doOM3ap1i+LiH1l9mK3F52c/K0sgbemSAAv7oglqvJqDD8N660TUQlsFgQ== dependencies: "@near-wallet-selector/core" "8.9.5" "@near-wallet-selector/wallet-utils" "^8.9.5" @@ -20141,7 +20141,16 @@ string-range@~1.2, string-range@~1.2.1: resolved "https://registry.yarnpkg.com/string-range/-/string-range-1.2.2.tgz#a893ed347e72299bc83befbbf2a692a8d239d5dd" integrity sha512-tYft6IFi8SjplJpxCUxyqisD3b+R2CSkomrtJYCkvuf1KuCAWgz7YXt4O0jip7efpfCemwHEzTEAO8EuOYgh3w== -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -20237,7 +20246,14 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -21794,7 +21810,7 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -21812,6 +21828,15 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" From a3797ed57104ac153e7fd74ca920472ffff2935a Mon Sep 17 00:00:00 2001 From: ruisantiago Date: Wed, 26 Jun 2024 14:47:48 +0100 Subject: [PATCH 2/3] fix version --- README.md | 4 ++++ package.json | 2 +- packages/bitte-wallet/package.json | 2 +- scripts/release-packages.bash | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 729adb14b..f254e8c4b 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ yarn add \ @near-wallet-selector/xdefi \ @near-wallet-selector/ramper-wallet \ @near-wallet-selector/near-mobile-wallet \ + @near-wallet-selector/bitget-wallet \ + @near-wallet-selector/okx-wallet \ @near-wallet-selector/mintbase-wallet \ @near-wallet-selector/bitte-wallet @@ -99,6 +101,8 @@ npm install \ @near-wallet-selector/xdefi \ @near-wallet-selector/ramper-wallet \ @near-wallet-selector/near-mobile-wallet \ + @near-wallet-selector/bitget-wallet \ + @near-wallet-selector/okx-wallet \ @near-wallet-selector/mintbase-wallet \ @near-wallet-selector/bitte-wallet ``` diff --git a/package.json b/package.json index ecd24b683..9a8756b7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-wallet-selector", - "version": "8.9.9", + "version": "8.9.10", "description": "NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem", "keywords": [ "near", diff --git a/packages/bitte-wallet/package.json b/packages/bitte-wallet/package.json index 7ec33e076..211bac8c2 100644 --- a/packages/bitte-wallet/package.json +++ b/packages/bitte-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/bitte-wallet", - "version": "8.9.9", + "version": "8.9.10", "description": "Bitte wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/scripts/release-packages.bash b/scripts/release-packages.bash index 00fcf03fe..f68a5f539 100644 --- a/scripts/release-packages.bash +++ b/scripts/release-packages.bash @@ -28,3 +28,4 @@ npm publish dist/packages/near-mobile-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/mintbase-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/bitte-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/bitget-wallet --tag "${TAG}" --otp "${OTP}" +npm publish dist/packages/okx-wallet --tag "${TAG}" --otp "${OTP}" From d2094b5a2bed61c16e113742ac0c3eb66574417c Mon Sep 17 00:00:00 2001 From: Rui Santiago Date: Mon, 1 Jul 2024 09:57:04 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index f254e8c4b..553a02b08 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,6 @@ yarn add \ @near-wallet-selector/mintbase-wallet \ @near-wallet-selector/bitte-wallet - # Using NPM. npm install \ @near-wallet-selector/bitget-wallet \