mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-05-20 13:41:25 +00:00
19 lines
532 B
TypeScript
19 lines
532 B
TypeScript
|
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
|
||
|
import {barfoo, wrap} from "../compiled/examples/imports_exports/import2";
|
||
|
|
||
|
export async function import2Call(client: FluenceClient) {
|
||
|
|
||
|
registerServiceFunction(client, "hello", "more_call", (args: any[], _) => {
|
||
|
return {}
|
||
|
})
|
||
|
|
||
|
registerServiceFunction(client, "ohmygod", "more_call", (args: any[], _) => {
|
||
|
return {}
|
||
|
})
|
||
|
|
||
|
let first = await wrap(client)
|
||
|
let second = await barfoo(client)
|
||
|
|
||
|
return { first, second }
|
||
|
}
|