WIP: toybox: OCapN vats on workerd, with ingress and egress as capabilities #4

Draft
dckc wants to merge 13 commits from toybox into main
pull from: toybox
Showing only changes of commit 8025ec4b20 - Show all commits
+6 -1
View File
@@ -1,4 +1,9 @@
/** A counter whose count lives in the vat's storage. */ /**
* A counter whose count lives in the vat's storage.
*
* TODO: a durable Exo once vatPowers offers a zone, e.g.
* `zone.exoClass("Counter", undefined, () => ({ count: 0 }), { incr() { this.state.count += 1; return this.state.count; } })`
*/
export const buildRootObject = ({ Far, storage }) => export const buildRootObject = ({ Far, storage }) =>
Far("counterRoot", { Far("counterRoot", {
increment: () => { increment: () => {