update topology

This commit is contained in:
DieMyst
2021-04-29 11:56:02 +03:00
parent 7a107188f7
commit 00b92812be
15 changed files with 401 additions and 66 deletions

View File

@ -3,6 +3,7 @@
* This file is auto-generated. Do not edit manually: changes may be erased.
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
* Aqua version: 0.1.1-SNAPSHOT
*
*/
import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
@ -25,7 +26,10 @@ export async function print(client: FluenceClient, str: string): Promise<void> {
)
(call %init_peer_id% ("println-service-id" "print") [str])
)
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error%])
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error%])
)
)
`,
@ -66,18 +70,27 @@ export async function callConstant(client: FluenceClient, cb: (arg0: string) =>
`
(xor
(seq
(call %init_peer_id% ("getDataSrv" "relay") [] relay)
(seq
(call %init_peer_id% ("getDataSrv" "relay") [] relay)
(call %init_peer_id% ("test" "getNum") [] n)
(xor
(match n 1
)
(xor
(match n 1
(call %init_peer_id% ("callbackSrv" "cb") ["non-default string"])
)
(seq
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% ("callbackSrv" "cb") ["non-default string"])
)
(call %init_peer_id% ("callbackSrv" "cb") ["non-default string"])
(call relay ("op" "identity") [])
)
)
)
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error%])
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error%])
)
)
`,