mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-22 04:31:37 +00:00
14 lines
419 B
TypeScript
14 lines
419 B
TypeScript
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
|
|
import {getAliasedData} from "../compiled/examples/dataAlias";
|
|
|
|
export async function dataAliasCall(client: FluenceClient) {
|
|
registerServiceFunction(client, "somesrv", "get", (args: any[], _) => {
|
|
return {
|
|
peerId: "peer id str",
|
|
name: "name str"
|
|
}
|
|
})
|
|
|
|
return await getAliasedData(client)
|
|
}
|