Update fluence-js to 14.2 and aqua to 0.4.0-235 (#33)

This commit is contained in:
Pavel
2021-10-22 09:41:48 +03:00
committed by GitHub
parent 12230c9ccc
commit ad8e18f01c
39 changed files with 4409 additions and 5184 deletions

View File

@ -2,10 +2,15 @@ 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()