From 24b6aec442d3b0ae74ad6f867d0c98b2c84b193a Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 27 May 2024 16:21:54 +0200 Subject: [PATCH 1/5] invalid file format --- .vscode/settings.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a4a8998a1..ab2d991bc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,8 +2,7 @@ "eslint.format.enable": true, "prettier.enable": false, "editor.codeActionsOnSave": { - "source.fixAll.eslint": - true + "source.fixAll.eslint": "explicit" }, "typescript.tsdk": "node_modules/typescript/lib" } From af370813a84508e2d1256b273617842ee5101588 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 27 May 2024 16:31:43 +0200 Subject: [PATCH 2/5] add near-api-js 3 to peer dep --- packages/core/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/package.json b/packages/core/package.json index e5ee2406a..31052727b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,6 +20,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/core", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } From 962839e2cc98db6a1a595f352fdd82dae66e0393 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 27 May 2024 19:16:22 +0200 Subject: [PATCH 3/5] update near-api-js and fix tests --- package.json | 2 +- packages/core/package.json | 2 +- packages/ledger/src/lib/ledger-client.spec.ts | 2 +- .../wallet-utils/src/lib/wallet-utils.spec.ts | 10 +- yarn.lock | 178 +++++++++++++++++- 5 files changed, 182 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 75b164c3f..b87873560 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "ethers": "^5.7.2", "https-browserify": "^1.0.0", "is-mobile": "^4.0.0", - "near-api-js": "^2.1.3", + "near-api-js": "^3.0.0", "near-seed-phrase": "^0.2.0", "next": "13.3.0", "ngx-deploy-npm": "^7.1.0", diff --git a/packages/core/package.json b/packages/core/package.json index 31052727b..44dddf5d5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,6 +20,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/core", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" } } diff --git a/packages/ledger/src/lib/ledger-client.spec.ts b/packages/ledger/src/lib/ledger-client.spec.ts index b993b7ea2..cf43b587f 100644 --- a/packages/ledger/src/lib/ledger-client.spec.ts +++ b/packages/ledger/src/lib/ledger-client.spec.ts @@ -153,7 +153,7 @@ describe("sign", () => { const transaction = createTransactionMock(); const data = nearAPI.utils.serialize.serialize( - nearAPI.transactions.SCHEMA, + nearAPI.transactions.SCHEMA.Transaction, transaction ); diff --git a/packages/wallet-utils/src/lib/wallet-utils.spec.ts b/packages/wallet-utils/src/lib/wallet-utils.spec.ts index 714e3f7f8..7b9fc0445 100644 --- a/packages/wallet-utils/src/lib/wallet-utils.spec.ts +++ b/packages/wallet-utils/src/lib/wallet-utils.spec.ts @@ -2,6 +2,8 @@ import { createAction } from "./wallet-utils"; import { transactions, utils } from "near-api-js"; import BN = require("bn.js"); +const TEST_PUBLIC_KEY = "ed25519:Anu5D32fr5YsQGVULF4fz3R2E3pNaeUhj4hsKcE4vDyk"; + describe("transformActions", () => { it("correctly transforms 'CreateAccount' action", () => { const actions = createAction({ type: "CreateAccount" }); @@ -57,7 +59,7 @@ describe("transformActions", () => { it("correctly transforms 'Stake' action", () => { const stake = "1"; - const publicKey = ""; + const publicKey = TEST_PUBLIC_KEY; const actions = createAction({ type: "Stake", @@ -73,7 +75,7 @@ describe("transformActions", () => { }); it("correctly transforms 'AddKey' action with 'FullAccess' permission", () => { - const publicKey = ""; + const publicKey = TEST_PUBLIC_KEY; const actions = createAction({ type: "AddKey", params: { @@ -93,7 +95,7 @@ describe("transformActions", () => { }); it("correctly transforms 'AddKey' action with 'FunctionCall' permission", () => { - const publicKey = ""; + const publicKey = TEST_PUBLIC_KEY; const receiverId = "test.testnet"; const allowance = "1"; const methodNames = ["methodName"]; @@ -125,7 +127,7 @@ describe("transformActions", () => { }); it("correctly transforms 'DeleteKey' action", () => { - const publicKey = ""; + const publicKey = TEST_PUBLIC_KEY; const actions = createAction({ type: "DeleteKey", diff --git a/yarn.lock b/yarn.lock index 6d44c01f8..632099bd1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3466,7 +3466,7 @@ nanoid "3.3.6" query-string "^7.1.3" -"@mintbase-js/wallet@^0.6.0-beta.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== @@ -3671,6 +3671,25 @@ lru_map "0.4.1" near-abi "0.1.1" +"@near-js/accounts@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@near-js/accounts/-/accounts-1.0.4.tgz#b699dc1c63ffccc1598481b4260dfaf2507f0a69" + integrity sha512-6zgSwq/rQ9ggPOIkGUx9RoEurbJiojqA/axeh6o1G+46GqUBI7SUcDooyVvZjeiOvUPObnTQptDYpbV+XZji8g== + dependencies: + "@near-js/crypto" "1.2.1" + "@near-js/providers" "0.1.1" + "@near-js/signers" "0.1.1" + "@near-js/transactions" "1.1.2" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.1.0" + ajv "8.11.2" + ajv-formats "2.1.1" + bn.js "5.2.1" + borsh "1.0.0" + depd "2.0.0" + lru_map "0.4.1" + near-abi "0.1.1" + "@near-js/crypto@0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-0.0.4.tgz#7bb991da25f06096de51466c6331cb185314fad8" @@ -3703,6 +3722,18 @@ borsh "1.0.0" randombytes "2.1.0" +"@near-js/crypto@1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-1.2.1.tgz#aa18bed171e68653dae9f82114636eba34ece32a" + integrity sha512-iJOHaGKvdudYfR8nEtRhGlgcTEHeVmxMoT0JVXmuP3peG96v/sSnA03CE6MZBeCC8txKAQOffagxE7oU6hJp9g== + dependencies: + "@near-js/types" "0.0.4" + "@near-js/utils" "0.1.0" + "@noble/curves" "1.2.0" + bn.js "5.2.1" + borsh "1.0.0" + randombytes "2.1.0" + "@near-js/keystores-browser@0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@near-js/keystores-browser/-/keystores-browser-0.0.4.tgz#9c1130e2c0becf6bb9cfaaa7594ad38ed25585bd" @@ -3727,6 +3758,14 @@ "@near-js/crypto" "1.2.0" "@near-js/keystores" "0.0.8" +"@near-js/keystores-browser@0.0.9": + version "0.0.9" + resolved "https://registry.yarnpkg.com/@near-js/keystores-browser/-/keystores-browser-0.0.9.tgz#4d6211ad617613124aeee78ede5771b153e3bcdd" + integrity sha512-JzPj+RHJN2G3CEm/LyfbtZDQy/wxgOlqfh52voqPGijUHg93b27KBqtZShazAgJNkhzRbWcoluWQnd2jL8vF7A== + dependencies: + "@near-js/crypto" "1.2.1" + "@near-js/keystores" "0.0.9" + "@near-js/keystores-node@0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.4.tgz#00187deef2d43afeb20c01a0e63ec50af77cfc85" @@ -3751,6 +3790,14 @@ "@near-js/crypto" "1.2.0" "@near-js/keystores" "0.0.8" +"@near-js/keystores-node@0.0.9": + version "0.0.9" + resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.9.tgz#c2fd2f5bfbca1c75699dd7324e300cfd12e790ed" + integrity sha512-2B9MYz6uIhysG1fhQSjvaPYCM7gM+UAeDchX0J8QRauXIeN8TGzpcdgkdkMUnWNTIdt3Iblh0ZuCs+FY02dTXg== + dependencies: + "@near-js/crypto" "1.2.1" + "@near-js/keystores" "0.0.9" + "@near-js/keystores@0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.4.tgz#da03069497bb14741a4d97f7ad4746baf9a09ea7" @@ -3775,6 +3822,14 @@ "@near-js/crypto" "1.2.0" "@near-js/types" "0.0.4" +"@near-js/keystores@0.0.9": + version "0.0.9" + resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.9.tgz#768aaaab1beb7f797432513cb1bbf9430e305a85" + integrity sha512-j8ySgVEcm2Gg6zxkSdadNtPlIqhJZdPGfWWM3tPtEoowNS9snhwZn5NRFPrgmX0+MzpF7E091CRcY90MvRVhsg== + dependencies: + "@near-js/crypto" "1.2.1" + "@near-js/types" "0.0.4" + "@near-js/providers@0.0.10": version "0.0.10" resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.0.10.tgz#68066c81454e3769993f83b27b2be209dfee900a" @@ -3817,6 +3872,20 @@ optionalDependencies: node-fetch "^2.6.1" +"@near-js/providers@0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.1.1.tgz#7489eb5a4248562fe98fdbc4cb55ea3f6d787e0a" + integrity sha512-0M/Vz2Ac34ShKVoe2ftVJ5Qg4eSbEqNXDbCDOdVj/2qbLWZa7Wpe+me5ei4TMY2ZhGdawhgJUPrYwdJzOCyf8w== + dependencies: + "@near-js/transactions" "1.1.2" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.1.0" + bn.js "5.2.1" + borsh "1.0.0" + http-errors "1.7.2" + optionalDependencies: + node-fetch "2.6.7" + "@near-js/signers@0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.0.4.tgz#a1904ccc718d6f87b05cd2e168f33bde0cfb269a" @@ -3844,6 +3913,15 @@ "@near-js/keystores" "0.0.8" "@noble/hashes" "1.3.3" +"@near-js/signers@0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.1.1.tgz#6d32b262eac9b03fab5fc1ee93d2c4055c86980f" + integrity sha512-focJgs04dBUfawMnyGg3yIjaMawuVz2OeLRKC4t5IQDmO4PLfdIraEuwgS7tckMq3GdrJ7nqkwkpSNYpdt7I5Q== + dependencies: + "@near-js/crypto" "1.2.1" + "@near-js/keystores" "0.0.9" + "@noble/hashes" "1.3.3" + "@near-js/transactions@0.2.0": version "0.2.0" resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-0.2.0.tgz#c23b73d94ebcf8b4cd1b5d2176f620e499a143ca" @@ -3883,6 +3961,19 @@ bn.js "5.2.1" borsh "1.0.0" +"@near-js/transactions@1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-1.1.2.tgz#7dec18b463cd336e325ee61b1e1c39a6192d9e81" + integrity sha512-AqYA56ncwgrWjIu+bNaWjTPRZb0O+SfpWIP7U+1FKNKxNYMCtkt6zp7SlQeZn743shKVq9qMzA9+ous/KCb0QQ== + dependencies: + "@near-js/crypto" "1.2.1" + "@near-js/signers" "0.1.1" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.1.0" + "@noble/hashes" "1.3.3" + bn.js "5.2.1" + borsh "1.0.0" + "@near-js/types@0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@near-js/types/-/types-0.0.4.tgz#d941689df41c850aeeeaeb9d498418acec515404" @@ -3911,6 +4002,17 @@ depd "2.0.0" mustache "4.0.0" +"@near-js/utils@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@near-js/utils/-/utils-0.1.0.tgz#1368f59008c39df1e903bd3e0f308eedcdf25c1d" + integrity sha512-kOVAXmJzaC8ElJD3RLEoBuqOK+d5s7jc0JkvhyEtbuEmXYHHAy9Q17/YkDcX9tyr01L85iOt66z0cODqzgtQwA== + dependencies: + "@near-js/types" "0.0.4" + bn.js "5.2.1" + bs58 "4.0.0" + depd "2.0.0" + mustache "4.0.0" + "@near-js/wallet-account@0.0.6": version "0.0.6" resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-0.0.6.tgz#478ba16340a55ca2d28f4bf8e2566ee9842e36f1" @@ -3956,6 +4058,21 @@ bn.js "5.2.1" borsh "1.0.0" +"@near-js/wallet-account@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-1.1.1.tgz#e66e8d10fb51f71f7cb722bdff63fb98e2b0d486" + integrity sha512-NnoJKtogBQ7Qz+AP+LdF70BP8Az6UXQori7OjPqJLMo73bn6lh5Ywvegwd1EB7ZEVe4BRt9+f9QkbU5M8ANfAw== + dependencies: + "@near-js/accounts" "1.0.4" + "@near-js/crypto" "1.2.1" + "@near-js/keystores" "0.0.9" + "@near-js/signers" "0.1.1" + "@near-js/transactions" "1.1.2" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.1.0" + bn.js "5.2.1" + borsh "1.0.0" + "@near-snap/sdk@^0.6.0": version "0.6.0" resolved "https://registry.yarnpkg.com/@near-snap/sdk/-/sdk-0.6.0.tgz#2c889dcb5c9e08c63363d600db3f66f7c7b40242" @@ -16372,6 +16489,32 @@ near-api-js@^2.1.3: node-fetch "^2.6.1" tweetnacl "^1.0.1" +near-api-js@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-3.0.4.tgz#5ee094ce53e30239cc817ca942ec3e9739296dbb" + integrity sha512-qKWjnugoB7kSFhzZ5GXyH/eABspCQYWBmWnM4hpV5ctnQBt89LqgEu9yD1z4sa89MvUu8BuCxwb1m00BE8iofg== + dependencies: + "@near-js/accounts" "1.0.4" + "@near-js/crypto" "1.2.1" + "@near-js/keystores" "0.0.9" + "@near-js/keystores-browser" "0.0.9" + "@near-js/keystores-node" "0.0.9" + "@near-js/providers" "0.1.1" + "@near-js/signers" "0.1.1" + "@near-js/transactions" "1.1.2" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.1.0" + "@near-js/wallet-account" "1.1.1" + "@noble/curves" "1.2.0" + ajv "8.11.2" + ajv-formats "2.1.1" + bn.js "5.2.1" + borsh "1.0.0" + depd "2.0.0" + http-errors "1.7.2" + near-abi "0.1.1" + node-fetch "2.6.7" + near-api-js@^3.0.1: version "3.0.2" resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-3.0.2.tgz#e5d9a97e248f5885bdd166df30452aef0f252b14" @@ -20141,7 +20284,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 +20389,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 +21953,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 +21971,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" @@ -22052,4 +22220,4 @@ zone.js@0.12.0: resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.12.0.tgz#a4a6e5fab6d34bd37d89c77e89ac2e6f4a3d2c30" integrity sha512-XtC+I5dXU14HrzidAKBNMqneIVUykLEAA1x+v4KVrd6AUPWlwYORF8KgsVqvgdHiKZ4BkxxjvYi/ksEixTPR0Q== dependencies: - tslib "^2.3.0" \ No newline at end of file + tslib "^2.3.0" From 2421c9cbeeac2cc66492f9d991fcb0043e5774f5 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 27 May 2024 19:25:12 +0200 Subject: [PATCH 4/5] save v4 for later --- packages/core/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/package.json b/packages/core/package.json index 44dddf5d5..31052727b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,6 +20,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/core", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } From 7166f518764f370d43bed21ee947f25fb9740f6a Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 27 May 2024 19:26:46 +0200 Subject: [PATCH 5/5] update all peer dependencies --- packages/account-export/package.json | 2 +- packages/bitget-wallet/package.json | 2 +- packages/coin98-wallet/package.json | 2 +- packages/here-wallet/package.json | 2 +- packages/ledger/package.json | 2 +- packages/math-wallet/package.json | 2 +- packages/meteor-wallet/package.json | 2 +- packages/mintbase-wallet/package.json | 2 +- packages/my-near-wallet/package.json | 2 +- packages/near-mobile-wallet/package.json | 2 +- packages/near-snap/package.json | 2 +- packages/nearfi/package.json | 2 +- packages/neth/package.json | 2 +- packages/nightly/package.json | 2 +- packages/ramper-wallet/package.json | 2 +- packages/sender/package.json | 2 +- packages/wallet-connect/package.json | 2 +- packages/wallet-utils/package.json | 2 +- packages/welldone-wallet/package.json | 2 +- packages/xdefi/package.json | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/account-export/package.json b/packages/account-export/package.json index f802585a4..91bfcb0cb 100644 --- a/packages/account-export/package.json +++ b/packages/account-export/package.json @@ -21,6 +21,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/magin/packages/account-export", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/bitget-wallet/package.json b/packages/bitget-wallet/package.json index 612167782..da7bcbf0d 100644 --- a/packages/bitget-wallet/package.json +++ b/packages/bitget-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/bitget-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/coin98-wallet/package.json b/packages/coin98-wallet/package.json index 3f1153ba1..e6c148319 100644 --- a/packages/coin98-wallet/package.json +++ b/packages/coin98-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/coin98-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/here-wallet/package.json b/packages/here-wallet/package.json index 985e8ac51..2e8175426 100644 --- a/packages/here-wallet/package.json +++ b/packages/here-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/here-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/ledger/package.json b/packages/ledger/package.json index 85cf7bc80..e88c99820 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/ledger", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/math-wallet/package.json b/packages/math-wallet/package.json index 7019bdce8..c78ebab76 100644 --- a/packages/math-wallet/package.json +++ b/packages/math-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/math-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/meteor-wallet/package.json b/packages/meteor-wallet/package.json index 686b12006..42f752540 100644 --- a/packages/meteor-wallet/package.json +++ b/packages/meteor-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/meteor-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/mintbase-wallet/package.json b/packages/mintbase-wallet/package.json index c099ace6e..297464349 100644 --- a/packages/mintbase-wallet/package.json +++ b/packages/mintbase-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/mintbase-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/my-near-wallet/package.json b/packages/my-near-wallet/package.json index 0829ade0c..cb10af3ac 100644 --- a/packages/my-near-wallet/package.json +++ b/packages/my-near-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/my-near-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/near-mobile-wallet/package.json b/packages/near-mobile-wallet/package.json index 3912b7834..6dd66d33a 100644 --- a/packages/near-mobile-wallet/package.json +++ b/packages/near-mobile-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/near-mobile-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/near-snap/package.json b/packages/near-snap/package.json index df2ee4a33..2133910d9 100644 --- a/packages/near-snap/package.json +++ b/packages/near-snap/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/near-snap", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/nearfi/package.json b/packages/nearfi/package.json index c7243fefc..9fb08500f 100644 --- a/packages/nearfi/package.json +++ b/packages/nearfi/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/nearfi", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/neth/package.json b/packages/neth/package.json index bc51cb420..a3e8ec920 100644 --- a/packages/neth/package.json +++ b/packages/neth/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/neth", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/nightly/package.json b/packages/nightly/package.json index 25cbc7b38..74ac55678 100644 --- a/packages/nightly/package.json +++ b/packages/nightly/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/nightly", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/ramper-wallet/package.json b/packages/ramper-wallet/package.json index aaef22c66..201172875 100644 --- a/packages/ramper-wallet/package.json +++ b/packages/ramper-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/ramper-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/sender/package.json b/packages/sender/package.json index 66adecac9..fb85c998f 100644 --- a/packages/sender/package.json +++ b/packages/sender/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/sender", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/wallet-connect/package.json b/packages/wallet-connect/package.json index bde2cdf23..af7727e0c 100644 --- a/packages/wallet-connect/package.json +++ b/packages/wallet-connect/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/wallet-connect", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/wallet-utils/package.json b/packages/wallet-utils/package.json index 7b4dd5e79..1c96c8c02 100644 --- a/packages/wallet-utils/package.json +++ b/packages/wallet-utils/package.json @@ -20,6 +20,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/wallet-utils", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/welldone-wallet/package.json b/packages/welldone-wallet/package.json index c8bd17fe2..d7949a0b6 100644 --- a/packages/welldone-wallet/package.json +++ b/packages/welldone-wallet/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/welldone-wallet", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } } diff --git a/packages/xdefi/package.json b/packages/xdefi/package.json index 73082ebdc..62eb8d11c 100644 --- a/packages/xdefi/package.json +++ b/packages/xdefi/package.json @@ -21,6 +21,6 @@ }, "homepage": "https://github.com/near/wallet-selector/tree/main/packages/xdefi", "peerDependencies": { - "near-api-js": "^1.0.0 || ^2.0.0" + "near-api-js": "^1.0.0 || ^2.0.0 || ^3.0.0" } }