Skip to content

Commit

Permalink
Update wallet connect packages (#285)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler McDonald <[email protected]>
Co-authored-by: Tyler McDonald <[email protected]>
  • Loading branch information
hgraphql and tmctl authored Oct 16, 2024
1 parent 740eefc commit 3053319
Show file tree
Hide file tree
Showing 19 changed files with 90 additions and 224 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ use this library’s functions to easily create and handle requests for the Hede

### Example code

- [Typescript dApp example code](src/examples/typescript/dapp/main.ts)
- [Typescript Wallet example code](src/examples/typescript/wallet/main.ts)
- [Typescript dApp example code](demos/typescript/dapp/main.ts)
- [Typescript Wallet example code](demos/typescript/wallet/main.ts)
- [React dApp example code](demos/react-dapp)


Expand Down Expand Up @@ -288,7 +288,7 @@ example useful for testing and development while integrating WalletConnect and H
The docs site utilizes [Typedoc](https://typedoc.org) to generate a library documentation site
at <https://wc.hgraph.app/docs/>
The demo source code lives in `./src/examples/typescript` and is available at
The demo source code lives in `./demos/typescript` and is available at
<https://wc.hgraph.app>
## Passing tests
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
269 changes: 67 additions & 202 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"@types/jest": "^29.5.3",
"@types/node": "^22.5.0",
"@types/react-dom": "^18.2.21",
"@walletconnect/modal": "^2.6.2",
"@walletconnect/sign-client": "^2.14.0",
"@walletconnect/types": "^2.14.0",
"@walletconnect/modal": "^2.7.0",
"@walletconnect/sign-client": "^2.17.0",
"@walletconnect/types": "^2.17.0",
"concurrently": "^9.0.1",
"esbuild": "^0.24.0",
"esbuild-plugin-copy": "^2.1.1",
Expand All @@ -44,12 +44,13 @@
},
"scripts": {
"build": "rimraf dist && tsc",
"build:example": "node scripts/examples/build.mjs",
"build:demos": "node scripts/demos/build.mjs",
"build:ts-demo": "node scripts/demos/typescript/build.mjs",
"build:react-demo": "node scripts/demos/react/build.mjs",
"build:docs": "typedoc --options typedoc.json",
"watch": "nodemon --watch src/lib/ --ext ts --exec \"npm run build\"",
"dev": "rimraf dist && npm run build && concurrently --raw \"npm run watch\" \"node scripts/examples/dev.mjs\"",
"dev:demos": "rimraf dist && npm run build && concurrently --raw \"npm run watch\" \"node scripts/demos/dev.mjs\"",
"dev": "npm run dev:ts-demo",
"dev:ts-demo": "rimraf dist && npm run build && concurrently --raw \"npm run watch\" \"node scripts/demos/typescript/dev.mjs\"",
"dev:react-demo": "rimraf dist && npm run build && concurrently --raw \"npm run watch\" \"node scripts/demos/react/dev.mjs\"",
"test": "jest",
"test:connect": "jest --testMatch '**/DAppConnector.test.ts' --verbose",
"test:signer": "jest --testMatch '**/DAppSigner.test.ts' --verbose",
Expand All @@ -62,8 +63,8 @@
"peerDependencies": {
"@hashgraph/sdk": "^2.40.0",
"@walletconnect/qrcode-modal": "^1.8.0",
"@walletconnect/types": "^2.11.0",
"@walletconnect/utils": "^2.11.0",
"@walletconnect/web3wallet": "^1.9.3"
"@walletconnect/types": "^2.17.0",
"@walletconnect/utils": "^2.17.0",
"@walletconnect/web3wallet": "^1.16.0"
}
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ export const config = {
plugins: [
copy({
assets: {
from: ['src/examples/typescript/**/*.(html|css|ico|jpg|png)'],
from: ['demos/typescript/**/*.(html|css|ico|jpg|png)'],
to: ['./'],
},
watch: true, // for ../dev.mjs
}),
],
outdir: 'dist/examples/typescript',
outdir: 'dist/demos/typescript',
entryPoints: [
'src/examples/typescript/main.ts',
'src/examples/typescript/dapp/main.ts',
'src/examples/typescript/wallet/main.ts',
'demos/typescript/main.ts',
'demos/typescript/dapp/main.ts',
'demos/typescript/wallet/main.ts',
],
define: {
'process.env.dappUrl': '"https://wc.hgraph.app/dapp/index.html"',
Expand Down
4 changes: 2 additions & 2 deletions scripts/examples/dev.mjs → scripts/demos/typescript/dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ let ctx8081 = await esbuild.context(devConfig)
*/
async function main() {
const server1 = await ctx8080.serve({
servedir: 'dist/examples/typescript',
servedir: 'dist/demos/typescript',
host: 'localhost',
port: 8080,
})
const server2 = await ctx8081.serve({
servedir: 'dist/examples/typescript',
servedir: 'dist/demos/typescript',
host: 'localhost',
port: 8081,
})
Expand Down
2 changes: 1 addition & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"entryPoints": ["./src/lib"],
"plugin": ["typedoc-theme-hierarchy"],
"theme": "hierarchy",
"out": "dist/examples/typescript/docs",
"out": "dist/demos/typescript/docs",
"sourceLinkExternal": true,
"basePath": "./docs"
}

0 comments on commit 3053319

Please sign in to comment.