diff --git a/aqua/examples/functors.aqua b/aqua/examples/functors.aqua new file mode 100644 index 0000000..fc6f35d --- /dev/null +++ b/aqua/examples/functors.aqua @@ -0,0 +1,6 @@ +func lng119Bug() -> []u32: + nums = [1,2,3,4,5] + results: *u32 + results <<- 1 + join results[nums.length-5] + <- results \ No newline at end of file diff --git a/src/__test__/examples.spec.ts b/src/__test__/examples.spec.ts index b127ef0..d3c7cf0 100644 --- a/src/__test__/examples.spec.ts +++ b/src/__test__/examples.spec.ts @@ -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); diff --git a/src/compiled/examples/aliases.ts b/src/compiled/examples/aliases.ts index 89e1558..e2b2e4e 100644 --- a/src/compiled/examples/aliases.ts +++ b/src/compiled/examples/aliases.ts @@ -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'; diff --git a/src/compiled/examples/assignment.ts b/src/compiled/examples/assignment.ts index 399293c..f3495eb 100644 --- a/src/compiled/examples/assignment.ts +++ b/src/compiled/examples/assignment.ts @@ -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'; diff --git a/src/compiled/examples/callArrow.ts b/src/compiled/examples/callArrow.ts index dc8cb7b..fb00395 100644 --- a/src/compiled/examples/callArrow.ts +++ b/src/compiled/examples/callArrow.ts @@ -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'; diff --git a/src/compiled/examples/canon.ts b/src/compiled/examples/canon.ts index a5e5591..f199b4b 100644 --- a/src/compiled/examples/canon.ts +++ b/src/compiled/examples/canon.ts @@ -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) diff --git a/src/compiled/examples/closures.ts b/src/compiled/examples/closures.ts index c80c26f..ed6eeee 100644 --- a/src/compiled/examples/closures.ts +++ b/src/compiled/examples/closures.ts @@ -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) diff --git a/src/compiled/examples/co.ts b/src/compiled/examples/co.ts index 43d4e0e..ce887eb 100644 --- a/src/compiled/examples/co.ts +++ b/src/compiled/examples/co.ts @@ -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'; diff --git a/src/compiled/examples/collectionSugar.ts b/src/compiled/examples/collectionSugar.ts index 82933e7..302f805 100644 --- a/src/compiled/examples/collectionSugar.ts +++ b/src/compiled/examples/collectionSugar.ts @@ -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'; diff --git a/src/compiled/examples/complex.ts b/src/compiled/examples/complex.ts index f641fb4..612315c 100644 --- a/src/compiled/examples/complex.ts +++ b/src/compiled/examples/complex.ts @@ -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'; diff --git a/src/compiled/examples/constants.ts b/src/compiled/examples/constants.ts index 4316a64..75865b8 100644 --- a/src/compiled/examples/constants.ts +++ b/src/compiled/examples/constants.ts @@ -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) ) diff --git a/src/compiled/examples/dataAlias.ts b/src/compiled/examples/dataAlias.ts index ca00acb..3360cc9 100644 --- a/src/compiled/examples/dataAlias.ts +++ b/src/compiled/examples/dataAlias.ts @@ -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'; diff --git a/src/compiled/examples/example.ts b/src/compiled/examples/example.ts index 3a55cc3..fdbef3c 100644 --- a/src/compiled/examples/example.ts +++ b/src/compiled/examples/example.ts @@ -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'; diff --git a/src/compiled/examples/fold.ts b/src/compiled/examples/fold.ts index 418c86c..70cff30 100644 --- a/src/compiled/examples/fold.ts +++ b/src/compiled/examples/fold.ts @@ -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'; diff --git a/src/compiled/examples/foldJoin.ts b/src/compiled/examples/foldJoin.ts index 34c5f2c..ac40946 100644 --- a/src/compiled/examples/foldJoin.ts +++ b/src/compiled/examples/foldJoin.ts @@ -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) diff --git a/src/compiled/examples/func.ts b/src/compiled/examples/func.ts index 448b585..03fbe2a 100644 --- a/src/compiled/examples/func.ts +++ b/src/compiled/examples/func.ts @@ -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'; diff --git a/src/compiled/examples/funcs.ts b/src/compiled/examples/funcs.ts index 3e57192..4414785 100644 --- a/src/compiled/examples/funcs.ts +++ b/src/compiled/examples/funcs.ts @@ -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) diff --git a/src/compiled/examples/helloWorld.ts b/src/compiled/examples/helloWorld.ts index 7afc86b..da95cdc 100644 --- a/src/compiled/examples/helloWorld.ts +++ b/src/compiled/examples/helloWorld.ts @@ -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'; diff --git a/src/compiled/examples/if.ts b/src/compiled/examples/if.ts index 7fce0e1..257ad3e 100644 --- a/src/compiled/examples/if.ts +++ b/src/compiled/examples/if.ts @@ -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) diff --git a/src/compiled/examples/imports_exports/declare.ts b/src/compiled/examples/imports_exports/declare.ts index f5a6e2e..9ef671f 100644 --- a/src/compiled/examples/imports_exports/declare.ts +++ b/src/compiled/examples/imports_exports/declare.ts @@ -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'; diff --git a/src/compiled/examples/imports_exports/exports.ts b/src/compiled/examples/imports_exports/exports.ts index 1a62f42..479f9c4 100644 --- a/src/compiled/examples/imports_exports/exports.ts +++ b/src/compiled/examples/imports_exports/exports.ts @@ -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'; diff --git a/src/compiled/examples/imports_exports/gen/OneMore.ts b/src/compiled/examples/imports_exports/gen/OneMore.ts index 0411a6c..b087637 100644 --- a/src/compiled/examples/imports_exports/gen/OneMore.ts +++ b/src/compiled/examples/imports_exports/gen/OneMore.ts @@ -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'; diff --git a/src/compiled/examples/imports_exports/import2.ts b/src/compiled/examples/imports_exports/import2.ts index 45f5515..fb6c3ae 100644 --- a/src/compiled/examples/imports_exports/import2.ts +++ b/src/compiled/examples/imports_exports/import2.ts @@ -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'; diff --git a/src/compiled/examples/imports_exports/import3.ts b/src/compiled/examples/imports_exports/import3.ts index 60bb13d..e48b6d9 100644 --- a/src/compiled/examples/imports_exports/import3.ts +++ b/src/compiled/examples/imports_exports/import3.ts @@ -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'; diff --git a/src/compiled/examples/imports_exports/imports.ts b/src/compiled/examples/imports_exports/imports.ts index 5341008..a9d6db5 100644 --- a/src/compiled/examples/imports_exports/imports.ts +++ b/src/compiled/examples/imports_exports/imports.ts @@ -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'; diff --git a/src/compiled/examples/imports_exports/subImport.ts b/src/compiled/examples/imports_exports/subImport.ts index 69346c4..05272ec 100644 --- a/src/compiled/examples/imports_exports/subImport.ts +++ b/src/compiled/examples/imports_exports/subImport.ts @@ -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'; diff --git a/src/compiled/examples/join.ts b/src/compiled/examples/join.ts index 05bd13d..f63fe19 100644 --- a/src/compiled/examples/join.ts +++ b/src/compiled/examples/join.ts @@ -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) diff --git a/src/compiled/examples/math.ts b/src/compiled/examples/math.ts index 82c2fb7..05761ff 100644 --- a/src/compiled/examples/math.ts +++ b/src/compiled/examples/math.ts @@ -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'; diff --git a/src/compiled/examples/multiReturn.ts b/src/compiled/examples/multiReturn.ts index 7aad6ec..dbbde75 100644 --- a/src/compiled/examples/multiReturn.ts +++ b/src/compiled/examples/multiReturn.ts @@ -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'; diff --git a/src/compiled/examples/nestedData.ts b/src/compiled/examples/nestedData.ts index 4f75a8b..1949ba1 100644 --- a/src/compiled/examples/nestedData.ts +++ b/src/compiled/examples/nestedData.ts @@ -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'; diff --git a/src/compiled/examples/nestedFuncs.ts b/src/compiled/examples/nestedFuncs.ts index 553118d..ec697f3 100644 --- a/src/compiled/examples/nestedFuncs.ts +++ b/src/compiled/examples/nestedFuncs.ts @@ -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'; diff --git a/src/compiled/examples/object.ts b/src/compiled/examples/object.ts index 2e8b2d3..8e3bac0 100644 --- a/src/compiled/examples/object.ts +++ b/src/compiled/examples/object.ts @@ -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'; diff --git a/src/compiled/examples/on.ts b/src/compiled/examples/on.ts index f799933..c49bbb5 100644 --- a/src/compiled/examples/on.ts +++ b/src/compiled/examples/on.ts @@ -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'; diff --git a/src/compiled/examples/option.ts b/src/compiled/examples/option.ts index 6719e79..a7cb14c 100644 --- a/src/compiled/examples/option.ts +++ b/src/compiled/examples/option.ts @@ -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'; diff --git a/src/compiled/examples/options/option_gen.ts b/src/compiled/examples/options/option_gen.ts index 5e56963..de72100 100644 --- a/src/compiled/examples/options/option_gen.ts +++ b/src/compiled/examples/options/option_gen.ts @@ -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'; diff --git a/src/compiled/examples/par.ts b/src/compiled/examples/par.ts index fca007d..e507706 100644 --- a/src/compiled/examples/par.ts +++ b/src/compiled/examples/par.ts @@ -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) diff --git a/src/compiled/examples/passArgs.ts b/src/compiled/examples/passArgs.ts index 4a7971d..d18ea0f 100644 --- a/src/compiled/examples/passArgs.ts +++ b/src/compiled/examples/passArgs.ts @@ -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) diff --git a/src/compiled/examples/println.ts b/src/compiled/examples/println.ts index f1b5816..73118a7 100644 --- a/src/compiled/examples/println.ts +++ b/src/compiled/examples/println.ts @@ -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'; diff --git a/src/compiled/examples/pushToStream.ts b/src/compiled/examples/pushToStream.ts index db6ff85..7b2a173 100644 --- a/src/compiled/examples/pushToStream.ts +++ b/src/compiled/examples/pushToStream.ts @@ -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'; diff --git a/src/compiled/examples/recursiveStreams.ts b/src/compiled/examples/recursiveStreams.ts index 8a4249f..143bbac 100644 --- a/src/compiled/examples/recursiveStreams.ts +++ b/src/compiled/examples/recursiveStreams.ts @@ -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'; diff --git a/src/compiled/examples/returnLiteral.ts b/src/compiled/examples/returnLiteral.ts index 4f1e904..8779d60 100644 --- a/src/compiled/examples/returnLiteral.ts +++ b/src/compiled/examples/returnLiteral.ts @@ -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'; diff --git a/src/compiled/examples/stream.ts b/src/compiled/examples/stream.ts index 2e0b4ec..b53a746 100644 --- a/src/compiled/examples/stream.ts +++ b/src/compiled/examples/stream.ts @@ -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) diff --git a/src/compiled/examples/streamArgs.ts b/src/compiled/examples/streamArgs.ts index 6f8e33a..989a37d 100644 --- a/src/compiled/examples/streamArgs.ts +++ b/src/compiled/examples/streamArgs.ts @@ -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'; diff --git a/src/compiled/examples/streamCallback.ts b/src/compiled/examples/streamCallback.ts index d75d474..3d9cd8b 100644 --- a/src/compiled/examples/streamCallback.ts +++ b/src/compiled/examples/streamCallback.ts @@ -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'; diff --git a/src/compiled/examples/streamCan.ts b/src/compiled/examples/streamCan.ts index d530485..49f45cb 100644 --- a/src/compiled/examples/streamCan.ts +++ b/src/compiled/examples/streamCan.ts @@ -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) diff --git a/src/compiled/examples/streamRestriction.ts b/src/compiled/examples/streamRestriction.ts index 3f9107a..a0fdb47 100644 --- a/src/compiled/examples/streamRestriction.ts +++ b/src/compiled/examples/streamRestriction.ts @@ -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'; diff --git a/src/compiled/examples/streamResults.ts b/src/compiled/examples/streamResults.ts index d329cfe..23ed50b 100644 --- a/src/compiled/examples/streamResults.ts +++ b/src/compiled/examples/streamResults.ts @@ -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'; diff --git a/src/compiled/examples/subImportUsage.ts b/src/compiled/examples/subImportUsage.ts index df409e3..0f3bd49 100644 --- a/src/compiled/examples/subImportUsage.ts +++ b/src/compiled/examples/subImportUsage.ts @@ -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'; diff --git a/src/compiled/examples/topology.ts b/src/compiled/examples/topology.ts index 2bb25f4..f3afb7b 100644 --- a/src/compiled/examples/topology.ts +++ b/src/compiled/examples/topology.ts @@ -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) diff --git a/src/compiled/examples/tryCatch.ts b/src/compiled/examples/tryCatch.ts index 19bffb1..427549e 100644 --- a/src/compiled/examples/tryCatch.ts +++ b/src/compiled/examples/tryCatch.ts @@ -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'; diff --git a/src/compiled/examples/tryOtherwise.ts b/src/compiled/examples/tryOtherwise.ts index c56276f..c5a5e88 100644 --- a/src/compiled/examples/tryOtherwise.ts +++ b/src/compiled/examples/tryOtherwise.ts @@ -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) diff --git a/src/compiled/examples/via.ts b/src/compiled/examples/via.ts index 28e49de..dc6a225 100644 --- a/src/compiled/examples/via.ts +++ b/src/compiled/examples/via.ts @@ -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'; diff --git a/src/examples/coCall.ts b/src/examples/coCall.ts index caaeaf3..ff9d583 100644 --- a/src/examples/coCall.ts +++ b/src/examples/coCall.ts @@ -13,6 +13,6 @@ export async function coCall(): Promise { return new Promise((resolve, reject) => { parFunc(relay1.peerId, (c) => { resolve(c.external_addresses); - }, {ttl: 15000}); + }, {ttl: 60000}); }); } diff --git a/src/examples/functorsCall.ts b/src/examples/functorsCall.ts new file mode 100644 index 0000000..6202c9e --- /dev/null +++ b/src/examples/functorsCall.ts @@ -0,0 +1,5 @@ +import {lng119Bug} from "../compiled/examples/functors.js"; + +export async function bugLng119Call(): Promise { + return lng119Bug(); +} \ No newline at end of file diff --git a/src/examples/joinCall.ts b/src/examples/joinCall.ts index a74735b..b72c1b8 100644 --- a/src/examples/joinCall.ts +++ b/src/examples/joinCall.ts @@ -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}); } \ No newline at end of file diff --git a/src/examples/tryCatchCall.ts b/src/examples/tryCatchCall.ts index 31e6160..1efc05d 100644 --- a/src/examples/tryCatchCall.ts +++ b/src/examples/tryCatchCall.ts @@ -2,5 +2,5 @@ import { Fluence } from '@fluencelabs/fluence'; import { tryCatchTest } from '../compiled/examples/tryCatch.js'; export async function tryCatchCall(relayPeerId: string): Promise { - return await tryCatchTest(relayPeerId, {ttl: 15000}); + return await tryCatchTest(relayPeerId, {ttl: 60000}); } diff --git a/src/examples/tryOtherwiseCall.ts b/src/examples/tryOtherwiseCall.ts index d73650e..201d110 100644 --- a/src/examples/tryOtherwiseCall.ts +++ b/src/examples/tryOtherwiseCall.ts @@ -1,5 +1,5 @@ import { tryOtherwiseTest } from '../compiled/examples/tryOtherwise.js'; export async function tryOtherwiseCall(relayPeerId: string): Promise { - return await tryOtherwiseTest(relayPeerId, {ttl: 10000}); + return await tryOtherwiseTest(relayPeerId, {ttl: 60000}); } diff --git a/src/examples/viaCall.ts b/src/examples/viaCall.ts index 186b723..3751a83 100644 --- a/src/examples/viaCall.ts +++ b/src/examples/viaCall.ts @@ -4,28 +4,28 @@ import { config } from '../config.js'; const relays = config.relays export async function viaArrCall(): Promise { - 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 { - 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 { - 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 { - 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; }