mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 14:40:17 +00:00
20 lines
425 B
Plaintext
20 lines
425 B
Plaintext
import "@fluencelabs/aqua-ipfs/ipfs.aqua"
|
|
|
|
service Console("run-console"):
|
|
print(res: IpfsGetResult)
|
|
|
|
service ConsoleOp("run-console"):
|
|
print(arr: []string)
|
|
|
|
|
|
func something(node: string) -> string:
|
|
service_id: *string
|
|
on HOST_PEER_ID:
|
|
res <- Ipfs.get("1234")
|
|
if res.error == "":
|
|
service_id <<- "0x"
|
|
else:
|
|
service_id <<- "1x"
|
|
ConsoleOp.print(service_id)
|
|
Console.print(res)
|
|
<- service_id! |