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