move examples, use index.ts as playground, update aqua-cli version

This commit is contained in:
DieMyst
2021-05-25 13:35:52 +03:00
parent bb728cb3b5
commit 4405f465d1
33 changed files with 220 additions and 184 deletions

View File

@ -0,0 +1,13 @@
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
import {getAliasedData} from "../compiled/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)
}