mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-30 16:11:54 +00:00
26 lines
518 B
TypeScript
26 lines
518 B
TypeScript
import {main, registerA, calc, calc2, ifCalc} from '../compiled/examples/funcs';
|
|
|
|
export async function funcsCall() {
|
|
|
|
registerA({
|
|
getJ: (n) => {
|
|
return n
|
|
}
|
|
})
|
|
|
|
let res1 = await main((c, arr) => {
|
|
console.log(c + ": " + arr)
|
|
})
|
|
|
|
let res2 = await calc((c, arr) => {
|
|
console.log(c + ": " + arr)
|
|
})
|
|
|
|
let res3 = await calc2((c, arr) => {
|
|
console.log(c + ": " + arr)
|
|
})
|
|
|
|
let res4 = await ifCalc()
|
|
|
|
return [res1, res2, res3, res4]
|
|
} |