update aqua

This commit is contained in:
DieMyst
2021-06-22 12:29:01 +03:00
parent d6c69c2475
commit ec30c96ec4
24 changed files with 445 additions and 209 deletions

View File

@ -3,7 +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.6-148
* Aqua version: 0.1.7-152
*
*/
import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
@ -29,20 +29,17 @@ export async function betterMessage(client: FluenceClient, relay: string, config
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
(call %init_peer_id% ("getDataSrv" "relay") [] relay)
)
(call -relay- ("op" "identity") [])
(call -relay- ("op" "noop") [])
)
(xor
(call relay ("peer" "is_connected") [relay] isOnline)
(seq
(seq
(call -relay- ("op" "identity") [])
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
)
(call -relay- ("op" "identity") [])
(call -relay- ("op" "noop") [])
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
)
)
)
(call -relay- ("op" "identity") [])
(call -relay- ("op" "noop") [])
)
(xor
(match isOnline true