🐝 Alby support - #155
🐝 Alby support#155louisinger wants to merge 26 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@louisinger there's some bug on connect: Screen.Recording.2023-07-19.at.15.11.07.mov |
|
Apply this diff to fix building errors: |
Got it, the button is always saying "Connect", even after Marina is already connected. |
Yeah this is because Alby does have any "disconnect" behavior (you can disconnect an app but only from the extension settings) so beside that, it raises some UX questions:
|
|
Having a periodic check of the "wallet" connection could be helpful (ie. on component/page mount?) |
it should be the case. we check the connected status in 3 cases:
FYI Alby has also an "auto-enable" behavior. Thus if the wallet is disable for any reasons and then the app calls the provider, Alby extension will first ask the user to enable the wallet (so will show two popups). |
| // Wallet could know about contracts that local storage doesn't | ||
| // This could happen if the user is using more than one device | ||
| // In this case, we will add the unknown contracts into storage | ||
| const syncContractsWithMarina = async () => { |
There was a problem hiding this comment.
@tiero @easter-monolith I've commented that part because Alby is not persisting any scriptPubKey or contract parameters related to the covenant. So impossible to "recover contracts from wallet coins". Should be possible later if covenant parameters are on-chain
There was a problem hiding this comment.
We could eventually address later a way to also import contract from the JSON backup file we allow to download
There was a problem hiding this comment.
2ea4f48 reverts sync with Marina using an optional Wallet method getContracts.
|
When I reload the app without any wallet connected:
|
Signed-off-by: Louis Singer <louis@vulpem.com>
Alby was updated to version 3.1.1 on Firefox. Are you able to test on it? Thanks. |
Tested on Firefox: it works fine ✔️ |
So time to merge? |
|
Can't connect Alby with Chrome. Replicable on https://app-r7mz6ub4u-fuji-money.vercel.app/dashboard (preview deployment for this PR)
Not sure if the problem is on Fuji's side or Alby's @bitcoinuser any big change on Liquid between these 2 versions? Screen.Recording.2023-10-12.at.17.45.29.mov |
|
@louisinger any chance you are checking the internal ".enabled" property? Ideally the flow should be: if |
|
tACK
|
|
When this will be merged? Thanks. |



Multiple wallets X fuji-app
Walletinterface layer +MarinaWallet&AlbyWalletimplementations. This is only a liquid wallet related interface. webln should be handled in another part, this PR only works withwindow.liquidprovider injected by AlbyWalletContextnow returns a list ofwallets(the connected wallets)networkis now an app variable (switch via settings button)Dashboardshows aggregated wallets data (sum balances, concat contracts & activities).Mintlets you choose the wallet to use viachannel/liquidroute. the selected wallet will provide collaterals and receive the fujis.Close(redeem) allows you to select the wallet that will redeem the collateral. The selected wallet will provide fujis to burn and receive the collateral. Even if the collateral is initially locked by another wallet. (Thus, you can redeem a coin owned by Alby but using Marina - and vice versa)Screenshots
Borrow form warning toasts:

Liquid channels with Alby & marina installed and connected:

Several wallets balances:

it closes #131
Please @tiero @easter-monolith review