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

Wallet should create a feePurse and apply it to Zoe so that a user can pay fees #3669

Closed
katelynsills opened this issue Aug 12, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request wallet Zoe package: Zoe

Comments

@katelynsills
Copy link
Contributor

For the user to be able to pay fees, the user's wallet needs to have a feePurse with RUN in it.

In #3663, Zoe will be changed to take a feePurse as the first argument to install, offer, startInstance, and getPublicFacet. #3663 has a method applyFeePurse which partially applies a feePurse, producing the original Zoe API.

When Zoe is passed to the wallet, the wallet should:

  1. Make a feePurse with E(zoe).getFeePurse()
  2. Add the feePurse to the user's list of purses
  3. Allow the user to transfer RUN to the feePurse (this should fall out of purse functionality in the wallet)
  4. Apply the feePurse to Zoe, so that the Zoe that the wallet interacts with is the one with the feePurse applied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wallet Zoe package: Zoe
Projects
None yet
Development

No branches or pull requests

2 participants