diff --git a/examples/typescript-full-stack/apps/client/package.json b/examples/typescript-full-stack/apps/client/package.json index 4c2a600..0232711 100644 --- a/examples/typescript-full-stack/apps/client/package.json +++ b/examples/typescript-full-stack/apps/client/package.json @@ -13,6 +13,6 @@ "vite": "^4.4.0" }, "dependencies": { - "@radixdlt/radix-dapp-toolkit": "0.6.1" + "@radixdlt/radix-dapp-toolkit": "0.7.1" } } diff --git a/examples/typescript-full-stack/apps/server/package.json b/examples/typescript-full-stack/apps/server/package.json index 2ca7887..8963917 100644 --- a/examples/typescript-full-stack/apps/server/package.json +++ b/examples/typescript-full-stack/apps/server/package.json @@ -9,7 +9,7 @@ }, "license": "MIT", "dependencies": { - "@radixdlt/rola": "0.2.1", + "@radixdlt/rola": "0.3.2", "@types/cors": "^2.8.13", "@types/elliptic": "^6.4.14", "@types/express": "^4.17.17", diff --git a/examples/typescript-full-stack/apps/server/src/index.ts b/examples/typescript-full-stack/apps/server/src/index.ts index 0fc6c58..518dab1 100644 --- a/examples/typescript-full-stack/apps/server/src/index.ts +++ b/examples/typescript-full-stack/apps/server/src/index.ts @@ -1,8 +1,7 @@ import express from 'express' import { secureRandom } from './secure-random' import cors from 'cors' -import { Rola } from '@radixdlt/rola' -import { SignedChallenge, RadixNetwork } from '@radixdlt/radix-dapp-toolkit' +import { Rola, SignedChallenge } from '@radixdlt/rola' import { ResultAsync } from 'neverthrow' const app = express() @@ -43,7 +42,7 @@ const { verifySignedChallenge } = Rola({ applicationName: 'Rola Full Stack Typescript Example', dAppDefinitionAddress: 'account_tdx_e_1285lfp3kwjnyu5esdsy7u9j0482tsw8fj3tnj95gjsgj6qa23yarx8', // address of the dApp definition - networkId: RadixNetwork.RCnetV3, // network id of the Radix network + networkId: 13, // network id of the Radix network expectedOrigin: 'http://localhost:4000', // origin of the client making the wallet request }) diff --git a/examples/typescript-full-stack/package-lock.json b/examples/typescript-full-stack/package-lock.json index 7e540e7..bb55ecd 100644 --- a/examples/typescript-full-stack/package-lock.json +++ b/examples/typescript-full-stack/package-lock.json @@ -17,18 +17,41 @@ "apps/client": { "version": "0.0.0", "dependencies": { - "@radixdlt/radix-dapp-toolkit": "0.6.1" + "@radixdlt/radix-dapp-toolkit": "0.7.1" }, "devDependencies": { "typescript": "^5.0.2", "vite": "^4.4.0" } }, + "apps/client/node_modules/@radixdlt/babylon-gateway-api-sdk": { + "version": "1.0.0-rc.3.1.2", + "resolved": "https://registry.npmjs.org/@radixdlt/babylon-gateway-api-sdk/-/babylon-gateway-api-sdk-1.0.0-rc.3.1.2.tgz", + "integrity": "sha512-YpPRLbFavJh5IjaKX8lRKnb8xXnQ+n7Z5hDmhJDPPYUp7zwmxc/YWtSTiC0kTpNtFeDjIgE1f+Ed1j8cUNAlbg==" + }, + "apps/client/node_modules/@radixdlt/radix-dapp-toolkit": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@radixdlt/radix-dapp-toolkit/-/radix-dapp-toolkit-0.7.1.tgz", + "integrity": "sha512-buEpMxMZz24betg+qz6Sujk6/YnQn0yaJtQYRVC+tlLLYCPnG8d3EMvPFODJFUhWqnOJH6MJhU3Lhb38mlholQ==", + "dependencies": { + "@radixdlt/babylon-gateway-api-sdk": "1.0.0-rc.3.1.2", + "@radixdlt/connect-button": "0.13.4", + "@radixdlt/wallet-sdk": "0.10.1-alpha.1", + "immer": "^10.0.2", + "lodash.isequal": "^4.5.0", + "neverthrow": "^6.0.0", + "rxjs": "^7.8.1", + "zod": "^3.21.4" + }, + "engines": { + "node": ">=16.0.0" + } + }, "apps/server": { "version": "0.0.0", "license": "MIT", "dependencies": { - "@radixdlt/rola": "0.2.1", + "@radixdlt/rola": "0.3.2", "@types/cors": "^2.8.13", "@types/elliptic": "^6.4.14", "@types/express": "^4.17.17", @@ -495,28 +518,10 @@ "node": ">=16.0.0" } }, - "node_modules/@radixdlt/radix-dapp-toolkit": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@radixdlt/radix-dapp-toolkit/-/radix-dapp-toolkit-0.6.1.tgz", - "integrity": "sha512-rVU71RYbF8ZkBMWtzN2Gr1PrcdSdAjxGUBeDBq/hB2aAo9hvOjURbvoQWTylEJznOQfINQM9IWVHNSfAUuCZ6g==", - "dependencies": { - "@radixdlt/babylon-gateway-api-sdk": "1.0.0-rc.3.2", - "@radixdlt/connect-button": "0.13.4", - "@radixdlt/wallet-sdk": "0.10.1-alpha.1", - "immer": "^10.0.2", - "lodash.isequal": "^4.5.0", - "neverthrow": "^6.0.0", - "rxjs": "^7.8.1", - "zod": "^3.21.4" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/@radixdlt/radix-engine-toolkit": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@radixdlt/radix-engine-toolkit/-/radix-engine-toolkit-0.3.0.tgz", - "integrity": "sha512-bODSTuAICMW2MT2R6IcUvacIek8AHBfYh4bABFQliP+FXsjRk+3MNQbGACuEGLuU9jfWrandZUXADgKPs6Wniw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@radixdlt/radix-engine-toolkit/-/radix-engine-toolkit-0.4.0.tgz", + "integrity": "sha512-IfNXfqPYqk6yZoQS+YFx9/uHLLAdCP82BSe+6gi4nq0sGnP2N9R+p6ak2bx6B+rhpasdlEdV2DMpYT2ihvrqRg==", "dependencies": { "@noble/ed25519": "2.0.0", "@noble/hashes": "1.3.0", @@ -530,12 +535,12 @@ } }, "node_modules/@radixdlt/rola": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@radixdlt/rola/-/rola-0.2.1.tgz", - "integrity": "sha512-9cuyZxfC/CymKd7WKYDbjpsl4+jh8ERJtP4JVsd+VaBrJ56rA+fpowfwXMH4u1t6bzouiIJ2WIQcR4mwGZIveQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@radixdlt/rola/-/rola-0.3.2.tgz", + "integrity": "sha512-oZ8HQ1cSVRwgW53CAKZcZJG8k5UhEjves/zFPAdcrsGJ/49v3J4jHHH9FKzObMWaADHWUvBWNfqIkygSSKenZw==", "dependencies": { - "@radixdlt/radix-dapp-toolkit": "0.6.1", - "@radixdlt/radix-engine-toolkit": "0.3.0", + "@radixdlt/babylon-gateway-api-sdk": "^1.0.0-rc.3.1.2", + "@radixdlt/radix-engine-toolkit": "0.4.0", "elliptic": "^6.5.4", "neverthrow": "^6.0.0" }, @@ -1801,9 +1806,9 @@ "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" }, "node_modules/node-gyp-build": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", - "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", + "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==", "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js",