WalletConnect integration

Awesome!

Only for the initial pairing between Syrius mobile and the dApp:

  • Syrius mobile deep link support: fortunately we use the app_links package that supports Android and iOS out of the box
  • Mobile camera support: for the desktop implementation we use an on-screen QR scanner, but for mobile you can use ai_barcode_scanner
  • Copy to clipboard: already implemented

If you have any questions or need any help, please dm me!

@aliencoder not sure if this is already mentioned somewhere else, but I used s y r i u s v0.0.7 to create a pair using the WalletConnect button on the mainnet bridge website. I cannot connect after removing the pair from s y r i u s.

When trying to connect using the WalletConnect button it just waits for approval from the wallet. The wallet does not have a pair and does nothing.

How can I create a new pair?

Basically you disconnect and you try to reconnect again? Did you refresh the browser window? Feel free to dm me so we can fix this bug. We have persistent logs now (in the syrius folder), we should check them.

I’ve updated the walletconnect_flutter_v2 to latest version v2.0.12 and now I’m handling the onSessionProposalError callback by refreshing the WalletConnectSessionsBloc.

I was unable to reproduce the bug.

You mentioned that “typing in localStorage.clear() in the console solved the issue”.

Please find the latest build here.

If the Syrius wallet freezes unexpectedly, please update to the latest version.

It is caused by the onRelayClientDisconnect callback that gets called every millisecond. The wallet tries to establish a connection, but without success.

It also triggers the logger, which involves writing on disk (keeping the disk busy and freezing the wallet).

@mehowbrainz experienced this earlier. He couldn’t add a node, an action that requires writing on disk.

3 Likes

When do we think the release will be finalized?

Are you planning to submit 0.0.7 to the official Zenon repo (if not already)?

99% final I guess.

Here is the pull request.

1 Like

Maybe they are waiting for all bugs to be squashed. Seems like we are very close to that.

2 Likes

I’ve added support for QR scanning using the MacOS built-in camera (it works with Android and iOS out-of-the-box, @DrBlaze_21 please look at the source code). For Windows I’ll wait for the official camera implementation.

Download the latest build here.

If no bugs are present, I’ll create a new phase to unlock the remaining funds from AZ.

4 Likes

Latest release works perfectly here on MacOS M1. No bugs :clap:

3 Likes
  • Fixed the session refresh bug
  • Updated WalletConnect library to v2.0.14

Download the latest build.

3 Likes

Anyone running this latest build? I can’t pair to the NoM Bridge website.

I’m successfully connected to both the bridge and the demo dApp.

When you see relay: Instance of 'Relay', active: false in the logs, it means that Syrius cannot establish a connection to the relay server operated by the WalletConnect team.

Can someone help us debug the issue? I think the relay server is causing this issue.

Other relevant issue.

I’ll try later today.

1 Like

I have massively refactored the WalletConnect integration.

@mehowbrainz please try the latest version.

Hope it solves all the remaining issues.

4 Likes

hey aliencoder

testing now

have lots of notifications on open:

image

(looks like the entire history of the wallet). Also can’t mass clear, have to press ‘x’ on each one individually?

Also took a while (30-40 seconds) to initialize the embedded node and continue synching on first launch (overwriting previous version of 0.0.7). Subsequent launches were normal and quick.

Will test Wallet Connect shortly

I guess we’ll need to add this feature as well.

What OS?

Hope everything is fine now.

Win11 x64, had spinning wheels for a while and grey synching circle but then came good when it turned orange

Will report back re Wallet Connect in a couple hours when I get home

Ok so when on the bridge website, attempting to trigger WalletConnect from the browser didn’t seem to work

Selecting Syrius here:

image

Then get this:

I had Syrius open already, going to the WalletConnect tab doesn’t show any prompts.

Scanning with the QR code works though.

Need to transfer some Eth first to finish off the testing

Did you try with the mainnet or testnet bridge? Please try with the testnet version.

1 Like