examples/fluence-js-examples/hello-world/aqua/hello-world.aqua
2021-10-20 22:03:31 +03:00

13 lines
263 B
Plaintext

import Peer from "@fluencelabs/aqua-lib/builtin.aqua"
service HelloWorld("hello-world"):
hello(str: string)
func sayHello():
HelloWorld.hello("Hello, world!")
func getRelayTime() -> u64:
on HOST_PEER_ID:
ts <- Peer.timestamp_ms()
<- ts