mirror of
https://github.com/fluencelabs/examples
synced 2025-06-26 08:11:37 +00:00
Update all js-related examples to the latest version of JS SDK and Aqua compiler (#20)
This commit is contained in:
12
js-sdk-examples/hello-world/aqua/hello-world.aqua
Normal file
12
js-sdk-examples/hello-world/aqua/hello-world.aqua
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
Reference in New Issue
Block a user