Skip to content

Commit

Permalink
chore: update full stack example
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Sep 24, 2023
1 parent ba47d8a commit ac4f971
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 67 deletions.
2 changes: 1 addition & 1 deletion examples/typescript-full-stack/apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.4.0"
},
"dependencies": {
"@radixdlt/radix-dapp-toolkit": "0.7.1"
"@radixdlt/radix-dapp-toolkit": "1.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/typescript-full-stack/apps/client/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ document.querySelector<HTMLDivElement>('#app')!.innerHTML = `

const radixDappToolkit = RadixDappToolkit({
dAppDefinitionAddress:
'account_tdx_e_1285lfp3kwjnyu5esdsy7u9j0482tsw8fj3tnj95gjsgj6qa23yarx8',
networkId: RadixNetwork.RCnetV3,
'account_tdx_2_12yf9gd53yfep7a669fv2t3wm7nz9zeezwd04n02a433ker8vza6rhe',
networkId: RadixNetwork.Stokenet,
})

// Clear the dApp state for example purposes
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript-full-stack/apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"license": "MIT",
"dependencies": {
"@radixdlt/rola": "0.3.2",
"@radixdlt/rola": "1.0.0",
"@types/cors": "^2.8.13",
"@types/elliptic": "^6.4.14",
"@types/express": "^4.17.17",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript-full-stack/apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const challengeStore = ChallengeStore()
const { verifySignedChallenge } = Rola({
applicationName: 'Rola Full Stack Typescript Example',
dAppDefinitionAddress:
'account_tdx_e_1285lfp3kwjnyu5esdsy7u9j0482tsw8fj3tnj95gjsgj6qa23yarx8', // address of the dApp definition
networkId: 13, // network id of the Radix network
'account_tdx_2_12yf9gd53yfep7a669fv2t3wm7nz9zeezwd04n02a433ker8vza6rhe', // address of the dApp definition
networkId: 2, // network id of the Radix network
expectedOrigin: 'http://localhost:4000', // origin of the client making the wallet request
})

Expand Down
3 changes: 2 additions & 1 deletion examples/typescript-full-stack/apps/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"compilerOptions": {
"target": "ESNext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"module": "ESNext",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
Expand Down
115 changes: 55 additions & 60 deletions examples/typescript-full-stack/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac4f971

Please sign in to comment.