diff --git a/apps/taquito-test-dapp/package.json b/apps/taquito-test-dapp/package.json index f08c9d34ee..98d7fb360a 100644 --- a/apps/taquito-test-dapp/package.json +++ b/apps/taquito-test-dapp/package.json @@ -24,8 +24,8 @@ "vite": "^5.3.5" }, "dependencies": { - "@airgap/beacon-sdk": "^4.2.2", - "@airgap/beacon-types": "^4.2.2", + "@airgap/beacon-sdk": "^4.3.0-beta.1", + "@airgap/beacon-types": "^4.3.0-beta.1", "@taquito/beacon-wallet": "^20.0.1", "@taquito/core": "^20.0.1", "@taquito/taquito": "^20.0.1", diff --git a/package-lock.json b/package-lock.json index 50b8d24a12..2068adb91d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "proj", + "name": "taquito", "lockfileVersion": 3, "requires": true, "packages": { @@ -58,8 +58,8 @@ "name": "taquito-test-dapp-vite", "version": "20.0.1", "dependencies": { - "@airgap/beacon-sdk": "^4.2.2", - "@airgap/beacon-types": "^4.2.2", + "@airgap/beacon-sdk": "^4.3.0-beta.1", + "@airgap/beacon-types": "^4.3.0-beta.1", "@taquito/beacon-wallet": "^20.0.1", "@taquito/core": "^20.0.1", "@taquito/taquito": "^20.0.1", @@ -171,33 +171,33 @@ } }, "node_modules/@airgap/beacon-blockchain-substrate": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-blockchain-substrate/-/beacon-blockchain-substrate-4.2.2.tgz", - "integrity": "sha512-7G5HvZBM03zDwWh0OfXxKkE4WVrtacIEq7Ks1W33Yrtk7M2fliJu8FplYwn4EyasBXtt5WQfd2/3OkJOjbNmXw==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-blockchain-substrate/-/beacon-blockchain-substrate-4.3.0-beta.1.tgz", + "integrity": "sha512-dcRfoCeqSixq4XMUzlTcM3NE8Qno1vpnQfxJAsu/Pn5Ro6ZITsvonZbbI8iyy6rk1srJXPthXKmPhufjzIZZ8A==", "license": "ISC", "dependencies": { - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-ui": "4.2.2" + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-ui": "4.3.0-beta.1" } }, "node_modules/@airgap/beacon-blockchain-tezos": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-blockchain-tezos/-/beacon-blockchain-tezos-4.2.2.tgz", - "integrity": "sha512-VeS9nNwgwic9uIO4dF2KCQr673qos/vhf528H2dy5NwITFSSRwT/lPT5YCDvmCQ5roYQF7+qY1tTE0VBKONEhg==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-blockchain-tezos/-/beacon-blockchain-tezos-4.3.0-beta.1.tgz", + "integrity": "sha512-kP4cetdz/ctBhLxr4AVAyssO7AG7ECkR1oMUjSmD5MDH/bI9B2r3KyQdk38VJHmpBgdvxIn7ZEQMhsYheaoe0w==", "license": "ISC", "dependencies": { - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-ui": "4.2.2" + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-ui": "4.3.0-beta.1" } }, "node_modules/@airgap/beacon-core": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-core/-/beacon-core-4.2.2.tgz", - "integrity": "sha512-pvp6T57fL734Yi81ZOvAo6oQmw7PPsj5BLC/brg17ic2uGCF0aFgYrExTDxVz5SoM93v5NJCPvg1TRkitTcvtA==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-core/-/beacon-core-4.3.0-beta.1.tgz", + "integrity": "sha512-7E0AmWrZfzQt2K2vmfak5vyo9poc0aJhAeg83adCCjKEtIdIUafNMKpHrAH7XW8IpW8zrJdrxQ3vCVU0O3VZQA==", "license": "ISC", "dependencies": { - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-utils": "4.2.2", + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-utils": "4.3.0-beta.1", "@stablelib/ed25519": "^1.0.3", "@stablelib/nacl": "^1.0.4", "@stablelib/utf8": "^1.0.1", @@ -235,98 +235,99 @@ } }, "node_modules/@airgap/beacon-dapp": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-dapp/-/beacon-dapp-4.2.2.tgz", - "integrity": "sha512-kXH9gwjkbZKlt1irg/QGOWJeUwvR+ffa/3m39F8Mv5uIdS/PnOU4QMso6F4VVbtk6RmAGFr1gG/Q6pIkkWPFxg==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-dapp/-/beacon-dapp-4.3.0-beta.1.tgz", + "integrity": "sha512-Iyu1dp7Min7dIHpy7Kh30r4VQg/IgxIuYye8luzMTQ6wsP2aVTyMYTtJ4iIGzMrCWiF4l4Jo3yh1+vtTM6no5g==", "license": "ISC", "dependencies": { - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-transport-matrix": "4.2.2", - "@airgap/beacon-transport-postmessage": "4.2.2", - "@airgap/beacon-transport-walletconnect": "4.2.2", - "@airgap/beacon-ui": "4.2.2" + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-transport-matrix": "4.3.0-beta.1", + "@airgap/beacon-transport-postmessage": "4.3.0-beta.1", + "@airgap/beacon-transport-walletconnect": "4.3.0-beta.1", + "@airgap/beacon-ui": "4.3.0-beta.1", + "broadcast-channel": "^7.0.0" } }, "node_modules/@airgap/beacon-sdk": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-sdk/-/beacon-sdk-4.2.2.tgz", - "integrity": "sha512-F99zhXUp1EXDOqESqjPglBGzv0WSKVcmf62PYbW5B3HyhstbC3gdu8pcu/rEkMyyF3dLUFzX91cE/COBgh3qRA==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-sdk/-/beacon-sdk-4.3.0-beta.1.tgz", + "integrity": "sha512-D0rqo8fr8bXB4EAX+y1grSuCcsZYgbsCQezkYHKV1bFjdsSzj3eEHmY02gHNYaSlMwGtDgPpEXCHAAo7wa08Xw==", "license": "ISC", "dependencies": { - "@airgap/beacon-blockchain-substrate": "4.2.2", - "@airgap/beacon-blockchain-tezos": "4.2.2", - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-dapp": "4.2.2", - "@airgap/beacon-transport-matrix": "4.2.2", - "@airgap/beacon-transport-postmessage": "4.2.2", - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-ui": "4.2.2", - "@airgap/beacon-utils": "4.2.2", - "@airgap/beacon-wallet": "4.2.2" + "@airgap/beacon-blockchain-substrate": "4.3.0-beta.1", + "@airgap/beacon-blockchain-tezos": "4.3.0-beta.1", + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-dapp": "4.3.0-beta.1", + "@airgap/beacon-transport-matrix": "4.3.0-beta.1", + "@airgap/beacon-transport-postmessage": "4.3.0-beta.1", + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-ui": "4.3.0-beta.1", + "@airgap/beacon-utils": "4.3.0-beta.1", + "@airgap/beacon-wallet": "4.3.0-beta.1" } }, "node_modules/@airgap/beacon-transport-matrix": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-transport-matrix/-/beacon-transport-matrix-4.2.2.tgz", - "integrity": "sha512-lCwFo6laGQbowvQoGU5tlkgrdBx9S9Nyk/OjJUE5Db9DgvQZhRR77zA0jl7lPdYDYcKeklHahBz6vwkiN/ferA==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-transport-matrix/-/beacon-transport-matrix-4.3.0-beta.1.tgz", + "integrity": "sha512-/NUYRcSj+lEdynq7ApiNSG5l6s0agH2d7Htz37fD4cA2hRs09SyhiJr8yTaLYSXlzFTTR/o7FNpREYO4K1c0Cw==", "license": "ISC", "dependencies": { - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-utils": "4.2.2", + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-utils": "4.3.0-beta.1", "axios": "^1.6.2" } }, "node_modules/@airgap/beacon-transport-postmessage": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-transport-postmessage/-/beacon-transport-postmessage-4.2.2.tgz", - "integrity": "sha512-xLFeTEw6Yydq+4cr8IISxFprEQm3Us1QKNI/zNTAy1ssTxML1MZGAoLXWm/3adXKc8kzeR7dZH9blNEKhZWGcQ==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-transport-postmessage/-/beacon-transport-postmessage-4.3.0-beta.1.tgz", + "integrity": "sha512-Yx/WnpavARr30xLMoA3EA4z7+zErNYJzL/xBZzQaNH53QTYVVWm78uhF1QgJ5+Kfy0OxoD/lUR5nxwQ+jE4VPw==", "license": "ISC", "dependencies": { - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-utils": "4.2.2" + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-utils": "4.3.0-beta.1" } }, "node_modules/@airgap/beacon-transport-walletconnect": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-transport-walletconnect/-/beacon-transport-walletconnect-4.2.2.tgz", - "integrity": "sha512-ftwUDhQdjLPtyX1ESUp9VkFS5vyEvp377eL4lVFaEdqf4mCpxg/XxHffO/o7OeRD1NI0nZfCxsKOWU2plg+ghg==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-transport-walletconnect/-/beacon-transport-walletconnect-4.3.0-beta.1.tgz", + "integrity": "sha512-11dtzIgYscjbS0R3vTN5sTGumxYilp0U9KEwxH5HHf9wjlJiQXFIJ3EXAFLC4aMe0Bo0QoeH8aIrjEcrtTHAXg==", "license": "ISC", "dependencies": { - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-utils": "4.2.2", + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-utils": "4.3.0-beta.1", "@walletconnect/sign-client": "2.11.2" } }, "node_modules/@airgap/beacon-types": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-types/-/beacon-types-4.2.2.tgz", - "integrity": "sha512-4sX5QEZTanQ5E6FiY7lp6ilv6rlzu5eNrWa3KdygpHm0NFfkJCY7YRPWo4V5LkCCkILa9QF5TS9tVKMORNcocQ==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-types/-/beacon-types-4.3.0-beta.1.tgz", + "integrity": "sha512-fPjJSeXYqPJ0ro/C8bKKFKY+0UoN6B66K2y+0Y9VfaKQpZcNQr8vD/nOx11tslOS/xtF2RP+Pj5/bDw8VaLMiQ==", "license": "ISC", "dependencies": { "@types/chrome": "0.0.246" } }, "node_modules/@airgap/beacon-ui": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-ui/-/beacon-ui-4.2.2.tgz", - "integrity": "sha512-iuVH8ZgyejRo61vwZP4gTju+FfRxtEvA+Y9CanizlkJY3UcPa2ATx9Bmz8fGOeo5bkohxS1Ny36WEQ81z5cpIw==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-ui/-/beacon-ui-4.3.0-beta.1.tgz", + "integrity": "sha512-eXEVDcmk8QyCVY5XmungZiBBT4PZ9orwI6XGDYuDjTjNtR/V4Wgh4fXxJJ3fRuKe9CZycem6XngfmNtfxoikeg==", "license": "ISC", "dependencies": { - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-transport-postmessage": "4.2.2", - "@airgap/beacon-types": "4.2.2", - "@airgap/beacon-utils": "4.2.2", + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-transport-postmessage": "4.3.0-beta.1", + "@airgap/beacon-types": "4.3.0-beta.1", + "@airgap/beacon-utils": "4.3.0-beta.1", "@walletconnect/utils": "2.11.2", "qrcode-svg": "^1.1.0", "solid-js": "^1.7.11" } }, "node_modules/@airgap/beacon-utils": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-utils/-/beacon-utils-4.2.2.tgz", - "integrity": "sha512-TwDJ8O8/Lky6qdpczVJKWACu3BWEE49hMyCylXYJPnLlCZtpaqByD6awc+BEooJkC2c8Bj4V3JfcwBJGNzMs6w==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-utils/-/beacon-utils-4.3.0-beta.1.tgz", + "integrity": "sha512-fCcvJi1pQxNJk23VLkg0IgHUj2H0zs1izcIo89BCP7pN44f3UNc/ZP3syHAbGMIi3EWAM80QAC6yOnGgZmMJAg==", "license": "ISC", "dependencies": { "@stablelib/ed25519": "^1.0.3", @@ -366,14 +367,14 @@ } }, "node_modules/@airgap/beacon-wallet": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@airgap/beacon-wallet/-/beacon-wallet-4.2.2.tgz", - "integrity": "sha512-UnyxUg++ip8Hqfa7lnnZH623MraPfGtMqGLt22aYvZHrRA9ypBcJRVhBqWDeD3WUdGrVdSjtCQ0I+mHn7jIGSg==", + "version": "4.3.0-beta.1", + "resolved": "https://registry.npmjs.org/@airgap/beacon-wallet/-/beacon-wallet-4.3.0-beta.1.tgz", + "integrity": "sha512-+Eqm9rskQUB0/csEU6UqTaOtXIsX2+pWdf1rHIkRZAiW2YxlgUAblR5FfmLUYnuMRV5x6nEzjEsZmX3ZmRsP1A==", "license": "ISC", "dependencies": { - "@airgap/beacon-core": "4.2.2", - "@airgap/beacon-transport-matrix": "4.2.2", - "@airgap/beacon-transport-postmessage": "4.2.2" + "@airgap/beacon-core": "4.3.0-beta.1", + "@airgap/beacon-transport-matrix": "4.3.0-beta.1", + "@airgap/beacon-transport-postmessage": "4.3.0-beta.1" } }, "node_modules/@airgap/sapling-wasm": { @@ -8006,9 +8007,9 @@ } }, "node_modules/@walletconnect/relay-api": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.10.tgz", - "integrity": "sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.11.tgz", + "integrity": "sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==", "license": "MIT", "dependencies": { "@walletconnect/jsonrpc-types": "^1.0.2" @@ -9387,6 +9388,33 @@ "node": ">=8" } }, + "node_modules/broadcast-channel": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/broadcast-channel/-/broadcast-channel-7.0.0.tgz", + "integrity": "sha512-a2tW0Ia1pajcPBOGUF2jXlDnvE9d5/dg6BG9h60OmRUcZVr/veUrU8vEQFwwQIhwG3KVzYwSk3v2nRRGFgQDXQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "7.23.4", + "oblivious-set": "1.4.0", + "p-queue": "6.6.2", + "unload": "2.4.1" + }, + "funding": { + "url": "https://github.com/sponsors/pubkey" + } + }, + "node_modules/broadcast-channel/node_modules/@babel/runtime": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.4.tgz", + "integrity": "sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", @@ -21161,6 +21189,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/oblivious-set": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.4.0.tgz", + "integrity": "sha512-szyd0ou0T8nsAqHtprRcP3WidfsN1TnAR5yWXf2mFCEr5ek3LEOkT6EZ/92Xfs74HIdyhG5WkGxIssMU0jBaeg==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, "node_modules/ofetch": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.3.4.tgz", @@ -21341,7 +21378,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -21451,7 +21487,6 @@ "version": "6.6.2", "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz", "integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==", - "dev": true, "license": "MIT", "dependencies": { "eventemitter3": "^4.0.4", @@ -21468,7 +21503,6 @@ "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "dev": true, "license": "MIT" }, "node_modules/p-reduce": { @@ -21485,7 +21519,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", - "dev": true, "license": "MIT", "dependencies": { "p-finally": "^1.0.0" @@ -21971,9 +22004,9 @@ } }, "node_modules/pkg-types": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.3.tgz", - "integrity": "sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.0.tgz", + "integrity": "sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==", "license": "MIT", "dependencies": { "confbox": "^0.1.7", @@ -22894,7 +22927,6 @@ "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "dev": true, "license": "MIT" }, "node_modules/regenerator-transform": { @@ -24318,9 +24350,9 @@ } }, "node_modules/solid-js": { - "version": "1.8.19", - "resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.8.19.tgz", - "integrity": "sha512-h8z/TvTQYsf894LM9Iau/ZW2iAKrCzAWDwjPhMcXnonmW1OIIihc28wp82b1wwei1p81fH5+gnfNOe8RzLbDRQ==", + "version": "1.8.21", + "resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.8.21.tgz", + "integrity": "sha512-FHUGdoo7GVa1BTpGh/4UtwIISde0vSXoqNB6KFpHiTgkIY959tmCJ7NYQAWDfScBfnpoMGZR8lFz0DiwW/gFlw==", "license": "MIT", "dependencies": { "csstype": "^3.1.0", @@ -26182,6 +26214,15 @@ "node": ">= 10.0.0" } }, + "node_modules/unload": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/unload/-/unload-2.4.1.tgz", + "integrity": "sha512-IViSAm8Z3sRBYA+9wc0fLQmU9Nrxb16rcDmIiR6Y9LJSZzI7QY5QsDhqPpKOjAn0O9/kfK1TfNEMMAGPTIraPw==", + "license": "Apache-2.0", + "funding": { + "url": "https://github.com/sponsors/pubkey" + } + }, "node_modules/unstorage": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.10.2.tgz", @@ -27390,7 +27431,7 @@ "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@airgap/beacon-dapp": "^4.2.2", + "@airgap/beacon-dapp": "^4.3.0-beta.1", "@taquito/core": "^20.0.1", "@taquito/taquito": "^20.0.1" }, diff --git a/packages/taquito-beacon-wallet/package.json b/packages/taquito-beacon-wallet/package.json index dfc1161cf4..db2857621e 100644 --- a/packages/taquito-beacon-wallet/package.json +++ b/packages/taquito-beacon-wallet/package.json @@ -67,7 +67,7 @@ ] }, "dependencies": { - "@airgap/beacon-dapp": "^4.2.2", + "@airgap/beacon-dapp": "^4.3.0-beta.1", "@taquito/core": "^20.0.1", "@taquito/taquito": "^20.0.1" }, diff --git a/packages/taquito-beacon-wallet/src/taquito-beacon-wallet.ts b/packages/taquito-beacon-wallet/src/taquito-beacon-wallet.ts index fcf165e4f0..44730b064f 100644 --- a/packages/taquito-beacon-wallet/src/taquito-beacon-wallet.ts +++ b/packages/taquito-beacon-wallet/src/taquito-beacon-wallet.ts @@ -10,8 +10,6 @@ import { PermissionScope, getDAppClientInstance, SigningType, - AccountInfo, - BeaconEvent, } from '@airgap/beacon-dapp'; import { BeaconWalletNotInitialized, MissingRequiredScopes } from './errors'; import toBuffer from 'typedarray-to-buffer'; @@ -39,14 +37,9 @@ export { BeaconWalletNotInitialized, MissingRequiredScopes } from './errors'; export class BeaconWallet implements WalletProvider { public client: DAppClient; - public account: AccountInfo | undefined; constructor(options: DAppClientOptions) { this.client = getDAppClientInstance(options); - // Subscribe to the active account set event, this will update when there are account changes happening in the dApp - this.client.subscribeToEvent(BeaconEvent.ACTIVE_ACCOUNT_SET, async (data) => { - this.account = data; - }); } private validateRequiredScopesOrFail( @@ -71,17 +64,19 @@ export class BeaconWallet implements WalletProvider { } async getPKH() { - if (!this.account) { + const account = await this.client.getActiveAccount(); + if (!account) { throw new BeaconWalletNotInitialized(); } - return this.account.address; + return account.address; } async getPK() { - if (!this.account) { + const account = await this.client.getActiveAccount(); + if (!account) { throw new BeaconWalletNotInitialized(); } - return this.account.publicKey ?? ''; + return account.publicKey ?? ''; } async mapTransferParamsToWalletParams(params: () => Promise) { @@ -243,10 +238,11 @@ export class BeaconWallet implements WalletProvider { } async sendOperations(params: any[]) { - if (!this.account) { + const account = await this.client.getActiveAccount(); + if (!account) { throw new BeaconWalletNotInitialized(); } - const permissions = this.account.scopes; + const permissions = account.scopes; this.validateRequiredScopesOrFail(permissions, [PermissionScope.OPERATION_REQUEST]); const { transactionHash } = await this.client.requestOperation({ operationDetails: params }); diff --git a/website/package-lock.json b/website/package-lock.json index 01c44d8bdd..2cebc59f04 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -67,6 +67,7 @@ } }, "../packages/taquito": { + "name": "@taquito/taquito", "version": "20.0.1", "hasInstallScript": true, "license": "Apache-2.0", @@ -124,10 +125,11 @@ } }, "../packages/taquito-beacon-wallet": { + "name": "@taquito/beacon-wallet", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { - "@airgap/beacon-dapp": "^4.2.2", + "@airgap/beacon-dapp": "^4.3.0-beta.1", "@taquito/core": "^20.0.1", "@taquito/taquito": "^20.0.1" }, @@ -168,6 +170,7 @@ } }, "../packages/taquito-core": { + "name": "@taquito/core", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -183,6 +186,7 @@ } }, "../packages/taquito-http-utils": { + "name": "@taquito/http-utils", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -223,6 +227,7 @@ } }, "../packages/taquito-ledger-signer": { + "name": "@taquito/ledger-signer", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -266,6 +271,7 @@ } }, "../packages/taquito-michel-codec": { + "name": "@taquito/michel-codec", "version": "20.0.1", "license": "MIT", "dependencies": { @@ -298,6 +304,7 @@ } }, "../packages/taquito-michelson-encoder": { + "name": "@taquito/michelson-encoder", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -339,6 +346,7 @@ } }, "../packages/taquito-remote-signer": { + "name": "@taquito/remote-signer", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -383,6 +391,7 @@ } }, "../packages/taquito-rpc": { + "name": "@taquito/rpc", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -423,6 +432,7 @@ } }, "../packages/taquito-signer": { + "name": "@taquito/signer", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -476,6 +486,7 @@ } }, "../packages/taquito-tzip12": { + "name": "@taquito/tzip12", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -517,6 +528,7 @@ } }, "../packages/taquito-tzip16": { + "name": "@taquito/tzip16", "version": "20.0.1", "license": "Apache-2.0", "dependencies": { @@ -563,6 +575,7 @@ } }, "../packages/taquito-utils": { + "name": "@taquito/utils", "version": "20.0.1", "license": "Apache-2.0", "dependencies": {