mirror of
https://github.com/fluencelabs/examples
synced 2024-12-13 15:05:33 +00:00
13 lines
263 B
Plaintext
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
|