From b2b94b70998d0bbd54c746a16c735e3ec83e05ee Mon Sep 17 00:00:00 2001 From: shubham <16849485+metallicalfa2@users.noreply.github.com> Date: Wed, 12 Oct 2022 17:02:50 +0800 Subject: [PATCH] feat: restructured --- package-lock.json | 181 +++++++++++++++++++++++++++++----------------- package.json | 2 +- 2 files changed, 117 insertions(+), 66 deletions(-) diff --git a/package-lock.json b/package-lock.json index 27d867a1..4e4fd72f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@solana/qr-code-styling": "^1.6.0-rc.1", "@solana/spl-name-service": "^0.1.4", "@solana/spl-token": "0.2.0", - "@solana/web3.js": "^1.42.0", + "@solana/web3.js": "^1.63.1", "@toruslabs/base-controllers": "2.2.6", "@toruslabs/broadcast-channel": "^5.0.2", "@toruslabs/eccrypto": "^1.1.8", @@ -31,7 +31,7 @@ "@toruslabs/openlogin-jrpc": "^2.5.0", "@toruslabs/openlogin-subkey": "^2.1.0", "@toruslabs/openlogin-utils": "^2.1.0", - "@toruslabs/solana-controllers": "^2.3.0", + "@toruslabs/solana-controllers": "^2.3.2", "@toruslabs/tweetnacl-js": "^1.0.3", "@toruslabs/vue-components": "^2.0.1", "@toruslabs/vue-icons": "^2.0.0", @@ -2946,6 +2946,39 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/@noble/ed25519": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/ed25519/-/ed25519-1.7.1.tgz", + "integrity": "sha512-Rk4SkJFaXZiznFyC/t77Q0NKS4FL7TLJJsVG2V2oiEq3kJVeTdxysEe/yRWSpnWMe808XRDJ+VFh5pt/FN5plw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ] + }, + "node_modules/@noble/hashes": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.3.tgz", + "integrity": "sha512-CE0FCR57H2acVI5UOzIGSSIYxZ6v/HOhDR0Ro9VLyhnzLwx0o8W1mmgaqlEUx4049qJDlIBRztv5k+MM8vbO3A==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ] + }, + "node_modules/@noble/secp256k1": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.0.tgz", + "integrity": "sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ] + }, "node_modules/@node-ipc/js-queue": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@node-ipc/js-queue/-/js-queue-2.0.3.tgz", @@ -3500,26 +3533,25 @@ } }, "node_modules/@solana/web3.js": { - "version": "1.43.1", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.43.1.tgz", - "integrity": "sha512-s6TRcWz3rYvxM8gg1eQmUAUJQeoXIFMG9MbSWb/uRrLU0q7Xd9Ic1PNbACp1n1O0wyCogTAyFWXXPK476aIVSg==", + "version": "1.64.0", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.64.0.tgz", + "integrity": "sha512-AcFaoy48GxSmzBryVwB88C/UPJd/UQa+nFrO/uPc8ww6RCjanZY2vEZxdfTZub+q1NMUckwXpPwF32jJLe7SPA==", "dependencies": { "@babel/runtime": "^7.12.5", - "@ethersproject/sha2": "^5.5.0", + "@noble/ed25519": "^1.7.0", + "@noble/hashes": "^1.1.2", + "@noble/secp256k1": "^1.6.3", "@solana/buffer-layout": "^4.0.0", "bigint-buffer": "^1.1.5", "bn.js": "^5.0.0", "borsh": "^0.7.0", "bs58": "^4.0.1", "buffer": "6.0.1", - "cross-fetch": "^3.1.4", "fast-stable-stringify": "^1.0.0", "jayson": "^3.4.4", - "js-sha3": "^0.8.0", - "rpc-websockets": "^7.4.2", - "secp256k1": "^4.0.2", - "superstruct": "^0.14.2", - "tweetnacl": "^1.0.0" + "node-fetch": "2", + "rpc-websockets": "^7.5.0", + "superstruct": "^0.14.2" }, "engines": { "node": ">=12.20.0" @@ -3837,13 +3869,13 @@ } }, "node_modules/@toruslabs/solana-controllers": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@toruslabs/solana-controllers/-/solana-controllers-2.3.0.tgz", - "integrity": "sha512-oErkXmkF0X3zzIXGXGjkD1Ch3Xph4WhI/kcFLUwOKTFL2GVTjODtRtIgabP1qeMnHFuudMJZXAY8u0kb3G63qw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@toruslabs/solana-controllers/-/solana-controllers-2.3.2.tgz", + "integrity": "sha512-nxJLcvxrcft6ymPwafrK+9YntUn/GOWpV9hkc+47QGLA1IvhWweMgISiWoJn2avLaALOStzbyDzSfT1XDf4GPg==", "dependencies": { "@metaplex-foundation/mpl-token-metadata": "^2.1.2", "@solana/spl-token": "0.1.8", - "@solana/web3.js": "^1.42.0", + "@solana/web3.js": "^1.63.1", "@toruslabs/base-controllers": "^2.2.6", "@toruslabs/http-helpers": "^3.0.0", "@toruslabs/openlogin-ed25519": "^2.0.0", @@ -7937,12 +7969,6 @@ "safe-buffer": "^5.0.1" } }, - "node_modules/circular-json": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.9.tgz", - "integrity": "sha512-4ivwqHpIFJZBuhN3g/pEcdbnGUywkBblloGbkglyloVjjR3uT6tieI89MVOfbP2tHX5sgb01FuLgAOzebNlJNQ==", - "deprecated": "CircularJSON is in maintenance only, flatted is its successor." - }, "node_modules/clean-css": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.0.tgz", @@ -13625,11 +13651,6 @@ "node": ">=0.6.0" } }, - "node_modules/js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -17885,15 +17906,14 @@ } }, "node_modules/rpc-websockets": { - "version": "7.4.17", - "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.4.17.tgz", - "integrity": "sha512-eolVi/qlXS13viIUH9aqrde902wzSLAai0IjmOZSRefp5I3CSG/vCnD0c0fDSYCWuEyUoRL1BHQA8K1baEUyow==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.5.0.tgz", + "integrity": "sha512-9tIRi1uZGy7YmDjErf1Ax3wtqdSSLIlnmL5OtOzgd5eqPKbsPpwDP5whUDO2LQay3Xp0CcHlcNSGzacNRluBaQ==", "dependencies": { - "@babel/runtime": "^7.11.2", - "circular-json": "^0.5.9", + "@babel/runtime": "^7.17.2", "eventemitter3": "^4.0.7", - "uuid": "^8.3.0", - "ws": "^7.4.5" + "uuid": "^8.3.2", + "ws": "^8.5.0" }, "funding": { "type": "paypal", @@ -17904,6 +17924,26 @@ "utf-8-validate": "^5.0.2" } }, + "node_modules/rpc-websockets/node_modules/ws": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", + "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -23440,6 +23480,21 @@ } } }, + "@noble/ed25519": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/ed25519/-/ed25519-1.7.1.tgz", + "integrity": "sha512-Rk4SkJFaXZiznFyC/t77Q0NKS4FL7TLJJsVG2V2oiEq3kJVeTdxysEe/yRWSpnWMe808XRDJ+VFh5pt/FN5plw==" + }, + "@noble/hashes": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.3.tgz", + "integrity": "sha512-CE0FCR57H2acVI5UOzIGSSIYxZ6v/HOhDR0Ro9VLyhnzLwx0o8W1mmgaqlEUx4049qJDlIBRztv5k+MM8vbO3A==" + }, + "@noble/secp256k1": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.0.tgz", + "integrity": "sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw==" + }, "@node-ipc/js-queue": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@node-ipc/js-queue/-/js-queue-2.0.3.tgz", @@ -23896,26 +23951,25 @@ } }, "@solana/web3.js": { - "version": "1.43.1", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.43.1.tgz", - "integrity": "sha512-s6TRcWz3rYvxM8gg1eQmUAUJQeoXIFMG9MbSWb/uRrLU0q7Xd9Ic1PNbACp1n1O0wyCogTAyFWXXPK476aIVSg==", + "version": "1.64.0", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.64.0.tgz", + "integrity": "sha512-AcFaoy48GxSmzBryVwB88C/UPJd/UQa+nFrO/uPc8ww6RCjanZY2vEZxdfTZub+q1NMUckwXpPwF32jJLe7SPA==", "requires": { "@babel/runtime": "^7.12.5", - "@ethersproject/sha2": "^5.5.0", + "@noble/ed25519": "^1.7.0", + "@noble/hashes": "^1.1.2", + "@noble/secp256k1": "^1.6.3", "@solana/buffer-layout": "^4.0.0", "bigint-buffer": "^1.1.5", "bn.js": "^5.0.0", "borsh": "^0.7.0", "bs58": "^4.0.1", "buffer": "6.0.1", - "cross-fetch": "^3.1.4", "fast-stable-stringify": "^1.0.0", "jayson": "^3.4.4", - "js-sha3": "^0.8.0", - "rpc-websockets": "^7.4.2", - "secp256k1": "^4.0.2", - "superstruct": "^0.14.2", - "tweetnacl": "^1.0.0" + "node-fetch": "2", + "rpc-websockets": "^7.5.0", + "superstruct": "^0.14.2" }, "dependencies": { "buffer": { @@ -24144,13 +24198,13 @@ } }, "@toruslabs/solana-controllers": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@toruslabs/solana-controllers/-/solana-controllers-2.3.0.tgz", - "integrity": "sha512-oErkXmkF0X3zzIXGXGjkD1Ch3Xph4WhI/kcFLUwOKTFL2GVTjODtRtIgabP1qeMnHFuudMJZXAY8u0kb3G63qw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@toruslabs/solana-controllers/-/solana-controllers-2.3.2.tgz", + "integrity": "sha512-nxJLcvxrcft6ymPwafrK+9YntUn/GOWpV9hkc+47QGLA1IvhWweMgISiWoJn2avLaALOStzbyDzSfT1XDf4GPg==", "requires": { "@metaplex-foundation/mpl-token-metadata": "^2.1.2", "@solana/spl-token": "0.1.8", - "@solana/web3.js": "^1.42.0", + "@solana/web3.js": "^1.63.1", "@toruslabs/base-controllers": "^2.2.6", "@toruslabs/http-helpers": "^3.0.0", "@toruslabs/openlogin-ed25519": "^2.0.0", @@ -27271,11 +27325,6 @@ "safe-buffer": "^5.0.1" } }, - "circular-json": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.9.tgz", - "integrity": "sha512-4ivwqHpIFJZBuhN3g/pEcdbnGUywkBblloGbkglyloVjjR3uT6tieI89MVOfbP2tHX5sgb01FuLgAOzebNlJNQ==" - }, "clean-css": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.0.tgz", @@ -31546,11 +31595,6 @@ "integrity": "sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA==", "dev": true }, - "js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -34656,17 +34700,24 @@ } }, "rpc-websockets": { - "version": "7.4.17", - "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.4.17.tgz", - "integrity": "sha512-eolVi/qlXS13viIUH9aqrde902wzSLAai0IjmOZSRefp5I3CSG/vCnD0c0fDSYCWuEyUoRL1BHQA8K1baEUyow==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.5.0.tgz", + "integrity": "sha512-9tIRi1uZGy7YmDjErf1Ax3wtqdSSLIlnmL5OtOzgd5eqPKbsPpwDP5whUDO2LQay3Xp0CcHlcNSGzacNRluBaQ==", "requires": { - "@babel/runtime": "^7.11.2", + "@babel/runtime": "^7.17.2", "bufferutil": "^4.0.1", - "circular-json": "^0.5.9", "eventemitter3": "^4.0.7", "utf-8-validate": "^5.0.2", - "uuid": "^8.3.0", - "ws": "^7.4.5" + "uuid": "^8.3.2", + "ws": "^8.5.0" + }, + "dependencies": { + "ws": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", + "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", + "requires": {} + } } }, "run-parallel": { diff --git a/package.json b/package.json index e5f16559..d3798106 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@toruslabs/openlogin-jrpc": "^2.5.0", "@toruslabs/openlogin-subkey": "^2.1.0", "@toruslabs/openlogin-utils": "^2.1.0", - "@toruslabs/solana-controllers": "^2.3.1", + "@toruslabs/solana-controllers": "^2.3.2", "@toruslabs/tweetnacl-js": "^1.0.3", "@toruslabs/vue-components": "^2.0.1", "@toruslabs/vue-icons": "^2.0.0",