chore: Replace lock with wagmi#807
Conversation
|
In the modals it seem like Calibre font is not working can you reproduce that? Also we will need Starknet connector if we want merge this. |
|
@bonustrack you said in DM "I would try integrate first without Argent"? Fixed the modal font |
|
@samuveth we won't be able to merge this without Starknet support because it will cause 50% of the app to be non-functional. |
This reverts commit f546fbc.
|
@Sekhmet added back the ArgentX/Starknet connector. Please have a look |
|
@samuveth When I open the deployment here: https://bafybeicwfiiggbhy66b3ztq6ed3xkassephuuzcdo3zzmi4jsbhty5yru4.on.fleek.co/#/ it directly try to log me, I see connect wallet button loading. Can you reproduce? Also:
|
|
Publish a proposal, cast a vote, edit settings doesn't work for me it return this error: You can use this space to test, it use vanilla (ticket) strategy Support for EIP-6963 seam to work well, I've tried using both MetaMask and Rabbi chrome extension and it works. It would be great if we can support wallet logo or show a default logo instead of always MetaMask, we have a list of all wallet and image here: https://github.com/snapshot-labs/lock/blob/master/src/utils.ts Zerion should be added in the list.
|
|
I see also there is some increase in bundle size, biggest dependency is Safe SDK, is possible to lazy load it? |
Weird I see 8.43mb and 8.92mb. Don't see any way to lazy load it, also the SDK is used to detect the safe wallet which is needed to hide/show the connector and auto-connect when used as a safe app. |
|
Made a fix and tested with Metamask, WC, Coinbase. Also tried with ArgentX and got weird network error that isn't related I think, @Sekhmet can you help test argent? |
Can you rebase on latest master as on this branch we updated contracts and fixed Starknet related issue with sequencer being deprecated? This alone might fix it. |
|
Can we also remove loading on connect wallet when we open the app? |
It's connected to isConnecting. I suggest we do like on |
This is because wagmi calls |
|
We can reduce the bundle size by replacing etherjs with viem, which is smaller and is used by wagmi already. |
|
Hum this is problematic if providers aren't lazy loaded. |
|
Seems to be possible in v2, which isn't out of alpha yet I think. edit: beta not alpha |
|
I'm currently talking to wagmi if we can fix lazy loading connectors with v1 or v2. Putting this PR on standby for now |
|
Seems like I'll still be busy with boost but could pick this up afterwards |






Summary
Closes: snapshot-labs/sx-monorepo#125
Closes: #805
Closes: snapshot-labs/sx-monorepo#124
How to test
To-Do