mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-15 01:51:03 +00:00
timeouts, test for lng-119
This commit is contained in:
parent
8ee02073a1
commit
c86bde80d4
6
aqua/examples/functors.aqua
Normal file
6
aqua/examples/functors.aqua
Normal file
@ -0,0 +1,6 @@
|
||||
func lng119Bug() -> []u32:
|
||||
nums = [1,2,3,4,5]
|
||||
results: *u32
|
||||
results <<- 1
|
||||
join results[nums.length-5]
|
||||
<- results
|
@ -56,6 +56,7 @@ import {mathTest1Call, mathTest2Call} from '../examples/mathCall.js';
|
||||
import {lng58Bug} from '../compiled/examples/closures.js';
|
||||
import {config, isEphemeral} from '../config.js';
|
||||
import {bugLng79Call} from "../examples/canonCall.js";
|
||||
import {bugLng119Call} from "../examples/functorsCall";
|
||||
|
||||
var selfPeerId: string;
|
||||
var peer1: IFluenceClient;
|
||||
@ -420,7 +421,7 @@ describe('Testing examples', () => {
|
||||
expect(res1).toEqual(res2);
|
||||
expect(res2).toEqual(res3);
|
||||
expect(res3).toEqual(res4);
|
||||
}, 26000);
|
||||
}, 180000);
|
||||
|
||||
it('nestedFuncs.aqua', async () => {
|
||||
let nestedFuncsResult = await nestedFuncsCall();
|
||||
@ -436,12 +437,17 @@ describe('Testing examples', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it.skip('closures.aqua', async () => {
|
||||
it('functors.aqua LNG-119 bug', async () => {
|
||||
let result = await bugLng119Call();
|
||||
expect(result).toEqual([1]);
|
||||
});
|
||||
|
||||
it('closures.aqua', async () => {
|
||||
let closuresResult = await closuresCall();
|
||||
let res1 = config.externalAddressesRelay2;
|
||||
let res2 = ['in', config.externalAddressesRelay2[0]];
|
||||
expect(closuresResult).toEqual(['in', res1, res1, res2]);
|
||||
}, 60000);
|
||||
}, 20000);
|
||||
|
||||
// it('closures.aqua LNG-58 bug', async () => {
|
||||
// let res = await lng58Bug()
|
||||
@ -456,19 +462,19 @@ describe('Testing examples', () => {
|
||||
it('tryOtherwise.aqua', async () => {
|
||||
let tryOtherwiseResult = await tryOtherwiseCall(relayPeerId1);
|
||||
expect(tryOtherwiseResult).toBe('error');
|
||||
}, 10000);
|
||||
}, 20000);
|
||||
|
||||
it('tryCatch.aqua', async () => {
|
||||
let tryCatchResult = await tryCatchCall(relayPeerId1);
|
||||
expect(tryCatchResult).toHaveLength(2);
|
||||
expect(tryCatchResult[0]).toMatch(config.tryCatchError);
|
||||
expect(tryCatchResult[1]).toBe(config.externalAddressesRelay1[0]);
|
||||
});
|
||||
}, 20000);
|
||||
|
||||
it('coCall.aqua', async () => {
|
||||
let coCallResult = await coCall();
|
||||
expect(coCallResult).toEqual(config.externalAddressesRelay1);
|
||||
}, 15000);
|
||||
}, 60000);
|
||||
|
||||
it('passArgsCall.aqua', async () => {
|
||||
let passArgsResult = await passArgsCall();
|
||||
@ -508,7 +514,7 @@ describe('Testing examples', () => {
|
||||
it('join.aqua relay', async () => {
|
||||
let joinRelayCallResult = await joinIdxRelayCall(relayPeerId1);
|
||||
expect(joinRelayCallResult.length).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
}, 80000);
|
||||
|
||||
it('join.aqua network', async () => {
|
||||
let joinCallResult = await joinIdxCall(relayPeerId1);
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -102,17 +102,17 @@ export function bugLng79(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] stream_incr)
|
||||
(fold $stream s
|
||||
(fold $stream stream_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(ap stream_fold_var $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next stream_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -121,17 +121,17 @@ export function closureBig(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] p2Id-0_incr)
|
||||
(fold $p2Id-0 s
|
||||
(fold $p2Id-0 p2Id-0_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $p2Id-0_test)
|
||||
(ap p2Id-0_fold_var $p2Id-0_test)
|
||||
(canon %init_peer_id% $p2Id-0_test #p2Id-0_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #p2Id-0_iter_canon.length p2Id-0_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next p2Id-0_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -177,17 +177,17 @@ export function closureBig(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call peer2 ("math" "add") [0 1] p2Id_incr)
|
||||
(fold $p2Id s
|
||||
(fold $p2Id p2Id_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $p2Id_test)
|
||||
(ap p2Id_fold_var $p2Id_test)
|
||||
(canon peer2 $p2Id_test #p2Id_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #p2Id_iter_canon.length p2Id_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next p2Id_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -294,17 +294,17 @@ export function lng58Bug(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -237,8 +237,8 @@ export function callConstant(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("test" "createStr") [1] $res)
|
||||
(call %init_peer_id% ("op" "identity") ["ab"] $res)
|
||||
(call %init_peer_id% ("test" "createStr") [5] $res)
|
||||
(call %init_peer_id% ("op" "identity") ["default-str"] $res)
|
||||
)
|
||||
(canon %init_peer_id% $res #-res-fix-0)
|
||||
)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -85,17 +85,17 @@ export function getTwoResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [0 1] res_incr)
|
||||
(fold $res s
|
||||
(fold $res res_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $res_test)
|
||||
(ap res_fold_var $res_test)
|
||||
(canon node $res_test #res_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon.length res_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next res_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -114,17 +114,17 @@ export function getTwoResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [1 1] res_incr-0)
|
||||
(fold $res s
|
||||
(fold $res res_fold_var-0
|
||||
(seq
|
||||
(seq
|
||||
(ap s $res_test-0)
|
||||
(ap res_fold_var-0 $res_test-0)
|
||||
(canon node $res_test-0 #res_iter_canon-0)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon-0.length res_incr-0
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next res_fold_var-0)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -143,17 +143,17 @@ export function getTwoResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [2 1] res_incr-1)
|
||||
(fold $res s
|
||||
(fold $res res_fold_var-1
|
||||
(seq
|
||||
(seq
|
||||
(ap s $res_test-1)
|
||||
(ap res_fold_var-1 $res_test-1)
|
||||
(canon node $res_test-1 #res_iter_canon-1)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon-1.length res_incr-1
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next res_fold_var-1)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -604,17 +604,17 @@ export function ifCalc(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] res_incr)
|
||||
(fold $res s
|
||||
(fold $res res_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $res_test)
|
||||
(ap res_fold_var $res_test)
|
||||
(canon %init_peer_id% $res_test #res_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon.length res_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next res_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -114,17 +114,17 @@ export function ifCorrectXorWrap(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] service_id_incr)
|
||||
(fold $service_id s
|
||||
(fold $service_id service_id_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $service_id_test)
|
||||
(ap service_id_fold_var $service_id_test)
|
||||
(canon %init_peer_id% $service_id_test #service_id_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #service_id_iter_canon.length service_id_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next service_id_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -66,17 +66,17 @@ export function joinIdxLocal(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [idx 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(fold $nodes2 nodes2_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(ap nodes2_fold_var $nodes2_test)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next nodes2_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -199,17 +199,17 @@ export function joinIdxRelay(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call -relay- ("math" "add") [idx 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(fold $nodes2 nodes2_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(ap nodes2_fold_var $nodes2_test)
|
||||
(canon -relay- $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next nodes2_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -360,17 +360,17 @@ export function joinIdx(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [add 1] infos_incr)
|
||||
(fold $infos s
|
||||
(fold $infos infos_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $infos_test)
|
||||
(ap infos_fold_var $infos_test)
|
||||
(canon %init_peer_id% $infos_test #infos_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #infos_iter_canon.length infos_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next infos_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -398,17 +398,17 @@ export function joinIdx(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [add-1 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(fold $nodes2 nodes2_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(ap nodes2_fold_var $nodes2_test)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next nodes2_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -244,17 +244,17 @@ export function testTimeout(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [999 1] results_incr)
|
||||
(fold $results s
|
||||
(fold $results results_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $results_test)
|
||||
(ap results_fold_var $results_test)
|
||||
(canon %init_peer_id% $results_test #results_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #results_iter_canon.length results_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next results_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -281,17 +281,17 @@ export function testTimeout(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] timeout_incr)
|
||||
(fold $timeout s
|
||||
(fold $timeout timeout_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $timeout_test)
|
||||
(ap timeout_fold_var $timeout_test)
|
||||
(canon %init_peer_id% $timeout_test #timeout_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #timeout_iter_canon.length timeout_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next timeout_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -311,17 +311,17 @@ export function testTimeout(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -118,17 +118,17 @@ export function wait(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] successful_incr)
|
||||
(fold $successful s
|
||||
(fold $successful successful_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $successful_test)
|
||||
(ap successful_fold_var $successful_test)
|
||||
(canon %init_peer_id% $successful_test #successful_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #successful_iter_canon.length successful_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next successful_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -233,17 +233,17 @@ export function bugLNG60(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] successful_incr)
|
||||
(fold $successful s
|
||||
(fold $successful successful_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $successful_test)
|
||||
(ap successful_fold_var $successful_test)
|
||||
(canon %init_peer_id% $successful_test #successful_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #successful_iter_canon.length successful_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next successful_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -322,17 +322,17 @@ export function streamIntFunctor(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [arr.$.[0]! 1] stream_incr)
|
||||
(fold $stream s
|
||||
(fold $stream stream_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(ap stream_fold_var $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next stream_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -833,17 +833,17 @@ export function streamAssignment(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] stream_incr)
|
||||
(fold $stream s
|
||||
(fold $stream stream_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(ap stream_fold_var $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next stream_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -966,17 +966,17 @@ export function streamFunctor(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] stream_incr)
|
||||
(fold $stream s
|
||||
(fold $stream stream_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(ap stream_fold_var $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next stream_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -1189,17 +1189,17 @@ export function streamJoin(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [arr_length 1] streamJ_incr)
|
||||
(fold $streamJ s
|
||||
(fold $streamJ streamJ_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $streamJ_test)
|
||||
(ap streamJ_fold_var $streamJ_test)
|
||||
(canon %init_peer_id% $streamJ_test #streamJ_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #streamJ_iter_canon.length streamJ_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next streamJ_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -276,17 +276,17 @@ export function returnCanStream(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -374,17 +374,17 @@ export function bugLNG63_2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -409,17 +409,17 @@ export function bugLNG63_2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-0
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-0)
|
||||
(ap status_fold_var-0 $status_test-0)
|
||||
(canon %init_peer_id% $status_test-0 #status_iter_canon-0)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-0.length status_incr-0
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-0)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -449,17 +449,17 @@ export function bugLNG63_2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-1)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-1
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-1)
|
||||
(ap status_fold_var-1 $status_test-1)
|
||||
(canon %init_peer_id% $status_test-1 #status_iter_canon-1)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-1.length status_incr-1
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-1)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -479,17 +479,17 @@ export function bugLNG63_2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-2)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-2
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-2)
|
||||
(ap status_fold_var-2 $status_test-2)
|
||||
(canon %init_peer_id% $status_test-2 #status_iter_canon-2)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-2.length status_incr-2
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-2)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -593,17 +593,17 @@ export function bugLNG63(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -691,17 +691,17 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -726,17 +726,17 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-0
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-0)
|
||||
(ap status_fold_var-0 $status_test-0)
|
||||
(canon %init_peer_id% $status_test-0 #status_iter_canon-0)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-0.length status_incr-0
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-0)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -766,17 +766,17 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-1)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-1
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-1)
|
||||
(ap status_fold_var-1 $status_test-1)
|
||||
(canon %init_peer_id% $status_test-1 #status_iter_canon-1)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-1.length status_incr-1
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-1)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -796,17 +796,17 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-2)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-2
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-2)
|
||||
(ap status_fold_var-2 $status_test-2)
|
||||
(canon %init_peer_id% $status_test-2 #status_iter_canon-2)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-2.length status_incr-2
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-2)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -924,17 +924,17 @@ export function bugLNG63_3(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test)
|
||||
(ap status_fold_var $status_test)
|
||||
(canon %init_peer_id% $status_test #status_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon.length status_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -964,17 +964,17 @@ export function bugLNG63_3(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] num_incr)
|
||||
(fold $num s
|
||||
(fold $num num_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $num_test)
|
||||
(ap num_fold_var $num_test)
|
||||
(canon %init_peer_id% $num_test #num_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #num_iter_canon.length num_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next num_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -997,17 +997,17 @@ export function bugLNG63_3(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(fold $status status_fold_var-0
|
||||
(seq
|
||||
(seq
|
||||
(ap s $status_test-0)
|
||||
(ap status_fold_var-0 $status_test-0)
|
||||
(canon %init_peer_id% $status_test-0 #status_iter_canon-0)
|
||||
)
|
||||
(xor
|
||||
(match #status_iter_canon-0.length status_incr-0
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next status_fold_var-0)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
@ -1042,17 +1042,17 @@ export function bugLNG63_3(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] num_incr-0)
|
||||
(fold $num s
|
||||
(fold $num num_fold_var-0
|
||||
(seq
|
||||
(seq
|
||||
(ap s $num_test-0)
|
||||
(ap num_fold_var-0 $num_test-0)
|
||||
(canon %init_peer_id% $num_test-0 #num_iter_canon-0)
|
||||
)
|
||||
(xor
|
||||
(match #num_iter_canon-0.length num_incr-0
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next num_fold_var-0)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -252,17 +252,17 @@ export function topologyBug427(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [1 1] results_incr)
|
||||
(fold $results s
|
||||
(fold $results results_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $results_test)
|
||||
(ap results_fold_var $results_test)
|
||||
(canon %init_peer_id% $results_test #results_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #results_iter_canon.length results_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next results_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
@ -149,17 +149,17 @@ export function tryOtherwiseTest(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] f_incr)
|
||||
(fold $f s
|
||||
(fold $f f_fold_var
|
||||
(seq
|
||||
(seq
|
||||
(ap s $f_test)
|
||||
(ap f_fold_var $f_test)
|
||||
(canon %init_peer_id% $f_test #f_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #f_iter_canon.length f_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(next f_fold_var)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
|
@ -5,7 +5,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.10.1
|
||||
* Aqua version: 0.10.2
|
||||
*
|
||||
*/
|
||||
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
|
||||
|
@ -13,6 +13,6 @@ export async function coCall(): Promise<string[]> {
|
||||
return new Promise<string[]>((resolve, reject) => {
|
||||
parFunc(relay1.peerId, (c) => {
|
||||
resolve(c.external_addresses);
|
||||
}, {ttl: 15000});
|
||||
}, {ttl: 60000});
|
||||
});
|
||||
}
|
||||
|
5
src/examples/functorsCall.ts
Normal file
5
src/examples/functorsCall.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import {lng119Bug} from "../compiled/examples/functors.js";
|
||||
|
||||
export async function bugLng119Call(): Promise<number[]> {
|
||||
return lng119Bug();
|
||||
}
|
@ -19,5 +19,5 @@ export async function joinIdxLocalCall(relayPeerId: string) {
|
||||
export async function joinIdxRelayCall(relayPeerId: string) {
|
||||
// join.aqua
|
||||
|
||||
return await joinIdxRelay(2, [relayPeerId, relays[2].peerId, relays[4].peerId]);
|
||||
return await joinIdxRelay(2, [relayPeerId, relays[2].peerId, relays[4].peerId], {ttl: 80000});
|
||||
}
|
@ -2,5 +2,5 @@ import { Fluence } from '@fluencelabs/fluence';
|
||||
import { tryCatchTest } from '../compiled/examples/tryCatch.js';
|
||||
|
||||
export async function tryCatchCall(relayPeerId: string): Promise<string[]> {
|
||||
return await tryCatchTest(relayPeerId, {ttl: 15000});
|
||||
return await tryCatchTest(relayPeerId, {ttl: 60000});
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { tryOtherwiseTest } from '../compiled/examples/tryOtherwise.js';
|
||||
|
||||
export async function tryOtherwiseCall(relayPeerId: string): Promise<string> {
|
||||
return await tryOtherwiseTest(relayPeerId, {ttl: 10000});
|
||||
return await tryOtherwiseTest(relayPeerId, {ttl: 60000});
|
||||
}
|
||||
|
@ -4,28 +4,28 @@ import { config } from '../config.js';
|
||||
const relays = config.relays
|
||||
|
||||
export async function viaArrCall(): Promise<string[]> {
|
||||
let res = await viaArr(relays[4].peerId, [relays[2].peerId, relays[1].peerId], {ttl: 10000});
|
||||
let res = await viaArr(relays[4].peerId, [relays[2].peerId, relays[1].peerId], {ttl: 30000});
|
||||
|
||||
return res.external_addresses;
|
||||
}
|
||||
|
||||
export async function viaOptCall(relayPeerId: string): Promise<string[]> {
|
||||
|
||||
let res2 = await viaOpt(relayPeerId, relays[4].peerId, relays[2].peerId, {ttl: 10000});
|
||||
let res2 = await viaOpt(relayPeerId, relays[4].peerId, relays[2].peerId, {ttl: 30000});
|
||||
|
||||
return res2.external_addresses;
|
||||
}
|
||||
|
||||
export async function viaOptNullCall(relayPeerId: string): Promise<string[]> {
|
||||
|
||||
let res3 = await viaOpt(relayPeerId, relays[4].peerId, relays[2].peerId || null, {ttl: 10000});
|
||||
let res3 = await viaOpt(relayPeerId, relays[4].peerId, relays[2].peerId || null, {ttl: 30000});
|
||||
|
||||
return res3.external_addresses;
|
||||
}
|
||||
|
||||
export async function viaStreamCall(relayPeerId: string): Promise<string[]> {
|
||||
|
||||
let res4 = await viaStream(relays[4].peerId, [relays[2].peerId, relays[1].peerId], {ttl: 10000});
|
||||
let res4 = await viaStream(relays[4].peerId, [relays[2].peerId, relays[1].peerId], {ttl: 30000});
|
||||
|
||||
return res4.external_addresses;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user