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
