Files
aqua-playground/src/dataAliasCall.ts

14 lines
409 B
TypeScript
Raw Normal View History

2021-04-14 02:38:35 +03:00
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
2021-04-15 12:45:18 +03:00
import {getAliasedData} from "./compiled/dataAlias";
2021-04-14 02:38:35 +03:00
export async function dataAliasCall(client: FluenceClient) {
2021-04-14 17:46:09 +03:00
registerServiceFunction(client, "somesrv", "get", (args: any[], _) => {
2021-04-14 02:38:35 +03:00
return {
peerId: "peer id str",
name: "name str"
}
})
return await getAliasedData(client)
2021-04-15 12:45:18 +03:00
}