update gateway to new js client

This commit is contained in:
DieMyst
2023-02-21 11:44:13 +04:00
parent 0fa3eac2c4
commit e8fc89f28a
6 changed files with 2895 additions and 49 deletions

View File

@ -1,17 +1,19 @@
/* eslint-disable */
// @ts-nocheck
/**
*
* 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.3
* Aqua version: 0.10.1
*
*/
import { FluencePeer } from '@fluencelabs/fluence';
import {
callFunction$$,
registerService$$,
} from '@fluencelabs/fluence/dist/internal/compilerSupport/v4.js';
v5_callFunction as callFunction$$,
v5_registerService as registerService$$,
} from '@fluencelabs/js-client.api';
// Services
@ -243,8 +245,11 @@ export function roundRobinEth(...args) {
(xor
(seq
(seq
(call %init_peer_id% ("op" "array_length") [uris] array_length)
(call %init_peer_id% ("math" "rem") [requestNumber array_length] rem)
(seq
(ap uris uris_to_functor)
(ap uris_to_functor.length uris_length)
)
(call %init_peer_id% ("math" "rem") [requestNumber uris_length] rem)
)
(call %init_peer_id% ("logger" "logCall") [uris.$.[rem]!])
)
@ -747,8 +752,11 @@ export function roundRobin(...args) {
(xor
(seq
(seq
(call %init_peer_id% ("op" "array_length") [uris] array_length)
(call %init_peer_id% ("math" "rem") [requestNumber array_length] rem)
(seq
(ap uris uris_to_functor)
(ap uris_to_functor.length uris_length)
)
(call %init_peer_id% ("math" "rem") [requestNumber uris_length] rem)
)
(call %init_peer_id% ("logger" "logCall") [uris.$.[rem]!])
)
@ -997,3 +1005,5 @@ export function call(...args) {
script
)
}
/* eslint-enable */