Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Conversation

@franfernandez20
Copy link
Contributor

The DAppConnector manages a list of signers to emit requested operations via Wallet Connect. Additionally, it simplifies the process of connecting, disconnecting, and restoring sessions by wrapping SignClient.

DAppSigner is ready to send a request to the wallet for an operation. Currently, it supports two operations - 'signMessages' and 'signTransaction'.

Added a new test to check the connection. It needs to be run with the --verbose option to be able to interact with the test (copy/paste the pairing string). The test:connector command for npm has been added.

The DAppConnector manages a list of signers to emit requested operations
via Wallet Connect. Additionally, it simplifies the process of
connecting, disconnecting, and restoring sessions by wrapping
SignClient.

DAppSigner is ready to send a request to the wallet for an operation.
Currently, it supports two operations - 'signMessages' and
'signTransaction'.

Added a new test to check the connection. It needs to be run with the
--verbose option to be able to interact with the test
(copy/paste the pairing string). The `test:connector` command for npm
has been added.
@hgraphql hgraphql self-requested a review October 23, 2023 21:09
Copy link
Contributor

@hgraphql hgraphql left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! As this is mainly new code vs. changes, I'm merging to keep us moving forward.

I noticed 1 dependency - lokijs that might not be needed

Thanks for documenting & writing types :)

"@types/jest": "^29.5.3",
"@walletconnect/types": "^2.9.2",
"jest": "^29.6.2",
"lokijs": "^1.5.12",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like this is being used in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is needed to run Wallet Connect libraries in NodeJS (to run tests). It is suggested by the WalletConnect package itself. Maybe we can remove this package as it has only added one simple test until we increase the number of tests.

@hgraphql hgraphql merged commit 42ae847 into hgraph-io:main Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants