Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Provision Smart Wallet Component #78

Closed
samsiegart opened this issue Jan 30, 2024 · 2 comments · Fixed by #99
Closed

Create Provision Smart Wallet Component #78

samsiegart opened this issue Jan 30, 2024 · 2 comments · Fixed by #99
Assignees
Labels
enhancement New feature or request

Comments

@samsiegart
Copy link
Contributor

samsiegart commented Jan 30, 2024

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:

  • Automatically when the user makes their first offer, which deducts 1 IST (subject to chain params) from their account (and gives back 0.25)
  • Through a provision message signed by the user, which deducts 10 BLD (subject to chain params) from their account (and gives back 0.25 IST) (See below - no longer a requirement)

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
Copy link

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
Copy link

@samsiegart This component should include IST balance, and 'Get IST' button to Leap elements modal features a la Agoric/dapp-psm#124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants