diff --git a/lerna.json b/lerna.json index 85b422e9..0dfa6f9d 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,7 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useNx": true, - "version": "0.6.1", + "version": "0.6.2-beta-prerelease.0", "packages": [ "packages/*" ] diff --git a/package-lock.json b/package-lock.json index d364cb69..bda2cb45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3766,62 +3766,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@lerna/package": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/@lerna/package/-/package-6.4.1.tgz", - "integrity": "sha512-TrOah58RnwS9R8d3+WgFFTu5lqgZs7M+e1dvcRga7oSJeKscqpEK57G0xspvF3ycjfXQwRMmEtwPmpkeEVLMzA==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dev": true, - "peer": true, - "dependencies": { - "load-json-file": "^6.2.0", - "npm-package-arg": "8.1.1", - "write-pkg": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || >=16.0.0" - } - }, - "node_modules/@lerna/project": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/@lerna/project/-/project-6.4.1.tgz", - "integrity": "sha512-BPFYr4A0mNZ2jZymlcwwh7PfIC+I6r52xgGtJ4KIrIOB6mVKo9u30dgYJbUQxmSuMRTOnX7PJZttQQzSda4gEg==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dev": true, - "peer": true, - "dependencies": { - "@lerna/package": "6.4.1", - "@lerna/validation-error": "6.4.1", - "cosmiconfig": "^7.0.0", - "dedent": "^0.7.0", - "dot-prop": "^6.0.1", - "glob-parent": "^5.1.1", - "globby": "^11.0.2", - "js-yaml": "^4.1.0", - "load-json-file": "^6.2.0", - "npmlog": "^6.0.2", - "p-map": "^4.0.0", - "resolve-from": "^5.0.0", - "write-json-file": "^4.3.0" - }, - "engines": { - "node": "^14.15.0 || >=16.0.0" - } - }, - "node_modules/@lerna/validation-error": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/@lerna/validation-error/-/validation-error-6.4.1.tgz", - "integrity": "sha512-fxfJvl3VgFd7eBfVMRX6Yal9omDLs2mcGKkNYeCEyt4Uwlz1B5tPAXyk/sNMfkKV2Aat/mlK5tnY13vUrMKkyA==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dev": true, - "peer": true, - "dependencies": { - "npmlog": "^6.0.2" - }, - "engines": { - "node": "^14.15.0 || >=16.0.0" - } - }, "node_modules/@lit-labs/ssr-dom-shim": { "version": "1.2.0", "license": "BSD-3-Clause" @@ -6540,102 +6484,6 @@ "@stablelib/wipe": "^1.0.1" } }, - "node_modules/@testing-library/dom": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.3.1.tgz", - "integrity": "sha512-q/WL+vlXMpC0uXDyfsMtc1rmotzLV8Y0gq6q1gfrrDjQeHoeLrqHbxdPvPNAh1i+xuJl7+BezywcXArz7vLqKQ==", - "dev": true, - "peer": true, - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.3.0", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@testing-library/dom/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "peer": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@testing-library/dom/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "peer": true - }, - "node_modules/@testing-library/dom/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/dom/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@testing-library/react": { "version": "13.4.0", "dev": true, @@ -7118,12 +6966,12 @@ }, "node_modules/@types/prop-types": { "version": "15.7.12", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/@types/react": { "version": "18.0.25", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@types/prop-types": "*", @@ -7149,7 +6997,7 @@ }, "node_modules/@types/scheduler": { "version": "0.23.0", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/@types/stack-utils": { @@ -7847,6 +7695,7 @@ }, "node_modules/acorn": { "version": "7.4.1", + "dev": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -8050,16 +7899,6 @@ "version": "2.0.1", "license": "Python-2.0" }, - "node_modules/aria-query": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", - "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", - "dev": true, - "peer": true, - "dependencies": { - "dequal": "^2.0.3" - } - }, "node_modules/array-buffer-byte-length": { "version": "1.0.1", "dev": true, @@ -9783,7 +9622,7 @@ }, "node_modules/csstype": { "version": "3.1.3", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/dargs": { @@ -10104,16 +9943,6 @@ "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "dev": true }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, "node_modules/destr": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.3.tgz", @@ -10221,22 +10050,6 @@ "tslib": "^2.0.3" } }, - "node_modules/dot-prop": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", - "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", - "dev": true, - "peer": true, - "dependencies": { - "is-obj": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/dotenv": { "version": "16.4.5", "dev": true, @@ -10334,6 +10147,7 @@ }, "node_modules/encoding": { "version": "0.1.13", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -10342,6 +10156,7 @@ }, "node_modules/encoding/node_modules/iconv-lite": { "version": "0.6.3", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -12271,6 +12086,7 @@ }, "node_modules/graphql": { "version": "16.8.1", + "dev": true, "license": "MIT", "engines": { "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" @@ -13559,13 +13375,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "dev": true, - "peer": true - }, "node_modules/is-unc-path": { "version": "1.0.0", "dev": true, @@ -13686,15 +13495,6 @@ "node": ">=0.10.0" } }, - "node_modules/isomorphic-textencoder": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/isomorphic-textencoder/-/isomorphic-textencoder-1.0.1.tgz", - "integrity": "sha512-676hESgHullDdHDsj469hr+7t3i/neBKU9J7q1T4RHaWwLAsaQnywC0D1dIUId0YZ+JtVrShzuBk1soo0+GVcQ==", - "peer": true, - "dependencies": { - "fast-text-encoding": "^1.0.0" - } - }, "node_modules/isomorphic-unfetch": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz", @@ -20439,22 +20239,6 @@ "node": ">= 0.8.0" } }, - "node_modules/prettier": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", - "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", "dev": true, @@ -21047,32 +20831,6 @@ "safe-buffer": "^5.1.0" } }, - "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "dev": true, - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, "node_modules/react-is": { "version": "17.0.2", "dev": true, @@ -21811,7 +21569,7 @@ }, "node_modules/safer-buffer": { "version": "2.1.2", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/saxes": { @@ -22328,32 +22086,6 @@ "atomic-sleep": "^1.0.0" } }, - "node_modules/sort-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-4.2.0.tgz", - "integrity": "sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg==", - "dev": true, - "peer": true, - "dependencies": { - "is-plain-obj": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/sort-keys/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/source-map": { "version": "0.6.1", "devOptional": true, @@ -23648,18 +23380,9 @@ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "peer": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, "node_modules/typescript": { "version": "4.9.5", + "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -24484,66 +24207,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/write-json-file": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/write-json-file/-/write-json-file-4.3.0.tgz", - "integrity": "sha512-PxiShnxf0IlnQuMYOPPhPkhExoCQuTUNPOa/2JWCYTmBquU9njyyDuwRKN26IZBlp4yn1nt+Agh2HOOBl+55HQ==", - "dev": true, - "peer": true, - "dependencies": { - "detect-indent": "^6.0.0", - "graceful-fs": "^4.1.15", - "is-plain-obj": "^2.0.0", - "make-dir": "^3.0.0", - "sort-keys": "^4.0.0", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": ">=8.3" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/write-json-file/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/write-json-file/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "peer": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/write-json-file/node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "peer": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, "node_modules/write-pkg": { "version": "4.0.0", "dev": true, @@ -24755,7 +24418,7 @@ }, "packages/auth": { "name": "@mintbase-js/auth", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@mintbase-js/sdk": "^0.6.1-update-packages-24058ee.0", @@ -25585,7 +25248,7 @@ }, "packages/data": { "name": "@mintbase-js/data", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@mintbase-js/sdk": "^0.6.1-update-packages-24058ee.0", @@ -25610,7 +25273,7 @@ }, "packages/react": { "name": "@mintbase-js/react", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@mintbase-js/data": "0.6.1-update-packages-24058ee.0", @@ -26084,7 +25747,7 @@ }, "packages/rpc": { "name": "@mintbase-js/rpc", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@types/node": "18.11.9", @@ -26097,7 +25760,7 @@ }, "packages/sdk": { "name": "@mintbase-js/sdk", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "near-api-js": "^4.0.3" @@ -26399,7 +26062,7 @@ }, "packages/storage": { "name": "@mintbase-js/storage", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@mintbase-js/sdk": "0.6.1-update-packages-24058ee.0", @@ -26760,7 +26423,7 @@ }, "packages/testing": { "name": "@mintbase-js/testing", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@google-cloud/firestore": "^6.8.0", @@ -27155,7 +26818,7 @@ }, "packages/wallet": { "name": "@mintbase-js/wallet", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "@near-wallet-selector/core": "8.9.12", diff --git a/packages/auth/package.json b/packages/auth/package.json index 0dc64f42..9a853b2a 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/auth", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "Wallet and auth functions for Mintbase JS SDK", "main": "lib/index.js", "scripts": { diff --git a/packages/data/package.json b/packages/data/package.json index 75078aa2..3fb51d1b 100644 --- a/packages/data/package.json +++ b/packages/data/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/data", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "Query wrappers for Mintbase JS SDK", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/react/package.json b/packages/react/package.json index 39e98f8d..7175b65e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/react", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "React app tools for Mintbase JS SDK", "main": "lib/index.js", "scripts": { @@ -23,8 +23,8 @@ "@testing-library/user-event": "^14.5.2" }, "dependencies": { - "@mintbase-js/wallet": "0.6.1-update-packages-24058ee.0", "@mintbase-js/data": "0.6.1-update-packages-24058ee.0", + "@mintbase-js/wallet": "0.6.1-update-packages-24058ee.0", "@near-wallet-selector/core": "8.9.12", "@near-wallet-selector/here-wallet": "8.9.12", "@near-wallet-selector/meteor-wallet": "8.9.12", @@ -33,4 +33,4 @@ "react": "^18.2.0", "react-dom": "^18.2.0" } -} \ No newline at end of file +} diff --git a/packages/rpc/package.json b/packages/rpc/package.json index 3c9a8908..eff84d85 100644 --- a/packages/rpc/package.json +++ b/packages/rpc/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/rpc", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "NEAR RPC interactions for Mintbase JS SDK", "main": "lib/index.js", "scripts": { diff --git a/packages/rpc/src/index.ts b/packages/rpc/src/index.ts index 2f33ec9e..c2ffdae8 100644 --- a/packages/rpc/src/index.ts +++ b/packages/rpc/src/index.ts @@ -11,4 +11,4 @@ export * from './methods/keys'; export * from './methods/ftBalance'; export * from './methods/ftStorageBalance'; export * from './methods/ftMetadata'; -export * from './util'; \ No newline at end of file +export * from './util'; diff --git a/packages/rpc/src/methods/account.test.ts b/packages/rpc/src/methods/account.test.ts index d3c9cbc6..eedb1d2e 100644 --- a/packages/rpc/src/methods/account.test.ts +++ b/packages/rpc/src/methods/account.test.ts @@ -14,7 +14,7 @@ describe('accountExists', () => { }); expect( - await accountExists({accountId: 'root.near', rpcUrl: 'rpc'}), + await accountExists({ accountId: 'root.near', rpcUrl: 'rpc' }), ).toBe(true); }); @@ -26,7 +26,7 @@ describe('accountExists', () => { }); expect( - await accountExists({accountId: 'xyz&&&.near', rpcUrl: 'rpc'}), + await accountExists({ accountId: 'xyz&&&.near', rpcUrl: 'rpc' }), ).toBe(false); }); }); diff --git a/packages/rpc/src/methods/account.ts b/packages/rpc/src/methods/account.ts index 42d6e837..65e23b12 100644 --- a/packages/rpc/src/methods/account.ts +++ b/packages/rpc/src/methods/account.ts @@ -1,7 +1,7 @@ import { AccountParams } from '../types'; import { callNearRpc } from '../util'; -export const accountExists = async ({accountId, rpcUrl}: AccountParams): Promise => { +export const accountExists = async ({ accountId, rpcUrl }: AccountParams): Promise => { const res = await callNearRpc({ params: { @@ -10,7 +10,7 @@ export const accountExists = async ({accountId, rpcUrl}: AccountParams): Promise account_id: accountId, }, method: 'query', - rpcUrl}) + rpcUrl }); if (res?.error) { return false; diff --git a/packages/rpc/src/methods/balance.test.ts b/packages/rpc/src/methods/balance.test.ts index ed39cd60..bd388e41 100644 --- a/packages/rpc/src/methods/balance.test.ts +++ b/packages/rpc/src/methods/balance.test.ts @@ -14,7 +14,7 @@ describe('getBalance', () => { }), }); - const b = await getBalance({accountId:'foo.near', rpcUrl:'rpcUrl'}); + const b = await getBalance({ accountId:'foo.near', rpcUrl:'rpcUrl' }); expect(b instanceof BN).toBe(true); expect(b.eq(new BN(123))).toBe(true); }); diff --git a/packages/rpc/src/methods/balance.ts b/packages/rpc/src/methods/balance.ts index 881d940c..66c36468 100644 --- a/packages/rpc/src/methods/balance.ts +++ b/packages/rpc/src/methods/balance.ts @@ -1,18 +1,18 @@ import BN from 'bn.js'; -import { callNearRpc, } from '../util'; +import { callNearRpc } from '../util'; import { AccountParams } from '../types'; export const getBalance = async ({ accountId, rpcUrl }: AccountParams): Promise => { const res = await callNearRpc({ params: { - request_type: 'view_account', - finality: 'final', - account_id: accountId, - }, + request_type: 'view_account', + finality: 'final', + account_id: accountId, + }, method:'query', - rpcUrl - }) + rpcUrl, + }); const balanceString = res?.result?.amount as string; if (!balanceString) { diff --git a/packages/rpc/src/methods/blockheight.ts b/packages/rpc/src/methods/blockheight.ts index 56aba8b8..358969fb 100644 --- a/packages/rpc/src/methods/blockheight.ts +++ b/packages/rpc/src/methods/blockheight.ts @@ -5,7 +5,7 @@ export const getBlockHeight = async (rpcUrl: string): Promise => { const res = await callNearRpc({ params: [], method: 'status', - rpcUrl}) + rpcUrl }); const blockHeight = (res?.result?.sync_info as {latest_block_height: number})?.latest_block_height; if (!blockHeight) { diff --git a/packages/rpc/src/methods/getBlockHash.ts b/packages/rpc/src/methods/getBlockHash.ts index f2445520..9c4d6f0a 100644 --- a/packages/rpc/src/methods/getBlockHash.ts +++ b/packages/rpc/src/methods/getBlockHash.ts @@ -4,8 +4,8 @@ export const getBlockHash = async (rpcUrl: string): Promise => { const res = await callNearRpc({ method: 'status', params: [], - rpcUrl - }, ); + rpcUrl, + } ); const blockHash = (res?.result?.sync_info as {latest_block_hash: string})?.latest_block_hash; diff --git a/packages/rpc/src/methods/getGasPrice.ts b/packages/rpc/src/methods/getGasPrice.ts index 111ad5da..27928cb4 100644 --- a/packages/rpc/src/methods/getGasPrice.ts +++ b/packages/rpc/src/methods/getGasPrice.ts @@ -5,8 +5,8 @@ export const getGasPrice = async (hash: string, rpcUrl: string): Promise const res = await callNearRpc({ method: 'gas_price', params: [hash || null], - rpcUrl - }, ); + rpcUrl, + } ); const gasPrice = res?.result?.gas_price as number; diff --git a/packages/rpc/src/methods/getLatestGasPrice.ts b/packages/rpc/src/methods/getLatestGasPrice.ts index 6736fe0d..91ce82d0 100644 --- a/packages/rpc/src/methods/getLatestGasPrice.ts +++ b/packages/rpc/src/methods/getLatestGasPrice.ts @@ -5,8 +5,8 @@ export const getLatestGasPrice = async (rpcUrl: string): Promise => { const res = await callNearRpc({ method: 'gas_price', params: [null], - rpcUrl - }, ); + rpcUrl, + } ); const gasPrice = res?.result?.gas_price as string; diff --git a/packages/rpc/src/methods/keys.test.ts b/packages/rpc/src/methods/keys.test.ts index 79041452..4f007286 100644 --- a/packages/rpc/src/methods/keys.test.ts +++ b/packages/rpc/src/methods/keys.test.ts @@ -5,7 +5,7 @@ import { AccessKey } from '../types'; jest.mock('cross-fetch'); describe('keys', () => { - const getRes = async (): Promise => await getAccessKeys({ accountId: 'nate.near', rpcUrl: 'https://rpc.testnet.near.org'}); + const getRes = async (): Promise => await getAccessKeys({ accountId: 'nate.near', rpcUrl: 'https://rpc.testnet.near.org' }); it('should return access keys for accounts', async () => { (fetch as jest.Mock).mockResolvedValueOnce({ diff --git a/packages/rpc/src/methods/keys.ts b/packages/rpc/src/methods/keys.ts index e0f32629..f7c1fec3 100644 --- a/packages/rpc/src/methods/keys.ts +++ b/packages/rpc/src/methods/keys.ts @@ -2,17 +2,17 @@ import { AccessKey, AccountParams } from '../types'; import { callNearRpc } from '../util'; -export const getAccessKeys = async ({accountId, rpcUrl}: AccountParams): Promise => { +export const getAccessKeys = async ({ accountId, rpcUrl }: AccountParams): Promise => { const res = await callNearRpc({ method: 'query', - params: { + params: { request_type: 'view_access_key_list', finality: 'final', account_id: accountId, }, - rpcUrl - }, ); + rpcUrl, + } ); const accessKeys = res?.result?.keys as AccessKey[]; diff --git a/packages/rpc/src/methods/payouts.test.ts b/packages/rpc/src/methods/payouts.test.ts index 4d768903..d79e07ca 100644 --- a/packages/rpc/src/methods/payouts.test.ts +++ b/packages/rpc/src/methods/payouts.test.ts @@ -28,7 +28,7 @@ describe('payouts rpc call', () => { const payout = await payouts({ contractId: 'ticketingv2.mintspace2.testnet', tokenId: '154', - rpcUrl: 'rpc' + rpcUrl: 'rpc', }); expect(typeof payout.equalAccounts).toBe('boolean'); diff --git a/packages/rpc/src/methods/payouts.ts b/packages/rpc/src/methods/payouts.ts index f49b465c..53ece768 100644 --- a/packages/rpc/src/methods/payouts.ts +++ b/packages/rpc/src/methods/payouts.ts @@ -18,7 +18,6 @@ const nepToUi = (nepPayout: NepPayout, tokenId: string): UiPayout => { }; - export const payouts = async ({ contractId, tokenId, rpcUrl }: PayoutsProps): Promise => { const payout = await callViewMethod({ contractId, diff --git a/packages/rpc/src/methods/social.test.ts b/packages/rpc/src/methods/social.test.ts index c8a7655f..f39c9e7a 100644 --- a/packages/rpc/src/methods/social.test.ts +++ b/packages/rpc/src/methods/social.test.ts @@ -19,7 +19,7 @@ describe('near social', () => { }), }); - const profile = await nearSocialProfile({accountId: 'benipsen.testnet', network: 'testnet', rpcUrl: 'https://rpc.testnet.near.org'}); + const profile = await nearSocialProfile({ accountId: 'benipsen.testnet', network: 'testnet', rpcUrl: 'https://rpc.testnet.near.org' }); expect(profile.name).toBeDefined(); expect(profile.imageUrl).toBeNull(); }); @@ -49,7 +49,7 @@ describe('near social', () => { }), }); - const profile = await nearSocialProfile({accountId: 'benipsen.testnet', network: 'testnet', rpcUrl: 'https://rpc.testnet.near.org'}); + const profile = await nearSocialProfile({ accountId: 'benipsen.testnet', network: 'testnet', rpcUrl: 'https://rpc.testnet.near.org' }); expect(profile.name).toBeDefined(); expect(profile.backgroundImageUrl).not.toBeNull(); expect(profile.imageUrl).toContain(NEAR_SOCIAL_IPFS_GATEWAY); @@ -67,7 +67,7 @@ describe('near social', () => { }), }); - const profile = await nearSocialProfile({accountId: 'benipsen.nope', network: 'testnet', rpcUrl: 'https://rpc.testnet.near.org'}); + const profile = await nearSocialProfile({ accountId: 'benipsen.nope', network: 'testnet', rpcUrl: 'https://rpc.testnet.near.org' }); expect(profile.name).toBeUndefined(); }); }); diff --git a/packages/rpc/src/methods/social.ts b/packages/rpc/src/methods/social.ts index 64319068..cbdf9b16 100644 --- a/packages/rpc/src/methods/social.ts +++ b/packages/rpc/src/methods/social.ts @@ -23,8 +23,8 @@ const getImageUrl = (image: ProfileImage): string | null => { export const nearSocialProfile = async ({ accountId, network, - rpcUrl -}: SocialParams + rpcUrl, +}: SocialParams, ): Promise => { diff --git a/packages/rpc/src/methods/txnstatus.test.ts b/packages/rpc/src/methods/txnstatus.test.ts index 21c51c9a..4105ede3 100644 --- a/packages/rpc/src/methods/txnstatus.test.ts +++ b/packages/rpc/src/methods/txnstatus.test.ts @@ -21,8 +21,8 @@ describe('getTxnStatus', () => { { outcome: { status: true } }, { outcome: { status: true } }, ]); - let txnHash = '9Nieji1G1d9iUmkMindAAdwz7mcESG2NFxredjv9cWrZ'; - let senderId = 'reginanogueira.near'; + const txnHash = '9Nieji1G1d9iUmkMindAAdwz7mcESG2NFxredjv9cWrZ'; + const senderId = 'reginanogueira.near'; const status = await getTxnStatus(txnHash, senderId, 'rpc'); expect(status).toStrictEqual('success'); @@ -32,8 +32,8 @@ describe('getTxnStatus', () => { mockResponseWithReceipts([ { outcome: { status: true } }, ]); - let txnHash = 'DfePCY1bRdCn8BsBjod4kP3sW6Uc1VYV4yJxnFNy5Vui'; - let senderId = 'yoneru.near'; + const txnHash = 'DfePCY1bRdCn8BsBjod4kP3sW6Uc1VYV4yJxnFNy5Vui'; + const senderId = 'yoneru.near'; const status = await getTxnStatus(txnHash, senderId, 'rpc'); expect(status).toStrictEqual('success'); @@ -43,8 +43,8 @@ describe('getTxnStatus', () => { mockResponseWithReceipts([ { outcome: { status: { Failure: true } } }, ]); - let txnHash = 'test.txn.hash'; - let senderId = 'foo.near'; + const txnHash = 'test.txn.hash'; + const senderId = 'foo.near'; const status = await getTxnStatus(txnHash, senderId, 'rpc'); expect(status).toStrictEqual('failure'); diff --git a/packages/rpc/src/methods/txnstatus.ts b/packages/rpc/src/methods/txnstatus.ts index 27d30171..98cf52b2 100644 --- a/packages/rpc/src/methods/txnstatus.ts +++ b/packages/rpc/src/methods/txnstatus.ts @@ -18,7 +18,7 @@ export const getTxnStatus = async ( rpcUrl: string, ): Promise => { - const res = await callNearRpc({params:[txnHash, senderId],method:'tx',rpcUrl}) + const res = await callNearRpc({ params:[txnHash, senderId], method:'tx', rpcUrl }); if (res?.error) { throw res.error; diff --git a/packages/rpc/src/types.ts b/packages/rpc/src/types.ts index 8f566f38..625924b8 100644 --- a/packages/rpc/src/types.ts +++ b/packages/rpc/src/types.ts @@ -70,4 +70,4 @@ export type NearSocialProfile = { website: string; }; tags?: Record; -}; \ No newline at end of file +}; diff --git a/packages/rpc/src/util.ts b/packages/rpc/src/util.ts index a5218518..ad1b7eaf 100644 --- a/packages/rpc/src/util.ts +++ b/packages/rpc/src/util.ts @@ -1,13 +1,13 @@ import fetch from 'cross-fetch'; -export const callNearRpc = async ({params, method, rpcUrl}): Promise<{ result: Record, error: unknown } | undefined> => { +export const callNearRpc = async ({ params, method, rpcUrl }): Promise<{ result: Record, error: unknown } | undefined> => { return await requestFromNearRpc({ jsonrpc: '2.0', id: 'dontcare', method:method, params:params, - }, rpcUrl) -} + }, rpcUrl); +}; export const requestFromNearRpc = async ( @@ -15,7 +15,7 @@ export const requestFromNearRpc = async ( rpcUrl: string): Promise<{ result: Record, error: unknown } | undefined> => { - if (!rpcUrl) { + if (!rpcUrl) { throw new Error('please add a valid RPC Url, you can check a list of providers on: https://docs.near.org/api/rpc/providers'); } diff --git a/packages/sdk/package.json b/packages/sdk/package.json index fb3a14d9..daaaa73c 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/sdk", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "Core functions for Mintbase JS SDK", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/storage/package-lock.json b/packages/storage/package-lock.json index fc20761c..bdfec049 100644 --- a/packages/storage/package-lock.json +++ b/packages/storage/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mintbase-js/storage", - "version": "0.6.1", + "version": "0.6.2-beta-prerelease.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@mintbase-js/storage", - "version": "0.6.1", + "version": "0.6.2-beta-prerelease.0", "license": "MIT", "dependencies": { "near-api-js": "^4.0.3" diff --git a/packages/storage/package.json b/packages/storage/package.json index 175faf27..9c2e86a0 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/storage", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "Storage functions for Mintbase JS SDK", "main": "lib/index.js", "scripts": { diff --git a/packages/testing/package.json b/packages/testing/package.json index 23b3b489..4567d5de 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/testing", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "Integration test suite and testing utils", "main": "lib/index.js", "scripts": { diff --git a/packages/wallet/package-lock.json b/packages/wallet/package-lock.json index 443e97b6..6e9cfb19 100644 --- a/packages/wallet/package-lock.json +++ b/packages/wallet/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mintbase-js/wallet", - "version": "0.6.1", + "version": "0.6.2-beta-prerelease.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mintbase-js/wallet", - "version": "0.6.1", + "version": "0.6.2-beta-prerelease.0", "license": "ISC", "dependencies": { "@near-wallet-selector/core": "8.9.12", diff --git a/packages/wallet/package.json b/packages/wallet/package.json index e5dcc846..0213e7d9 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@mintbase-js/wallet", - "version": "0.6.1-beta-prerelease.1", + "version": "0.6.2-beta-prerelease.0", "description": "Mintbase Wallet", "main": "lib/index.js", "keywords": [