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

Contract creator pays for all execution in the ZCFVat #3685

Closed
katelynsills opened this issue Aug 14, 2021 · 1 comment
Closed

Contract creator pays for all execution in the ZCFVat #3685

katelynsills opened this issue Aug 14, 2021 · 1 comment
Assignees
Labels
Zoe package: Zoe

Comments

@katelynsills
Copy link
Contributor

The previous issues in #3294 changed the API of Zoe such that fees can be easily charged.

Now it's time to charge for all of the execution that occurs in the ZCFVat, and hook up to the kernel-level meter. This requires connecting the feePurse (which the contract creator supplies when the contract creator calls E(zoe).startInstance) to the meter refill process, and ensuring that the correct fees are charged when the meter is refilled. If the meter cannot be refilled, the ZCFVat should be terminated.

Tests

Unit tests of the meter refill process with a mocked meter.
Swingset tests of the real kernel meter ensuring that when the notification threshold is reached, the meter is refilled.

@katelynsills
Copy link
Contributor Author

Closed in #3319

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Zoe package: Zoe
Projects
None yet
Development

No branches or pull requests

1 participant