mirror of
https://github.com/fluencelabs/examples
synced 2025-06-25 15:51:33 +00:00
Add network communication for hello-world example
This commit is contained in:
@ -1,5 +1,12 @@
|
||||
import Peer from "@fluencelabs/aqua-lib/builtin.aqua"
|
||||
|
||||
service HelloWorld("hello-world"):
|
||||
hello(str: string)
|
||||
|
||||
func sayHello():
|
||||
HelloWorld.hello("Hello, world!")
|
||||
HelloWorld.hello("Hello, world!")
|
||||
|
||||
func getRelayTime() -> u64:
|
||||
on HOST_PEER_ID:
|
||||
ts <- Peer.timestamp_ms()
|
||||
<- ts
|
||||
|
Reference in New Issue
Block a user