Skip to content

Commit

Permalink
feat: improved logging + handling
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kantor <[email protected]>
  • Loading branch information
kantorcodes committed Oct 31, 2024
1 parent f9842a6 commit b7262e7
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 95 deletions.
5 changes: 3 additions & 2 deletions demos/react-dapp/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
transactionToBase64String,
SignAndExecuteQueryParams,
ExecuteTransactionParams,
} from '@hashgraph/hedera-wallet-connect'
} from '../../../dist/src/index'

import React, { useEffect, useMemo, useState } from 'react'
import Modal from './components/Modal'
Expand Down Expand Up @@ -263,6 +263,7 @@ const App: React.FC = () => {

_dAppConnector.onSessionIframeCreated = (session) => {
setNewSession(session)
setSessions((prev) => [...prev, session])
}

_dAppConnector?.extensions?.forEach((extension) => {
Expand Down Expand Up @@ -643,4 +644,4 @@ const AccountSelector = ({ accounts, selectedAccount, onSelect }: AccountSelecto
</select>
</label>
)
}
}
4 changes: 2 additions & 2 deletions package-lock.json

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

144 changes: 72 additions & 72 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
{
"name": "@hashgraph/hedera-wallet-connect",
"version": "1.3.5",
"description": "A library to facilitate integrating Hedera with WalletConnect",
"repository": {
"type": "git",
"url": "git+https://github.com/hashgraph/hedera-wallet-connect.git"
},
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"author": "Hgraph <[email protected]>",
"keywords": [
"hedera",
"walletconnect",
"hashgraph"
],
"license": "Apache-2.0",
"devDependencies": {
"@hashgraph/hedera-wallet-connect": "^1.3.4",
"@swc/core": "^1.7.40",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.3",
"@types/node": "^22.5.0",
"@types/react-dom": "^18.2.21",
"@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",
"eslint-plugin-tsdoc": "^0.3.0",
"husky": "^9.0.6",
"jest": "^29.7.0",
"lint-staged": "^15.1.0",
"lokijs": "^1.5.12",
"nodemon": "^3.0.3",
"prettier": "^3.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"typedoc": "^0.26.3",
"typedoc-theme-hierarchy": "^4.1.2",
"typescript": "^5.2.2"
},
"scripts": {
"build": "rimraf dist && tsc",
"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": "npm run dev:ts-demo",
"dev:docs": "cd docs && npm run start",
"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",
"prepublishOnly": "rm -Rf dist && npm run build",
"prepare": "husky install",
"prettier:check": "prettier --check ./src/",
"prettier:fix": "prettier --write ./src/",
"prod:docs-docker": "sh docker-run.sh",
"test:sigMap": "jest --testMatch '**/SignatureMapHelpers.test.ts' --verbose"
},
"peerDependencies": {
"@hashgraph/sdk": "^2.40.0",
"@walletconnect/qrcode-modal": "^1.8.0",
"@walletconnect/types": "^2.17.0",
"@walletconnect/utils": "^2.17.0",
"@walletconnect/web3wallet": "^1.16.0"
}
}
"name": "@hashgraph/hedera-wallet-connect",
"version": "1.3.6",
"description": "A library to facilitate integrating Hedera with WalletConnect",
"repository": {
"type": "git",
"url": "git+https://github.com/hashgraph/hedera-wallet-connect.git"
},
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"author": "Hgraph <[email protected]>",
"keywords": [
"hedera",
"walletconnect",
"hashgraph"
],
"license": "Apache-2.0",
"devDependencies": {
"@hashgraph/hedera-wallet-connect": "^1.3.4",
"@swc/core": "^1.7.40",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.3",
"@types/node": "^22.5.0",
"@types/react-dom": "^18.2.21",
"@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",
"eslint-plugin-tsdoc": "^0.3.0",
"husky": "^9.0.6",
"jest": "^29.7.0",
"lint-staged": "^15.1.0",
"lokijs": "^1.5.12",
"nodemon": "^3.0.3",
"prettier": "^3.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"typedoc": "^0.26.3",
"typedoc-theme-hierarchy": "^4.1.2",
"typescript": "^5.2.2"
},
"scripts": {
"build": "rimraf dist && tsc",
"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": "npm run dev:ts-demo",
"dev:docs": "cd docs && npm run start",
"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",
"prepublishOnly": "rm -Rf dist && npm run build",
"prepare": "husky install",
"prettier:check": "prettier --check ./src/",
"prettier:fix": "prettier --write ./src/",
"prod:docs-docker": "sh docker-run.sh",
"test:sigMap": "jest --testMatch '**/SignatureMapHelpers.test.ts' --verbose"
},
"peerDependencies": {
"@hashgraph/sdk": "^2.40.0",
"@walletconnect/qrcode-modal": "^1.8.0",
"@walletconnect/types": "^2.17.0",
"@walletconnect/utils": "^2.17.0",
"@walletconnect/web3wallet": "^1.16.0"
}
}
Loading

0 comments on commit b7262e7

Please sign in to comment.