mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-15 01:51:03 +00:00
Object copy tests (#53)
* object copy tests * update object tests * update package-lock.json * compiled aqua * Update package.json Change version
This commit is contained in:
parent
b324e6a86b
commit
58d751544d
@ -27,13 +27,14 @@ func getObj() -> SomeObj:
|
||||
|
||||
func getObjRelay() -> SomeObj:
|
||||
on HOST_PEER_ID:
|
||||
obj = SomeObj(str = "some str", num = 5, inner = InnerObj(arr = OpArr.identity(["a", "b", "c"]), num = 6))
|
||||
obj = SomeObj(str = "diff str", num = 5, inner = InnerObj(arr = OpArr.identity(["a", "b", "c"]), num = 6))
|
||||
Op.noop()
|
||||
<- obj
|
||||
<- obj.copy(str = "some str")
|
||||
|
||||
func getObjAssign() -> SomeObj:
|
||||
obj = SomeObj(str = "some str",
|
||||
func getObjAssign() -> SomeObj, SomeObj, u32:
|
||||
obj = SomeObj(str = "first str",
|
||||
num = OpNum.identity(5),
|
||||
inner = InnerObj(arr = ["a", "b", "c"], num = 6)
|
||||
inner = InnerObj(arr = ["d", "e", "f"], num = 7)
|
||||
)
|
||||
<- obj
|
||||
copiedObj = obj.copy(str = "some str", inner = obj.inner.copy(arr = ["a", "b", "c"])).copy(num = 6)
|
||||
<- obj, copiedObj, copiedObj.inner.copy(arr = ["g"]).arr.length
|
32
package-lock.json
generated
32
package-lock.json
generated
@ -682,7 +682,7 @@
|
||||
},
|
||||
"node_modules/@fluencelabs/aqua-ipfs/node_modules/@fluencelabs/aqua-lib": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/@fluencelabs/aqua-lib/-/aqua-lib-0.5.2.tgz",
|
||||
"resolved": "https://npm.fluence.dev/@fluencelabs%2faqua-lib/-/aqua-lib-0.5.2.tgz",
|
||||
"integrity": "sha512-fmoFFE8myhLH9d+YR0+0ZPL2YIQyR6M1woAGu5d1xXI02Sjzn4id6dE4PpxHb8cSBPRie8AwsKobHCNqGxI8oA==",
|
||||
"dev": true
|
||||
},
|
||||
@ -765,7 +765,7 @@
|
||||
},
|
||||
"node_modules/@fluencelabs/fluence/node_modules/loglevel": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz",
|
||||
"resolved": "https://npm.fluence.dev/loglevel/-/loglevel-1.8.1.tgz",
|
||||
"integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==",
|
||||
"engines": {
|
||||
"node": ">= 0.6.0"
|
||||
@ -1739,9 +1739,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/async": {
|
||||
"version": "3.2.3",
|
||||
"resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz",
|
||||
"integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g=="
|
||||
"version": "3.2.4",
|
||||
"resolved": "https://npm.fluence.dev/async/-/async-3.2.4.tgz",
|
||||
"integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ=="
|
||||
},
|
||||
"node_modules/asynckit": {
|
||||
"version": "0.4.0",
|
||||
@ -5584,9 +5584,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/multiformats": {
|
||||
"version": "9.6.5",
|
||||
"resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.6.5.tgz",
|
||||
"integrity": "sha512-vMwf/FUO+qAPvl3vlSZEgEVFY/AxeZq5yg761ScF3CZsXgmTi/HGkicUiNN0CI4PW8FiY2P0OLklOcmQjdQJhw=="
|
||||
"version": "9.9.0",
|
||||
"resolved": "https://npm.fluence.dev/multiformats/-/multiformats-9.9.0.tgz",
|
||||
"integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg=="
|
||||
},
|
||||
"node_modules/multihashes": {
|
||||
"version": "4.0.3",
|
||||
@ -8176,7 +8176,7 @@
|
||||
"dependencies": {
|
||||
"@fluencelabs/aqua-lib": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/@fluencelabs/aqua-lib/-/aqua-lib-0.5.2.tgz",
|
||||
"resolved": "https://npm.fluence.dev/@fluencelabs%2faqua-lib/-/aqua-lib-0.5.2.tgz",
|
||||
"integrity": "sha512-fmoFFE8myhLH9d+YR0+0ZPL2YIQyR6M1woAGu5d1xXI02Sjzn4id6dE4PpxHb8cSBPRie8AwsKobHCNqGxI8oA==",
|
||||
"dev": true
|
||||
}
|
||||
@ -8245,7 +8245,7 @@
|
||||
},
|
||||
"loglevel": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz",
|
||||
"resolved": "https://npm.fluence.dev/loglevel/-/loglevel-1.8.1.tgz",
|
||||
"integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg=="
|
||||
},
|
||||
"multiformats": {
|
||||
@ -9081,9 +9081,9 @@
|
||||
"integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="
|
||||
},
|
||||
"async": {
|
||||
"version": "3.2.3",
|
||||
"resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz",
|
||||
"integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g=="
|
||||
"version": "3.2.4",
|
||||
"resolved": "https://npm.fluence.dev/async/-/async-3.2.4.tgz",
|
||||
"integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ=="
|
||||
},
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
@ -12147,9 +12147,9 @@
|
||||
}
|
||||
},
|
||||
"multiformats": {
|
||||
"version": "9.6.5",
|
||||
"resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.6.5.tgz",
|
||||
"integrity": "sha512-vMwf/FUO+qAPvl3vlSZEgEVFY/AxeZq5yg761ScF3CZsXgmTi/HGkicUiNN0CI4PW8FiY2P0OLklOcmQjdQJhw=="
|
||||
"version": "9.9.0",
|
||||
"resolved": "https://npm.fluence.dev/multiformats/-/multiformats-9.9.0.tgz",
|
||||
"integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg=="
|
||||
},
|
||||
"multihashes": {
|
||||
"version": "4.0.3",
|
||||
|
@ -2,19 +2,19 @@ import {getObjAssignCall, getObjCall, getObjRelayCall} from "../examples/objectC
|
||||
|
||||
jest.retryTimes(1)
|
||||
|
||||
import { Fluence, FluencePeer, KeyPair, setLogLevel } from '@fluencelabs/fluence';
|
||||
import { EphemeralNetwork, defaultConfig } from '@fluencelabs/fluence/dist/internal/ephemeral';
|
||||
import { registerPrintln } from '../compiled/examples/println';
|
||||
import { callArrowCall, reproArgsBug426Call } from '../examples/callArrowCall';
|
||||
import { dataAliasCall } from '../examples/dataAliasCall';
|
||||
import { onCall } from '../examples/onCall';
|
||||
import { funcCall } from '../examples/funcCall';
|
||||
import { helloWorldCall } from '../examples/helloWorldCall';
|
||||
import { foldBug499Call, foldCall } from '../examples/foldCall';
|
||||
import { bugNG69Call, ifCall, ifWrapCall } from '../examples/ifCall';
|
||||
import { parCall, testTimeoutCall } from '../examples/parCall';
|
||||
import { complexCall } from '../examples/complex';
|
||||
import { constantsCall, particleTtlAndTimestampCall } from '../examples/constantsCall';
|
||||
import {Fluence, FluencePeer, KeyPair, setLogLevel} from '@fluencelabs/fluence';
|
||||
import {EphemeralNetwork, defaultConfig} from '@fluencelabs/fluence/dist/internal/ephemeral';
|
||||
import {registerPrintln} from '../compiled/examples/println';
|
||||
import {callArrowCall, reproArgsBug426Call} from '../examples/callArrowCall';
|
||||
import {dataAliasCall} from '../examples/dataAliasCall';
|
||||
import {onCall} from '../examples/onCall';
|
||||
import {funcCall} from '../examples/funcCall';
|
||||
import {helloWorldCall} from '../examples/helloWorldCall';
|
||||
import {foldBug499Call, foldCall} from '../examples/foldCall';
|
||||
import {bugNG69Call, ifCall, ifWrapCall} from '../examples/ifCall';
|
||||
import {parCall, testTimeoutCall} from '../examples/parCall';
|
||||
import {complexCall} from '../examples/complex';
|
||||
import {constantsCall, particleTtlAndTimestampCall} from '../examples/constantsCall';
|
||||
import {
|
||||
nilLengthCall,
|
||||
nilLiteralCall,
|
||||
@ -24,40 +24,40 @@ import {
|
||||
streamFunctorCall, streamIntFunctorCall, streamJoinCall,
|
||||
streamReturnFromInnerFunc
|
||||
} from '../examples/streamCall';
|
||||
import { topologyBug205Call, topologyBug394Call, topologyBug427Call, topologyCall } from '../examples/topologyCall';
|
||||
import { foldJoinCall } from '../examples/foldJoinCall';
|
||||
import { registerHandlers, returnNull, returnOptionalCall, useOptionalCall } from '../examples/useOptionalCall';
|
||||
import { viaArrCall, viaOptCall, viaOptNullCall, viaStreamCall } from '../examples/viaCall';
|
||||
import { nestedFuncsCall } from '../examples/nestedFuncsCall';
|
||||
import { assignmentCall } from '../examples/assignment';
|
||||
import { tryCatchCall } from '../examples/tryCatchCall';
|
||||
import { tryOtherwiseCall } from '../examples/tryOtherwiseCall';
|
||||
import { coCall } from '../examples/coCall';
|
||||
import { bugLNG60Call, passArgsCall } from '../examples/passArgsCall';
|
||||
import { streamArgsCall } from '../examples/streamArgsCall';
|
||||
import { streamResultsCall } from '../examples/streamResultsCall';
|
||||
import { pushToStreamCall } from '../examples/pushToStreamCall';
|
||||
import { literalCall } from '../examples/returnLiteralCall';
|
||||
import { multiReturnCall } from '../examples/multiReturnCall';
|
||||
import { declareCall } from '../examples/declareCall';
|
||||
import {topologyBug205Call, topologyBug394Call, topologyBug427Call, topologyCall} from '../examples/topologyCall';
|
||||
import {foldJoinCall} from '../examples/foldJoinCall';
|
||||
import {registerHandlers, returnNull, returnOptionalCall, useOptionalCall} from '../examples/useOptionalCall';
|
||||
import {viaArrCall, viaOptCall, viaOptNullCall, viaStreamCall} from '../examples/viaCall';
|
||||
import {nestedFuncsCall} from '../examples/nestedFuncsCall';
|
||||
import {assignmentCall} from '../examples/assignment';
|
||||
import {tryCatchCall} from '../examples/tryCatchCall';
|
||||
import {tryOtherwiseCall} from '../examples/tryOtherwiseCall';
|
||||
import {coCall} from '../examples/coCall';
|
||||
import {bugLNG60Call, passArgsCall} from '../examples/passArgsCall';
|
||||
import {streamArgsCall} from '../examples/streamArgsCall';
|
||||
import {streamResultsCall} from '../examples/streamResultsCall';
|
||||
import {pushToStreamCall} from '../examples/pushToStreamCall';
|
||||
import {literalCall} from '../examples/returnLiteralCall';
|
||||
import {multiReturnCall} from '../examples/multiReturnCall';
|
||||
import {declareCall} from '../examples/declareCall';
|
||||
import {genOptions, genOptionsEmptyString} from '../examples/optionsCall';
|
||||
import { closuresCall } from '../examples/closures';
|
||||
import { bugLNG63_2Call, bugLNG63_3Call, bugLNG63Call, streamCanCall } from '../examples/streamCanCall';
|
||||
import { streamCallbackCall } from '../examples/streamCallback';
|
||||
import { streamResCall } from '../examples/streamRestrictionsCall';
|
||||
import { joinIdxCall, joinIdxLocalCall, joinIdxRelayCall } from '../examples/joinCall';
|
||||
import { recursiveStreamsCall } from '../examples/recursiveStreamsCall';
|
||||
import {closuresCall} from '../examples/closures';
|
||||
import {bugLNG63_2Call, bugLNG63_3Call, bugLNG63Call, streamCanCall} from '../examples/streamCanCall';
|
||||
import {streamCallbackCall} from '../examples/streamCallback';
|
||||
import {streamResCall} from '../examples/streamRestrictionsCall';
|
||||
import {joinIdxCall, joinIdxLocalCall, joinIdxRelayCall} from '../examples/joinCall';
|
||||
import {recursiveStreamsCall} from '../examples/recursiveStreamsCall';
|
||||
import {
|
||||
arraySugarCall,
|
||||
bugLNG59Call,
|
||||
optionSugarCall,
|
||||
streamSugarCall,
|
||||
} from '../examples/collectionSugarCall';
|
||||
import { funcsCall } from '../examples/funcsCall';
|
||||
import { nestedDataCall } from '../examples/nestedDataCall';
|
||||
import { mathTest1Call, mathTest2Call } from '../examples/mathCall';
|
||||
import { lng58Bug } from '../compiled/examples/closures';
|
||||
import { config, isEphemeral } from '../config';
|
||||
import {funcsCall} from '../examples/funcsCall';
|
||||
import {nestedDataCall} from '../examples/nestedDataCall';
|
||||
import {mathTest1Call, mathTest2Call} from '../examples/mathCall';
|
||||
import {lng58Bug} from '../compiled/examples/closures';
|
||||
import {config, isEphemeral} from '../config';
|
||||
import {bugLng79Call} from "../examples/canonCall";
|
||||
|
||||
var selfPeerId: string;
|
||||
@ -99,11 +99,11 @@ async function stopEphemeral() {
|
||||
|
||||
async function start() {
|
||||
// await Fluence.start({ connectTo: config.relays[0]});
|
||||
await Fluence.start({ connectTo: config.relays[0], debug: {marineLogLevel: "debug"} });
|
||||
await Fluence.start({connectTo: config.relays[0], debug: {marineLogLevel: "debug"}});
|
||||
selfPeerId = Fluence.getStatus().peerId;
|
||||
|
||||
peer2 = new FluencePeer();
|
||||
await peer2.start({ connectTo: config.relays[1] });
|
||||
await peer2.start({connectTo: config.relays[1]});
|
||||
}
|
||||
|
||||
async function stop() {
|
||||
@ -330,14 +330,22 @@ describe('Testing examples', () => {
|
||||
|
||||
it('object creation getObjAssign', async () => {
|
||||
let result = await getObjAssignCall()
|
||||
expect(result).toEqual({
|
||||
str: "some str",
|
||||
expect(result).toEqual([{
|
||||
str: "first str",
|
||||
num: 5,
|
||||
inner: {
|
||||
arr: ["a", "b", "c"],
|
||||
num: 6
|
||||
arr: ["d", "e", "f"],
|
||||
num: 7
|
||||
}
|
||||
});
|
||||
}, {
|
||||
str: "some str",
|
||||
num: 6,
|
||||
inner: {
|
||||
arr: ["a", "b", "c"],
|
||||
num: 7
|
||||
}
|
||||
},
|
||||
1]);
|
||||
});
|
||||
|
||||
it('collectionSugar stream', async () => {
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -115,9 +115,9 @@ export function doSmth(...args: any) {
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("getDataSrv" "arg") [] arg)
|
||||
)
|
||||
(ap arg.$.value! arg-1)
|
||||
(ap arg.$.value! arg_flat)
|
||||
)
|
||||
(call %init_peer_id% ("op" "identity") [arg-1] a)
|
||||
(call %init_peer_id% ("op" "identity") [arg_flat] a)
|
||||
)
|
||||
(call %init_peer_id% ("op" "array") [a "hello"] res)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -94,39 +94,42 @@ export function bugLng79(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("ser" "getRecord") [] $stream)
|
||||
(new $stream_test
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("ser" "getRecord") [] $stream)
|
||||
(new $stream_test
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
)
|
||||
)
|
||||
(ap stream_gate.$.[0]! stream_gate_flat)
|
||||
)
|
||||
(ap stream_gate.$.[0]! stream_gate-0)
|
||||
(null)
|
||||
)
|
||||
(call -relay- ("op" "noop") [])
|
||||
)
|
||||
(fold stream_gate-0.$.relay_id! -via-peer-
|
||||
(fold stream_gate_flat.$.relay_id! -via-peer-
|
||||
(seq
|
||||
(call -via-peer- ("op" "noop") [])
|
||||
(next -via-peer-)
|
||||
@ -136,8 +139,8 @@ export function bugLng79(...args: any) {
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(call stream_gate-0.$.peer_id! ("math" "add") [1 1] add)
|
||||
(fold stream_gate-0.$.relay_id! -via-peer-
|
||||
(call stream_gate_flat.$.peer_id! ("math" "add") [1 1] add)
|
||||
(fold stream_gate_flat.$.relay_id! -via-peer-
|
||||
(seq
|
||||
(next -via-peer-)
|
||||
(call -via-peer- ("op" "noop") [])
|
||||
@ -148,7 +151,7 @@ export function bugLng79(...args: any) {
|
||||
)
|
||||
(seq
|
||||
(seq
|
||||
(fold stream_gate-0.$.relay_id! -via-peer-
|
||||
(fold stream_gate_flat.$.relay_id! -via-peer-
|
||||
(seq
|
||||
(call -via-peer- ("op" "noop") [])
|
||||
(next -via-peer-)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -142,7 +142,7 @@ export function closureBig(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap p2Id-0_gate.$.[0]! p2Id-0_gate-0)
|
||||
(ap p2Id-0_gate.$.[0]! p2Id-0_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -201,7 +201,7 @@ export function closureBig(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap p2Id_gate.$.[0]! p2Id_gate-0)
|
||||
(ap p2Id_gate.$.[0]! p2Id_gate_flat)
|
||||
)
|
||||
)
|
||||
(call -relay- ("op" "noop") [])
|
||||
@ -213,7 +213,7 @@ export function closureBig(...args: any) {
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [p2Id-0_gate-0 p2Id_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [p2Id-0_gate_flat p2Id_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 5])
|
||||
)
|
||||
)
|
||||
@ -321,12 +321,12 @@ export function lng58Bug(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -546,7 +546,7 @@ export function bugLNG59(...args: any) {
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("getArr" "getArr") [] nodes)
|
||||
)
|
||||
(ap nodes.$.[1]! nodes-0)
|
||||
(ap nodes.$.[1]! nodes_flat)
|
||||
)
|
||||
(new $array-inline
|
||||
(seq
|
||||
@ -567,7 +567,7 @@ export function bugLNG59(...args: any) {
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(call nodes-0 ("op" "identity") ["some str"] res)
|
||||
(call nodes_flat ("op" "identity") ["some str"] res)
|
||||
(fold #array-inline-0 -via-peer-
|
||||
(seq
|
||||
(next -via-peer-)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -235,8 +235,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)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -86,10 +86,10 @@ export function getAliasedData(...args: any) {
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("somesrv" "get") [] res)
|
||||
)
|
||||
(ap res.$.peerId! res-0)
|
||||
(ap res.$.peerId! res_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -54,77 +54,43 @@ export function getTwoResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call node ("kad" "neighborhood") [%init_peer_id% [] []] nodes)
|
||||
(par
|
||||
(fold nodes n-0
|
||||
(par
|
||||
(seq
|
||||
(xor
|
||||
(xor
|
||||
(call n-0 ("peer" "timestamp_sec") [] $res)
|
||||
(call n-0 ("op" "noop") [])
|
||||
)
|
||||
(seq
|
||||
(call -relay- ("op" "noop") [])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
(call node ("op" "noop") [])
|
||||
)
|
||||
(next n-0)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(null)
|
||||
)
|
||||
)
|
||||
(new $res_test
|
||||
(call node ("kad" "neighborhood") [%init_peer_id% [] []] nodes)
|
||||
(par
|
||||
(fold nodes n-0
|
||||
(par
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [0 1] res_incr)
|
||||
(fold $res s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $res_test)
|
||||
(canon node $res_test #res_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon.length res_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(xor
|
||||
(xor
|
||||
(call n-0 ("peer" "timestamp_sec") [] $res)
|
||||
(call n-0 ("op" "noop") [])
|
||||
)
|
||||
(seq
|
||||
(call -relay- ("op" "noop") [])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
(canon node $res_test #res_result_canon)
|
||||
)
|
||||
(ap #res_result_canon res_gate)
|
||||
(call node ("op" "noop") [])
|
||||
)
|
||||
(next n-0)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(ap res_gate.$.[0]! res_gate-0)
|
||||
(null)
|
||||
)
|
||||
(call node ("op" "identity") [res_gate-0])
|
||||
)
|
||||
(new $res_test-0
|
||||
(new $res_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [1 1] res_incr-0)
|
||||
(call node ("math" "add") [0 1] res_incr)
|
||||
(fold $res s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $res_test-0)
|
||||
(canon node $res_test-0 #res_iter_canon-0)
|
||||
(ap s $res_test)
|
||||
(canon node $res_test #res_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon-0.length res_incr-0
|
||||
(match #res_iter_canon.length res_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
@ -133,46 +99,71 @@ export function getTwoResults(...args: any) {
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon node $res_test-0 #res_result_canon-0)
|
||||
(canon node $res_test #res_result_canon)
|
||||
)
|
||||
(ap #res_result_canon-0 res_gate-1)
|
||||
(ap #res_result_canon res_gate)
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap res_gate-1.$.[1]! res_gate-1-0)
|
||||
(call node ("op" "identity") [res_gate.$.[0]!])
|
||||
)
|
||||
(call node ("op" "identity") [res_gate-1-0])
|
||||
)
|
||||
(new $res_test-1
|
||||
(seq
|
||||
(new $res_test-0
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [2 1] res_incr-1)
|
||||
(fold $res s
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [1 1] res_incr-0)
|
||||
(fold $res s
|
||||
(seq
|
||||
(ap s $res_test-1)
|
||||
(canon node $res_test-1 #res_iter_canon-1)
|
||||
)
|
||||
(xor
|
||||
(match #res_iter_canon-1.length res_incr-1
|
||||
(null)
|
||||
(seq
|
||||
(ap s $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 s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon node $res_test-0 #res_result_canon-0)
|
||||
)
|
||||
(canon node $res_test-1 #res_result_canon-1)
|
||||
(ap #res_result_canon-0 res_gate-0)
|
||||
)
|
||||
(ap #res_result_canon-1 res_gate-2)
|
||||
)
|
||||
)
|
||||
(call node ("op" "identity") [res_gate-0.$.[1]!])
|
||||
)
|
||||
(new $res_test-1
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call node ("math" "add") [2 1] res_incr-1)
|
||||
(fold $res s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon node $res_test-1 #res_result_canon-1)
|
||||
)
|
||||
(ap #res_result_canon-1 res_gate-1)
|
||||
)
|
||||
)
|
||||
(ap res_gate-2.$.[2]! res_gate-2-0)
|
||||
)
|
||||
(call node ("op" "identity") [res_gate-2-0])
|
||||
(call node ("op" "identity") [res_gate-1.$.[2]!])
|
||||
)
|
||||
(call -relay- ("op" "noop") [])
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -299,11 +299,11 @@ export function calc2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
@ -321,101 +321,95 @@ export function calc2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap 0 $array-inline)
|
||||
(ap 1 $array-inline)
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap 0 $array-inline)
|
||||
(ap 1 $array-inline)
|
||||
)
|
||||
(ap 2 $array-inline)
|
||||
)
|
||||
(ap 3 $array-inline)
|
||||
)
|
||||
(ap 4 $array-inline)
|
||||
)
|
||||
(ap 2 $array-inline)
|
||||
(ap 5 $array-inline)
|
||||
)
|
||||
(ap 3 $array-inline)
|
||||
(ap 6 $array-inline)
|
||||
)
|
||||
(ap 4 $array-inline)
|
||||
(ap 7 $array-inline)
|
||||
)
|
||||
(ap 5 $array-inline)
|
||||
(ap 8 $array-inline)
|
||||
)
|
||||
(ap 6 $array-inline)
|
||||
(ap 9 $array-inline)
|
||||
)
|
||||
(ap 7 $array-inline)
|
||||
(ap 10 $array-inline)
|
||||
)
|
||||
(ap 8 $array-inline)
|
||||
(ap 11 $array-inline)
|
||||
)
|
||||
(ap 9 $array-inline)
|
||||
(ap 12 $array-inline)
|
||||
)
|
||||
(ap 10 $array-inline)
|
||||
(ap 13 $array-inline)
|
||||
)
|
||||
(ap 11 $array-inline)
|
||||
(ap 14 $array-inline)
|
||||
)
|
||||
(ap 12 $array-inline)
|
||||
(ap 15 $array-inline)
|
||||
)
|
||||
(ap 13 $array-inline)
|
||||
(ap 16 $array-inline)
|
||||
)
|
||||
(ap 14 $array-inline)
|
||||
(ap 17 $array-inline)
|
||||
)
|
||||
(ap 15 $array-inline)
|
||||
(ap 18 $array-inline)
|
||||
)
|
||||
(ap 16 $array-inline)
|
||||
(ap 19 $array-inline)
|
||||
)
|
||||
(ap 17 $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
(ap 18 $array-inline)
|
||||
)
|
||||
(ap 19 $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(par
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "sub") [5 2] sub-0)
|
||||
(call %init_peer_id% ("math" "mul") [sub-0 3] mul)
|
||||
)
|
||||
(seq
|
||||
(seq
|
||||
(par
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [5 5] add)
|
||||
(call %init_peer_id% ("a" "getJ") [add] getJ)
|
||||
(call %init_peer_id% ("math" "sub") [5 2] sub-0)
|
||||
(call %init_peer_id% ("math" "mul") [sub-0 3] mul)
|
||||
)
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "sub") [3 1] sub-2)
|
||||
(call %init_peer_id% ("math" "pow") [3 sub-2] pow-0)
|
||||
(par
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [5 5] add)
|
||||
(call %init_peer_id% ("a" "getJ") [add] getJ)
|
||||
)
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "sub") [3 1] sub-2)
|
||||
(call %init_peer_id% ("math" "pow") [3 sub-2] pow-0)
|
||||
)
|
||||
(call %init_peer_id% ("a" "getJ") [pow-0] getJ-0)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [getJ getJ-0] sub-1)
|
||||
)
|
||||
(call %init_peer_id% ("a" "getJ") [pow-0] getJ-0)
|
||||
(call %init_peer_id% ("math" "pow") [3 sub-1] pow)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [getJ getJ-0] sub-1)
|
||||
)
|
||||
(call %init_peer_id% ("math" "pow") [3 sub-1] pow)
|
||||
(call %init_peer_id% ("math" "sub") [mul pow] sub)
|
||||
)
|
||||
(call %init_peer_id% ("a" "getJ") [sub] num)
|
||||
)
|
||||
(par
|
||||
(call %init_peer_id% ("math" "add") [num num] add-0)
|
||||
(call %init_peer_id% ("a" "getJ") [num] getJ-1)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [mul pow] sub)
|
||||
)
|
||||
(call %init_peer_id% ("a" "getJ") [sub] num)
|
||||
)
|
||||
(par
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(par
|
||||
(call %init_peer_id% ("math" "add") [num num] add-0)
|
||||
(call %init_peer_id% ("a" "getJ") [num] getJ-1)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [add-0 getJ-1] sub-4)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [sub-4 3] sub-3)
|
||||
)
|
||||
(call %init_peer_id% ("op" "noop") [])
|
||||
)
|
||||
(seq
|
||||
(ap #array-inline-0.$.[sub-3]! array-inline-0-0)
|
||||
(call %init_peer_id% ("op" "noop") [])
|
||||
(call %init_peer_id% ("math" "sub") [add-0 getJ-1] sub-4)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [sub-4 3] sub-3)
|
||||
)
|
||||
(ap #array-inline-0.$.[sub-3]! array-inline-0_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [array-inline-0-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [array-inline-0_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -631,12 +625,12 @@ export function ifCalc(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap res_gate.$.[0]! res_gate-0)
|
||||
(ap res_gate.$.[0]! res_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -790,10 +784,10 @@ export function calc(...args: any) {
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0.$.[num]! array-inline-0-0)
|
||||
(ap #array-inline-0.$.[num]! array-inline-0_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [array-inline-0-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [array-inline-0_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 2])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -135,12 +135,12 @@ export function ifCorrectXorWrap(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap service_id_gate.$.[0]! service_id_gate-0)
|
||||
(ap service_id_gate.$.[0]! service_id_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [service_id_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [service_id_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 2])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -49,45 +49,42 @@ export function joinIdxLocal(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(par
|
||||
(fold nodes node-0
|
||||
(par
|
||||
(ap node-0 $nodes2)
|
||||
(next node-0)
|
||||
)
|
||||
(never)
|
||||
(par
|
||||
(fold nodes node-0
|
||||
(par
|
||||
(ap node-0 $nodes2)
|
||||
(next node-0)
|
||||
)
|
||||
(null)
|
||||
(never)
|
||||
)
|
||||
(new $nodes2_test
|
||||
(null)
|
||||
)
|
||||
(new $nodes2_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [idx 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(call %init_peer_id% ("math" "add") [idx 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(ap s $nodes2_test)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_result_canon)
|
||||
)
|
||||
(ap #nodes2_result_canon nodes2_gate)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_result_canon)
|
||||
)
|
||||
(ap #nodes2_result_canon nodes2_gate)
|
||||
)
|
||||
)
|
||||
(ap nodes2_gate.$.[idx]! nodes2_gate-0)
|
||||
)
|
||||
(canon %init_peer_id% $nodes2 #-nodes2-fix-0)
|
||||
)
|
||||
@ -185,45 +182,42 @@ export function joinIdxRelay(...args: any) {
|
||||
(seq
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(par
|
||||
(fold nodes node-0
|
||||
(par
|
||||
(ap node-0 $nodes2)
|
||||
(next node-0)
|
||||
)
|
||||
(never)
|
||||
(par
|
||||
(fold nodes node-0
|
||||
(par
|
||||
(ap node-0 $nodes2)
|
||||
(next node-0)
|
||||
)
|
||||
(null)
|
||||
(never)
|
||||
)
|
||||
(new $nodes2_test
|
||||
(null)
|
||||
)
|
||||
(new $nodes2_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call -relay- ("math" "add") [idx 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(call -relay- ("math" "add") [idx 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(canon -relay- $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(ap s $nodes2_test)
|
||||
(canon -relay- $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon -relay- $nodes2_test #nodes2_result_canon)
|
||||
)
|
||||
(ap #nodes2_result_canon nodes2_gate)
|
||||
(canon -relay- $nodes2_test #nodes2_result_canon)
|
||||
)
|
||||
(ap #nodes2_result_canon nodes2_gate)
|
||||
)
|
||||
)
|
||||
(ap nodes2_gate.$.[idx]! nodes2_gate-0)
|
||||
)
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
@ -356,83 +350,77 @@ export function joinIdx(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "sub") [idx 1] sub-0)
|
||||
(call %init_peer_id% ("math" "add") [sub-0 1] add-0)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [idx 1] sub)
|
||||
(call %init_peer_id% ("math" "add") [sub 1] add)
|
||||
)
|
||||
(call %init_peer_id% ("math" "add") [sub 1] add)
|
||||
)
|
||||
(new $infos_test
|
||||
(seq
|
||||
(new $infos_test
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [add 1] infos_incr)
|
||||
(fold $infos s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [add 1] infos_incr)
|
||||
(fold $infos s
|
||||
(seq
|
||||
(ap s $infos_test)
|
||||
(canon %init_peer_id% $infos_test #infos_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #infos_iter_canon.length infos_incr
|
||||
(null)
|
||||
(seq
|
||||
(ap s $infos_test)
|
||||
(canon %init_peer_id% $infos_test #infos_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #infos_iter_canon.length infos_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $infos_test #infos_result_canon)
|
||||
)
|
||||
(canon %init_peer_id% $infos_test #infos_result_canon)
|
||||
(ap #infos_result_canon infos_gate)
|
||||
)
|
||||
(ap #infos_result_canon infos_gate)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [idx 1] sub-0)
|
||||
)
|
||||
(ap infos_gate.$.[add-0]! infos_gate-0)
|
||||
(call %init_peer_id% ("math" "add") [sub-0 1] add-0)
|
||||
)
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "sub") [idx 1] sub-2)
|
||||
(call %init_peer_id% ("math" "add") [sub-2 1] add-2)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [idx 1] sub-1)
|
||||
(call %init_peer_id% ("math" "add") [sub-1 1] add-1)
|
||||
)
|
||||
(call %init_peer_id% ("math" "add") [sub-1 1] add-1)
|
||||
)
|
||||
(new $nodes2_test
|
||||
(seq
|
||||
(new $nodes2_test
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [add-1 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [add-1 1] nodes2_incr)
|
||||
(fold $nodes2 s
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
(seq
|
||||
(ap s $nodes2_test)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #nodes2_iter_canon.length nodes2_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_result_canon)
|
||||
)
|
||||
(canon %init_peer_id% $nodes2_test #nodes2_result_canon)
|
||||
(ap #nodes2_result_canon nodes2_gate)
|
||||
)
|
||||
(ap #nodes2_result_canon nodes2_gate)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [idx 1] sub-2)
|
||||
)
|
||||
(ap nodes2_gate.$.[add-2]! nodes2_gate-0)
|
||||
(call %init_peer_id% ("math" "add") [sub-2 1] add-2)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -133,9 +133,9 @@ export function test(...args: any) {
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("service" "test1") [] res-0)
|
||||
)
|
||||
(ap res-0.$.one! res-0-0)
|
||||
(ap res-0.$.one! res-0_flat)
|
||||
)
|
||||
(call %init_peer_id% ("service" "test2") [res-0-0 res-0-0.$.val!] res)
|
||||
(call %init_peer_id% ("service" "test2") [res-0_flat res-0_flat.$.val!] res)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res])
|
||||
@ -214,10 +214,10 @@ export function test3(...args: any) {
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("service" "test1") [] res)
|
||||
)
|
||||
(ap res.$.one! res-0)
|
||||
(ap res.$.one! res_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -34,37 +34,43 @@ export function getObjRelay(...args: any) {
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap "a" $array-inline)
|
||||
(ap "b" $array-inline)
|
||||
(seq
|
||||
(seq
|
||||
(ap "a" $array-inline)
|
||||
(ap "b" $array-inline)
|
||||
)
|
||||
(ap "c" $array-inline)
|
||||
)
|
||||
(canon -relay- $array-inline #array-inline-0)
|
||||
)
|
||||
(ap "c" $array-inline)
|
||||
)
|
||||
(canon -relay- $array-inline #array-inline-0)
|
||||
(call -relay- ("op" "identity") [#array-inline-0] identity)
|
||||
)
|
||||
(call -relay- ("json" "obj") ["arr" identity "num" 6] InnerObj_obj)
|
||||
)
|
||||
(call -relay- ("op" "identity") [#array-inline-0] identity)
|
||||
(call -relay- ("json" "obj") ["inner" InnerObj_obj "num" 5 "str" "diff str"] SomeObj_obj)
|
||||
)
|
||||
(call -relay- ("json" "obj") ["arr" identity "num" 6] InnerObj_obj)
|
||||
(call -relay- ("op" "noop") [])
|
||||
)
|
||||
(call -relay- ("json" "obj") ["inner" InnerObj_obj "num" 5 "str" "some str"] SomeObj_obj)
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
(call -relay- ("op" "noop") [])
|
||||
)
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
(ap SomeObj_obj SomeObj_obj_flat)
|
||||
)
|
||||
(call %init_peer_id% ("json" "puts") [SomeObj_obj "str" "some str"] SomeObj_obj_obj_copy)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [SomeObj_obj])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [SomeObj_obj_obj_copy])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 2])
|
||||
)
|
||||
)
|
||||
@ -246,7 +252,7 @@ export function getObj(...args: any) {
|
||||
}
|
||||
|
||||
|
||||
export type GetObjAssignResult = { inner: { arr: string[]; num: number; }; num: number; str: string; }
|
||||
export type GetObjAssignResult = [{ inner: { arr: string[]; num: number; }; num: number; str: string; }, { inner: { arr: string[]; num: number; }; num: number; str: string; }, number]
|
||||
export function getObjAssign(
|
||||
config?: {ttl?: number}
|
||||
): Promise<GetObjAssignResult>;
|
||||
@ -265,28 +271,89 @@ export function getObjAssign(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap "a" $array-inline)
|
||||
(ap "b" $array-inline)
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap "d" $array-inline)
|
||||
(ap "e" $array-inline)
|
||||
)
|
||||
(ap "f" $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("json" "obj") ["arr" #array-inline-0 "num" 7] InnerObj_obj)
|
||||
)
|
||||
(call %init_peer_id% ("op" "identity") [5] identity)
|
||||
)
|
||||
(call %init_peer_id% ("json" "obj") ["inner" InnerObj_obj "num" identity "str" "first str"] SomeObj_obj)
|
||||
)
|
||||
(ap SomeObj_obj SomeObj_obj_flat)
|
||||
)
|
||||
(ap SomeObj_obj.$.inner! SomeObj_obj_flat-0)
|
||||
)
|
||||
(new $array-inline-1
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap "a" $array-inline-1)
|
||||
(ap "b" $array-inline-1)
|
||||
)
|
||||
(ap "c" $array-inline-1)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline-1 #array-inline-1-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("json" "puts") [SomeObj_obj.$.inner! "arr" #array-inline-1-0] SomeObj_obj_obj_copy-0)
|
||||
)
|
||||
(call %init_peer_id% ("json" "puts") [SomeObj_obj "inner" SomeObj_obj_obj_copy-0 "str" "some str"] SomeObj_obj_obj_copy)
|
||||
)
|
||||
(ap SomeObj_obj_obj_copy SomeObj_obj_obj_copy_flat)
|
||||
)
|
||||
(call %init_peer_id% ("json" "puts") [SomeObj_obj_obj_copy "num" 6] SomeObj_obj_obj_copy_obj_copy)
|
||||
)
|
||||
(ap SomeObj_obj_obj_copy_obj_copy.$.inner! SomeObj_obj_obj_copy_obj_copy_flat)
|
||||
)
|
||||
(ap SomeObj_obj_obj_copy_obj_copy_flat SomeObj_obj_obj_copy_obj_copy_flat_flat)
|
||||
)
|
||||
(new $array-inline-2
|
||||
(seq
|
||||
(ap "g" $array-inline-2)
|
||||
(canon %init_peer_id% $array-inline-2 #array-inline-2-0)
|
||||
)
|
||||
(ap "c" $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
(call %init_peer_id% ("json" "puts") [SomeObj_obj_obj_copy_obj_copy_flat "arr" #array-inline-2-0] SomeObj_obj_obj_copy_obj_copy_flat_obj_copy)
|
||||
)
|
||||
(ap SomeObj_obj_obj_copy_obj_copy_flat_obj_copy.$.arr! SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat)
|
||||
)
|
||||
(call %init_peer_id% ("json" "obj") ["arr" #array-inline-0 "num" 6] InnerObj_obj)
|
||||
(ap SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat_flat)
|
||||
)
|
||||
(call %init_peer_id% ("op" "identity") [5] identity)
|
||||
(ap SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat_flat SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat_flat_to_functor)
|
||||
)
|
||||
(call %init_peer_id% ("json" "obj") ["inner" InnerObj_obj "num" identity "str" "some str"] SomeObj_obj)
|
||||
(ap SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat_flat_to_functor.length SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat_flat_length)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [SomeObj_obj])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [SomeObj_obj SomeObj_obj_obj_copy_obj_copy SomeObj_obj_obj_copy_obj_copy_flat_obj_copy_flat_flat_length])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -338,6 +405,41 @@ export function getObjAssign(...args: any) {
|
||||
"name" : "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag" : "struct",
|
||||
"name" : "SomeObj",
|
||||
"fields" : {
|
||||
"inner" : {
|
||||
"tag" : "struct",
|
||||
"name" : "InnerObj",
|
||||
"fields" : {
|
||||
"arr" : {
|
||||
"tag" : "array",
|
||||
"type" : {
|
||||
"tag" : "scalar",
|
||||
"name" : "string"
|
||||
}
|
||||
},
|
||||
"num" : {
|
||||
"tag" : "scalar",
|
||||
"name" : "u32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"num" : {
|
||||
"tag" : "scalar",
|
||||
"name" : "u64"
|
||||
},
|
||||
"str" : {
|
||||
"tag" : "scalar",
|
||||
"name" : "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag" : "scalar",
|
||||
"name" : "u32"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -55,10 +55,10 @@ export function getPeerExternalAddresses(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap res.$.external_addresses! res-0)
|
||||
(ap res.$.external_addresses! res_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 2])
|
||||
)
|
||||
)
|
||||
@ -159,10 +159,10 @@ export function getDistantAddresses(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap res.$.external_addresses! res-0)
|
||||
(ap res.$.external_addresses! res_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 2])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -299,10 +299,10 @@ export function useOptional(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap res.$.[0]! res-0)
|
||||
(ap res.$.[0]! res_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [res_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -238,34 +238,31 @@ export function testTimeout(...args: any) {
|
||||
)
|
||||
)
|
||||
(par
|
||||
(seq
|
||||
(new $results_test
|
||||
(new $results_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [999 1] results_incr)
|
||||
(fold $results s
|
||||
(call %init_peer_id% ("math" "add") [999 1] results_incr)
|
||||
(fold $results s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $results_test)
|
||||
(canon %init_peer_id% $results_test #results_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #results_iter_canon.length results_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(ap s $results_test)
|
||||
(canon %init_peer_id% $results_test #results_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #results_iter_canon.length results_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $results_test #results_result_canon)
|
||||
)
|
||||
(ap #results_result_canon results_gate)
|
||||
(canon %init_peer_id% $results_test #results_result_canon)
|
||||
)
|
||||
(ap #results_result_canon results_gate)
|
||||
)
|
||||
(ap results_gate.$.[999]! results_gate-0)
|
||||
)
|
||||
(call %init_peer_id% ("peer" "timeout") [400 "timeout"] $timeout)
|
||||
)
|
||||
@ -278,36 +275,33 @@ export function testTimeout(...args: any) {
|
||||
)
|
||||
)
|
||||
(seq
|
||||
(seq
|
||||
(new $timeout_test
|
||||
(new $timeout_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] timeout_incr)
|
||||
(fold $timeout s
|
||||
(call %init_peer_id% ("math" "add") [0 1] timeout_incr)
|
||||
(fold $timeout s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $timeout_test)
|
||||
(canon %init_peer_id% $timeout_test #timeout_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #timeout_iter_canon.length timeout_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(ap s $timeout_test)
|
||||
(canon %init_peer_id% $timeout_test #timeout_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #timeout_iter_canon.length timeout_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $timeout_test #timeout_result_canon)
|
||||
)
|
||||
(ap #timeout_result_canon timeout_gate)
|
||||
(canon %init_peer_id% $timeout_test #timeout_result_canon)
|
||||
)
|
||||
(ap #timeout_result_canon timeout_gate)
|
||||
)
|
||||
(ap timeout_gate.$.[0]! timeout_gate-0)
|
||||
)
|
||||
(ap timeout_gate-0 $status)
|
||||
(ap timeout_gate.$.[0]! $status)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -338,14 +332,14 @@ export function testTimeout(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 3])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -97,20 +97,17 @@ export function wait(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("getDataSrv" "successful") [] successful-iter)
|
||||
)
|
||||
(fold successful-iter successful-item-0
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("getDataSrv" "successful") [] successful-iter)
|
||||
)
|
||||
(fold successful-iter successful-item-0
|
||||
(seq
|
||||
(ap successful-item-0 $successful)
|
||||
(next successful-item-0)
|
||||
)
|
||||
(ap successful-item-0 $successful)
|
||||
(next successful-item-0)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "n") [] n)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [n 1] sub-0)
|
||||
(call %init_peer_id% ("getDataSrv" "n") [] n)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [n 1] sub)
|
||||
)
|
||||
@ -141,7 +138,7 @@ export function wait(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap successful_gate.$.[sub-0]! successful_gate-0)
|
||||
(call %init_peer_id% ("math" "sub") [n 1] sub-0)
|
||||
)
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
@ -214,21 +211,18 @@ export function bugLNG60(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap node $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(fold #array-inline-0 n-0
|
||||
(seq
|
||||
(ap true $successful)
|
||||
(next n-0)
|
||||
)
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap node $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(fold #array-inline-0 n-0
|
||||
(seq
|
||||
(ap true $successful)
|
||||
(next n-0)
|
||||
)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [1 1] sub-0)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [1 1] sub)
|
||||
)
|
||||
@ -259,7 +253,7 @@ export function bugLNG60(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap successful_gate.$.[sub-0]! successful_gate-0)
|
||||
(call %init_peer_id% ("math" "sub") [1 1] sub-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -234,51 +234,54 @@ export function streamIntFunctor(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap "123" $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0 $stream)
|
||||
)
|
||||
(new $stream_test
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap "123" $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0 $stream)
|
||||
)
|
||||
(new $stream_test
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [arr.$.[0]! 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [arr.$.[0]! 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
)
|
||||
)
|
||||
(ap arr.$.[0]! arr_flat)
|
||||
)
|
||||
(ap arr.$.[0]! ap-prop)
|
||||
(ap stream_gate.$.[arr_flat]! stream_gate_flat)
|
||||
)
|
||||
(ap arr.$.[0]! ap-prop-0)
|
||||
(ap arr.$.[0]! arr_flat-0)
|
||||
)
|
||||
(ap stream_gate.$.[ap-prop].[ap-prop-0]! stream_gate-0)
|
||||
(ap stream_gate_flat.$.[arr_flat-0]! stream_gate_flat_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [stream_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [stream_gate_flat_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -671,61 +674,70 @@ export function streamAssignment(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(ap 0 $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap 0 $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0 $stream)
|
||||
)
|
||||
(ap arr arr_flat)
|
||||
)
|
||||
(ap arr_flat arr_flat_to_functor)
|
||||
)
|
||||
(ap #array-inline-0 $stream)
|
||||
(ap arr_flat_to_functor.length arr_flat_length)
|
||||
)
|
||||
(ap arr arr_to_functor-0)
|
||||
(call %init_peer_id% ("math" "sub") [arr_flat_length 1] sub)
|
||||
)
|
||||
(ap arr_to_functor-0.length arr_length-0)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [arr_length-0 1] sub-0)
|
||||
)
|
||||
(ap arr arr_to_functor)
|
||||
)
|
||||
(ap arr_to_functor.length arr_length)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [arr_length 1] sub)
|
||||
)
|
||||
(new $stream_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(new $stream_test
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
)
|
||||
(next s)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(ap arr arr_flat-0)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
(ap arr_flat-0 arr_flat-0_to_functor)
|
||||
)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
(ap arr_flat-0_to_functor.length arr_flat-0_length)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [arr_flat-0_length 1] sub-0)
|
||||
)
|
||||
(ap stream_gate.$.[sub-0]! stream_gate_flat)
|
||||
)
|
||||
(ap stream_gate.$.[sub-0].[0]! stream_gate-0)
|
||||
(ap stream_gate_flat.$.[0]! stream_gate_flat_flat)
|
||||
)
|
||||
(ap arr.$.[stream_gate-0]! arr-1)
|
||||
(ap arr.$.[stream_gate_flat_flat]! arr_flat-1)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [arr-1])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [arr_flat-1])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -807,59 +819,68 @@ export function streamFunctor(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(ap "123" $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(ap "123" $array-inline)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0 $stream)
|
||||
)
|
||||
(ap arr arr_flat)
|
||||
)
|
||||
(ap arr_flat arr_flat_to_functor)
|
||||
)
|
||||
(ap #array-inline-0 $stream)
|
||||
(ap arr_flat_to_functor.length arr_flat_length)
|
||||
)
|
||||
(ap arr arr_to_functor-0)
|
||||
(call %init_peer_id% ("math" "sub") [arr_flat_length 1] sub)
|
||||
)
|
||||
(ap arr_to_functor-0.length arr_length-0)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [arr_length-0 1] sub-0)
|
||||
)
|
||||
(ap arr arr_to_functor)
|
||||
)
|
||||
(ap arr_to_functor.length arr_length)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [arr_length 1] sub)
|
||||
)
|
||||
(new $stream_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(new $stream_test
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [sub 1] stream_incr)
|
||||
(fold $stream s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $stream_test)
|
||||
(canon %init_peer_id% $stream_test #stream_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #stream_iter_canon.length stream_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
)
|
||||
(next s)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(ap arr arr_flat-0)
|
||||
)
|
||||
(canon %init_peer_id% $stream_test #stream_result_canon)
|
||||
(ap arr_flat-0 arr_flat-0_to_functor)
|
||||
)
|
||||
(ap #stream_result_canon stream_gate)
|
||||
(ap arr_flat-0_to_functor.length arr_flat-0_length)
|
||||
)
|
||||
(call %init_peer_id% ("math" "sub") [arr_flat-0_length 1] sub-0)
|
||||
)
|
||||
(ap stream_gate.$.[sub-0]! stream_gate_flat)
|
||||
)
|
||||
(ap stream_gate.$.[sub-0].[0]! stream_gate-0)
|
||||
(ap stream_gate_flat.$.[0]! stream_gate_flat_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [stream_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [stream_gate_flat_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -1021,72 +1042,78 @@ export function streamJoin(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(ap "111" $array-inline)
|
||||
(ap "222" $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0 $streamJ)
|
||||
)
|
||||
(new $array-inline-1
|
||||
(seq
|
||||
(seq
|
||||
(ap "333" $array-inline-1)
|
||||
(ap "444" $array-inline-1)
|
||||
(new $array-inline
|
||||
(seq
|
||||
(seq
|
||||
(ap "111" $array-inline)
|
||||
(ap "222" $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
)
|
||||
(ap #array-inline-0 $streamJ)
|
||||
)
|
||||
(new $array-inline-1
|
||||
(seq
|
||||
(seq
|
||||
(ap "333" $array-inline-1)
|
||||
(ap "444" $array-inline-1)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline-1 #array-inline-1-0)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline-1 #array-inline-1-0)
|
||||
)
|
||||
(ap #array-inline-1-0 $streamJ)
|
||||
)
|
||||
(ap arr arr_flat)
|
||||
)
|
||||
(ap #array-inline-1-0 $streamJ)
|
||||
(ap arr_flat arr_flat_to_functor)
|
||||
)
|
||||
(ap arr arr_to_functor)
|
||||
(ap arr_flat_to_functor.length arr_flat_length)
|
||||
)
|
||||
(ap arr_to_functor.length arr_length)
|
||||
)
|
||||
(new $streamJ_test
|
||||
(seq
|
||||
(new $streamJ_test
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [arr_length 1] streamJ_incr)
|
||||
(fold $streamJ s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [arr_flat_length 1] streamJ_incr)
|
||||
(fold $streamJ s
|
||||
(seq
|
||||
(ap s $streamJ_test)
|
||||
(canon %init_peer_id% $streamJ_test #streamJ_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #streamJ_iter_canon.length streamJ_incr
|
||||
(null)
|
||||
(seq
|
||||
(ap s $streamJ_test)
|
||||
(canon %init_peer_id% $streamJ_test #streamJ_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #streamJ_iter_canon.length streamJ_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $streamJ_test #streamJ_result_canon)
|
||||
)
|
||||
(canon %init_peer_id% $streamJ_test #streamJ_result_canon)
|
||||
(ap #streamJ_result_canon streamJ_gate)
|
||||
)
|
||||
(ap #streamJ_result_canon streamJ_gate)
|
||||
)
|
||||
)
|
||||
(ap arr arr_flat-0)
|
||||
)
|
||||
(ap arr arr_to_functor-0)
|
||||
(ap arr_flat-0 arr_flat-0_to_functor)
|
||||
)
|
||||
(ap arr_to_functor-0.length arr_length-0)
|
||||
(ap arr_flat-0_to_functor.length arr_flat-0_length)
|
||||
)
|
||||
(ap arr_length-0 ap-prop)
|
||||
(ap streamJ_gate.$.[arr_flat-0_length]! streamJ_gate_flat)
|
||||
)
|
||||
(ap streamJ_gate.$.[ap-prop].[1]! streamJ_gate-0)
|
||||
(ap streamJ_gate_flat.$.[1]! streamJ_gate_flat_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [streamJ_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [streamJ_gate_flat_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -297,12 +297,12 @@ export function returnCanStream(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -398,7 +398,7 @@ export function bugLNG63_2(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
(canon %init_peer_id% $status #-status-fix-0)
|
||||
)
|
||||
@ -408,38 +408,35 @@ export function bugLNG63_2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $status_test-0
|
||||
(new $status_test-0
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
(ap s $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)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-0 #status_result_canon-0)
|
||||
)
|
||||
(ap #status_result_canon-0 status_gate-1)
|
||||
(canon %init_peer_id% $status_test-0 #status_result_canon-0)
|
||||
)
|
||||
(ap #status_result_canon-0 status_gate-0)
|
||||
)
|
||||
(ap status_gate-1.$.[0]! status_gate-1-0)
|
||||
)
|
||||
(ap status_gate-1-0 $array-inline)
|
||||
(ap status_gate-0.$.[0]! $array-inline)
|
||||
)
|
||||
(ap status_gate-0 $array-inline)
|
||||
(ap status_gate_flat $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
@ -451,70 +448,64 @@ export function bugLNG63_2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $status_test-1
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-1)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-1 #status_result_canon-1)
|
||||
)
|
||||
(ap #status_result_canon-1 status_gate-2)
|
||||
)
|
||||
)
|
||||
(ap status_gate-2.$.[0]! status_gate-2-0)
|
||||
)
|
||||
(ap status_gate-2-0 $array-inline-1)
|
||||
)
|
||||
(ap "no" $array-inline-1)
|
||||
)
|
||||
(new $status_test-2
|
||||
(seq
|
||||
(new $status_test-1
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-2)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-1)
|
||||
(fold $status s
|
||||
(seq
|
||||
(ap s $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)
|
||||
(seq
|
||||
(ap s $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 s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-1 #status_result_canon-1)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-2 #status_result_canon-2)
|
||||
(ap #status_result_canon-1 status_gate-1)
|
||||
)
|
||||
(ap #status_result_canon-2 status_gate-3)
|
||||
)
|
||||
(ap status_gate-1.$.[0]! $array-inline-1)
|
||||
)
|
||||
(ap "no" $array-inline-1)
|
||||
)
|
||||
(new $status_test-2
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-2)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-2 #status_result_canon-2)
|
||||
)
|
||||
(ap #status_result_canon-2 status_gate-2)
|
||||
)
|
||||
)
|
||||
(ap status_gate-3.$.[0]! status_gate-3-0)
|
||||
)
|
||||
(ap status_gate-3-0 $array-inline-1)
|
||||
(ap status_gate-2.$.[0]! $array-inline-1)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline-1 #array-inline-1-0)
|
||||
)
|
||||
@ -523,7 +514,7 @@ export function bugLNG63_2(...args: any) {
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0 -status-flat-0 #array-inline-1-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate_flat -status-flat-0 #array-inline-1-0])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -629,12 +620,12 @@ export function bugLNG63(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -730,7 +721,7 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
(canon %init_peer_id% $status #-status-fix-0)
|
||||
)
|
||||
@ -740,38 +731,35 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $status_test-0
|
||||
(new $status_test-0
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-0)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
(ap s $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)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-0 #status_result_canon-0)
|
||||
)
|
||||
(ap #status_result_canon-0 status_gate-1)
|
||||
(canon %init_peer_id% $status_test-0 #status_result_canon-0)
|
||||
)
|
||||
(ap #status_result_canon-0 status_gate-0)
|
||||
)
|
||||
(ap status_gate-1.$.[0]! status_gate-1-0)
|
||||
)
|
||||
(ap status_gate-1-0 $array-inline)
|
||||
(ap status_gate-0.$.[0]! $array-inline)
|
||||
)
|
||||
(ap status_gate-0 $array-inline)
|
||||
(ap status_gate_flat $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
@ -783,70 +771,64 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(new $status_test-1
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-1)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-1 #status_result_canon-1)
|
||||
)
|
||||
(ap #status_result_canon-1 status_gate-2)
|
||||
)
|
||||
)
|
||||
(ap status_gate-2.$.[0]! status_gate-2-0)
|
||||
)
|
||||
(ap status_gate-2-0 $array-inline-1)
|
||||
)
|
||||
(ap "no" $array-inline-1)
|
||||
)
|
||||
(new $status_test-2
|
||||
(seq
|
||||
(new $status_test-1
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-2)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-1)
|
||||
(fold $status s
|
||||
(seq
|
||||
(ap s $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)
|
||||
(seq
|
||||
(ap s $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 s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-1 #status_result_canon-1)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-2 #status_result_canon-2)
|
||||
(ap #status_result_canon-1 status_gate-1)
|
||||
)
|
||||
(ap #status_result_canon-2 status_gate-3)
|
||||
)
|
||||
(ap status_gate-1.$.[0]! $array-inline-1)
|
||||
)
|
||||
(ap "no" $array-inline-1)
|
||||
)
|
||||
(new $status_test-2
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] status_incr-2)
|
||||
(fold $status s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $status_test-2 #status_result_canon-2)
|
||||
)
|
||||
(ap #status_result_canon-2 status_gate-2)
|
||||
)
|
||||
)
|
||||
(ap status_gate-3.$.[0]! status_gate-3-0)
|
||||
)
|
||||
(ap status_gate-3-0 $array-inline-1)
|
||||
(ap status_gate-2.$.[0]! $array-inline-1)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline-1 #array-inline-1-0)
|
||||
)
|
||||
@ -855,7 +837,7 @@ export function returnMultipleStreamResults(...args: any) {
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0 -status-flat-0 #array-inline-0 #array-inline-1-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate_flat -status-flat-0 #array-inline-0 #array-inline-1-0])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -976,7 +958,7 @@ export function bugLNG63_3(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate.$.[0]! status_gate-0)
|
||||
(ap status_gate.$.[0]! status_gate_flat)
|
||||
)
|
||||
(ap 2 $num)
|
||||
)
|
||||
@ -986,42 +968,39 @@ export function bugLNG63_3(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(canon %init_peer_id% $status #status_canon)
|
||||
(call %init_peer_id% ("op" "array_length") [#status_canon] array_length)
|
||||
)
|
||||
(ap array_length $array-inline)
|
||||
(canon %init_peer_id% $status #status_canon)
|
||||
(call %init_peer_id% ("op" "array_length") [#status_canon] array_length)
|
||||
)
|
||||
(new $num_test
|
||||
(ap array_length $array-inline)
|
||||
)
|
||||
(new $num_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] num_incr)
|
||||
(fold $num s
|
||||
(call %init_peer_id% ("math" "add") [0 1] num_incr)
|
||||
(fold $num s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $num_test)
|
||||
(canon %init_peer_id% $num_test #num_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #num_iter_canon.length num_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(ap s $num_test)
|
||||
(canon %init_peer_id% $num_test #num_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #num_iter_canon.length num_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $num_test #num_result_canon)
|
||||
)
|
||||
(ap #num_result_canon num_gate)
|
||||
(canon %init_peer_id% $num_test #num_result_canon)
|
||||
)
|
||||
(ap #num_result_canon num_gate)
|
||||
)
|
||||
)
|
||||
(ap num_gate.$.[0]! num_gate-0)
|
||||
)
|
||||
(ap num_gate-0 $array-inline)
|
||||
(ap num_gate.$.[0]! $array-inline)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline #array-inline-0)
|
||||
)
|
||||
@ -1050,11 +1029,11 @@ export function bugLNG63_3(...args: any) {
|
||||
)
|
||||
(canon %init_peer_id% $status_test-0 #status_result_canon-0)
|
||||
)
|
||||
(ap #status_result_canon-0 status_gate-1)
|
||||
(ap #status_result_canon-0 status_gate-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap status_gate-1.$.[0]! status_gate-1-0)
|
||||
(ap status_gate-0.$.[0]! status_gate-0_flat)
|
||||
)
|
||||
(canon %init_peer_id% $status #status_canon-0)
|
||||
)
|
||||
@ -1067,44 +1046,41 @@ export function bugLNG63_3(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(canon %init_peer_id% $status #status_canon-1)
|
||||
(call %init_peer_id% ("op" "array_length") [#status_canon-1] array_length-1)
|
||||
)
|
||||
(ap array_length-1 $array-inline-1)
|
||||
(canon %init_peer_id% $status #status_canon-1)
|
||||
(call %init_peer_id% ("op" "array_length") [#status_canon-1] array_length-1)
|
||||
)
|
||||
(ap 3 $array-inline-1)
|
||||
(ap array_length-1 $array-inline-1)
|
||||
)
|
||||
(new $num_test-0
|
||||
(ap 3 $array-inline-1)
|
||||
)
|
||||
(new $num_test-0
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [0 1] num_incr-0)
|
||||
(fold $num s
|
||||
(call %init_peer_id% ("math" "add") [0 1] num_incr-0)
|
||||
(fold $num s
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(ap s $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)
|
||||
)
|
||||
(ap s $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)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(canon %init_peer_id% $num_test-0 #num_result_canon-0)
|
||||
)
|
||||
(ap #num_result_canon-0 num_gate-1)
|
||||
(canon %init_peer_id% $num_test-0 #num_result_canon-0)
|
||||
)
|
||||
(ap #num_result_canon-0 num_gate-0)
|
||||
)
|
||||
)
|
||||
(ap num_gate-1.$.[0]! num_gate-1-0)
|
||||
)
|
||||
(ap num_gate-1-0 $array-inline-1)
|
||||
(ap num_gate-0.$.[0]! $array-inline-1)
|
||||
)
|
||||
(canon %init_peer_id% $array-inline-1 #array-inline-1-0)
|
||||
)
|
||||
@ -1114,7 +1090,7 @@ export function bugLNG63_3(...args: any) {
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-1-0 array_length-0 #array-inline-1-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [status_gate-0_flat array_length-0 #array-inline-1-0])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -93,10 +93,10 @@ export function use_name1(...args: any) {
|
||||
)
|
||||
(call %init_peer_id% ("get-dt" "get_dt") [name] results)
|
||||
)
|
||||
(ap results.$.field! results-0)
|
||||
(ap results.$.field! results_flat)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [results-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [results_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
@ -177,21 +177,21 @@ export function use_name2(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("get-dt" "get_dt") [name] results-0)
|
||||
(ap results-0.$.field! results-0-0)
|
||||
(ap results-0.$.field! results-0_flat)
|
||||
)
|
||||
(ap results-0-0 $results)
|
||||
(ap results-0_flat $results)
|
||||
)
|
||||
(call %init_peer_id% ("get-dt" "get_dt") [name] results-1)
|
||||
)
|
||||
(ap results-1.$.field! results-1-0)
|
||||
(ap results-1.$.field! results-1_flat)
|
||||
)
|
||||
(ap results-1-0 $results)
|
||||
(ap results-1_flat $results)
|
||||
)
|
||||
(call %init_peer_id% ("get-dt" "get_dt") [name] results-2)
|
||||
)
|
||||
(ap results-2.$.field! results-2-0)
|
||||
(ap results-2.$.field! results-2_flat)
|
||||
)
|
||||
(ap results-2-0 $results)
|
||||
(ap results-2_flat $results)
|
||||
)
|
||||
(canon %init_peer_id% $results #-results-fix-0)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -220,60 +220,57 @@ export function topologyBug427(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(par
|
||||
(fold peers peer-0
|
||||
(par
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call -relay- ("op" "noop") [])
|
||||
(xor
|
||||
(call peer-0 ("op" "identity") ["some string"] $results)
|
||||
(seq
|
||||
(call -relay- ("op" "noop") [])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
)
|
||||
(call -relay- ("op" "noop") [])
|
||||
)
|
||||
(call %init_peer_id% ("op" "noop") [])
|
||||
)
|
||||
(next peer-0)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(null)
|
||||
)
|
||||
(new $results_test
|
||||
(seq
|
||||
(par
|
||||
(fold peers peer-0
|
||||
(par
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [1 1] results_incr)
|
||||
(fold $results s
|
||||
(seq
|
||||
(seq
|
||||
(call -relay- ("op" "noop") [])
|
||||
(xor
|
||||
(call peer-0 ("op" "identity") ["some string"] $results)
|
||||
(seq
|
||||
(ap s $results_test)
|
||||
(canon %init_peer_id% $results_test #results_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #results_iter_canon.length results_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
(call -relay- ("op" "noop") [])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 1])
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(call -relay- ("op" "noop") [])
|
||||
)
|
||||
(canon %init_peer_id% $results_test #results_result_canon)
|
||||
(call %init_peer_id% ("op" "noop") [])
|
||||
)
|
||||
(ap #results_result_canon results_gate)
|
||||
(next peer-0)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
(null)
|
||||
)
|
||||
(new $results_test
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("math" "add") [1 1] results_incr)
|
||||
(fold $results s
|
||||
(seq
|
||||
(seq
|
||||
(ap s $results_test)
|
||||
(canon %init_peer_id% $results_test #results_iter_canon)
|
||||
)
|
||||
(xor
|
||||
(match #results_iter_canon.length results_incr
|
||||
(null)
|
||||
)
|
||||
(next s)
|
||||
)
|
||||
)
|
||||
(never)
|
||||
)
|
||||
)
|
||||
(canon %init_peer_id% $results_test #results_result_canon)
|
||||
)
|
||||
(ap #results_result_canon results_gate)
|
||||
)
|
||||
)
|
||||
(ap results_gate.$.[1]! results_gate-0)
|
||||
)
|
||||
(canon %init_peer_id% $results #-results-fix-0)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
@ -170,12 +170,12 @@ export function tryOtherwiseTest(...args: any) {
|
||||
)
|
||||
)
|
||||
)
|
||||
(ap f_gate.$.[0]! f_gate-0)
|
||||
(ap f_gate.$.[0]! f_gate_flat)
|
||||
)
|
||||
)
|
||||
)
|
||||
(xor
|
||||
(call %init_peer_id% ("callbackSrv" "response") [f_gate-0])
|
||||
(call %init_peer_id% ("callbackSrv" "response") [f_gate_flat])
|
||||
(call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 2])
|
||||
)
|
||||
)
|
||||
|
@ -3,7 +3,7 @@
|
||||
* This file is auto-generated. Do not edit manually: changes may be erased.
|
||||
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
|
||||
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
|
||||
* Aqua version: 0.9.1-renovate-fluencelabs-fluence-0-x-871e3f3-136-1
|
||||
* Aqua version: 0.9.1
|
||||
*
|
||||
*/
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
|
Loading…
x
Reference in New Issue
Block a user