mirror of
https://github.com/fluencelabs/trust-graph
synced 2024-12-04 23:30:19 +00:00
16 lines
356 B
Plaintext
16 lines
356 B
Plaintext
import "trust-graph.aqua"
|
|
|
|
alias Error: string
|
|
|
|
-- 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!
|