examples/fluence-js-examples/hello-world/aqua/hello-world.aqua

18 lines
367 B
Plaintext
Raw Normal View History

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