mirror of
https://github.com/fluencelabs/examples
synced 2024-12-15 07:35:39 +00:00
18 lines
367 B
Plaintext
18 lines
367 B
Plaintext
import Peer from "@fluencelabs/aqua-lib/builtin.aqua"
|
|
|
|
service HelloWorld("hello-world"):
|
|
hello(str: string)
|
|
getFortune() -> string
|
|
|
|
func sayHello():
|
|
HelloWorld.hello("Hello, world!")
|
|
|
|
func tellFortune() -> string:
|
|
res <- HelloWorld.getFortune()
|
|
<- res
|
|
|
|
func getRelayTime() -> u64:
|
|
on HOST_PEER_ID:
|
|
ts <- Peer.timestamp_ms()
|
|
<- ts
|