mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-25 00:21:46 +00:00
move examples, use index.ts as playground, update aqua-cli version
This commit is contained in:
12
src/examples/complex.ts
Normal file
12
src/examples/complex.ts
Normal file
@ -0,0 +1,12 @@
|
||||
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]
|
||||
})
|
||||
|
||||
return await doStuff(client, client.relayPeerId!, client.selfPeerId, true, true, ["1", "2"], ["3", "4"], "some str")
|
||||
}
|
Reference in New Issue
Block a user