mirror of
https://github.com/fluencelabs/examples
synced 2025-06-29 09:41:33 +00:00
add auqa scripts and compile targets
This commit is contained in:
6
echo-greeter/aqua-scripts/echo.aqua
Normal file
6
echo-greeter/aqua-scripts/echo.aqua
Normal file
@ -0,0 +1,6 @@
|
||||
service Echo("service-id"):
|
||||
echo: []string -> []string
|
||||
|
||||
func echo(data: []string) -> []string:
|
||||
res <- Echo.echo(data)
|
||||
<- res
|
20
echo-greeter/aqua-scripts/echo_greeter.aqua
Normal file
20
echo-greeter/aqua-scripts/echo_greeter.aqua
Normal file
@ -0,0 +1,20 @@
|
||||
service Echo("service-id"):
|
||||
echo: []string -> []string
|
||||
|
||||
|
||||
service Greeting("service-id"):
|
||||
greeting: string, bool -> string
|
||||
|
||||
func seq_echo_greeter(data: []string, name: string, greeter: bool) -> []string:
|
||||
big_res: []string
|
||||
echo_res <- Echo.echo(data)
|
||||
for s <- echo_res:
|
||||
big_res.append(Greeting.greeting(s, greeter))
|
||||
<- big_res
|
||||
|
||||
func par_echo_greeter(data: []string, name: string, greeter: bool) -> []string:
|
||||
big_res: []string
|
||||
echo_res <- Echo.echo(data)
|
||||
for s <- echo_res par:
|
||||
big_res.append(Greeting.greeting(s, greeter))
|
||||
<- big_res
|
7
echo-greeter/aqua-scripts/greeter.aqua
Normal file
7
echo-greeter/aqua-scripts/greeter.aqua
Normal file
@ -0,0 +1,7 @@
|
||||
service Greeting("service-id"):
|
||||
greeting: string, bool -> string
|
||||
-- greeting: string -> string
|
||||
|
||||
func greeting(name: string, greeter:bool) -> string:
|
||||
res <- Greeting.greeting(name, greeter)
|
||||
<- res
|
Reference in New Issue
Block a user