Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

Create Provision Smart Wallet Component #78

Closed samsiegart closed 5 months ago

samsiegart commented 8 months ago

What is the Problem Being Solved?

A common flow for dapps will be provisioning a smart wallet for users who have not used Agoric dapps before. The two ways to create a smart wallet are:

Dapp developers should have a way to easily facilitate this flow, perhaps through a dialog that shows the provisioning fee, or react hooks that tell them the provision status of the connected wallet.

Also, a convenient way to use leap elements to let the user acquire the necessary 1 IST would be useful.

otoole-brendan commented 7 months ago

Updated Requirements specifying that only auto-provisioning flow payable in IST to be supported/offered and not provisioning signer paying with BLD option.

From UI Components Requirements doc:

Requirements Follows the 1IST auto-provisioning flow already implemented on PSM and Vaults apps. That is - the wallet is auto-provisioned when wallet spend action occurs which deducts 1 IST from user (and deposits 0.25 IST). Should not include the 10BLD signing transaction flow as an option Dialog text should be easily customizable by developers Users should not be able to proceed with the transaction until they have a balance of at least 1IST (to save user from a failing transaction). ‘Proceed’ should illuminate as an option to the user once sufficient IST balance is reached.

otoole-brendan commented 6 months ago

@samsiegart This component should include IST balance, and 'Get IST' button to Leap elements modal features a la https://github.com/Agoric/dapp-psm/issues/124