mirror of
https://github.com/fluencelabs/examples
synced 2025-06-27 08:41:34 +00:00
update gateway to new js client
This commit is contained in:
@ -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 */
|
Reference in New Issue
Block a user