mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-28 07:51:50 +00:00
15 lines
492 B
TypeScript
15 lines
492 B
TypeScript
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
|
|
import {doStuff} from "./compiled/complex";
|
|
import {testNet} from "@fluencelabs/fluence-network-environment";
|
|
|
|
export async function complexCall(client: FluenceClient) {
|
|
|
|
registerServiceFunction(client, "some-id", "t", (args: any[], _) => {
|
|
return args[0]
|
|
})
|
|
|
|
let peer2 = testNet[0]
|
|
|
|
return await doStuff(client, client.relayPeerId!, client.selfPeerId, true, true, ["1", "2"], ["3", "4"])
|
|
}
|