Files
quixos-protocol/test/fixtures/local-first-composite/CommentRuntime.qx
T

12 lines
563 B
Plaintext

external atom Document id "atom:reader:document";
external atom Comment id "atom:reader:comment";
import interface CommentData;
type CommentSeed = record { content: record { text: string; tags: list<string>; }; };
package CommentRuntime id "package:comment-runtime" revision "package:comment-runtime@1" {
operation prepareComment id "comment:prepare"
: bool -> atom-ref<Comment> mode call execution transaction targets [browser, server]
receiver atom Document requires {
creation comment id "comment:prepare:comment" : Comment input CommentSeed;
};
}