trust-graph/aqua/misc.aqua

16 lines
356 B
Plaintext
Raw Normal View History

2022-02-04 18:45:37 +03:00
import "trust-graph.aqua"
2022-02-04 20:00:49 +03:00
alias Error: string
2022-02-04 18:45:37 +03:00
-- helpers for isFluencePeer
service TrustOp("op"):
array_length(a: []Trust) -> u32
service BoolOp("op"):
array_length(a: []bool) -> u32
-- check if error is not nil and append to error_stream
func append_error(error_stream: *Error, error: ?Error):
if error != nil:
error_stream <<- error!