mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-04-24 22:42:13 +00:00
17 lines
436 B
TypeScript
17 lines
436 B
TypeScript
|
import {callConstant, registerGetter, timestampAndTtl} from '../compiled/examples/constants.js';
|
||
|
|
||
|
export async function constantsCall(): Promise<string[]> {
|
||
|
registerGetter({
|
||
|
createStr: (arg0) => {
|
||
|
return '' + arg0;
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return await callConstant();
|
||
|
}
|
||
|
|
||
|
export async function particleTtlAndTimestampCall(ttl: number): Promise<[number, number]> {
|
||
|
|
||
|
return await timestampAndTtl({ttl: ttl});
|
||
|
}
|