2023-09-27 14:07:22 +02:00
|
|
|
import {
|
|
|
|
callConstant,
|
|
|
|
registerGetter,
|
|
|
|
timestampAndTtl,
|
|
|
|
} from "../compiled/examples/constants.js";
|
2023-06-19 19:28:34 +03:00
|
|
|
|
|
|
|
export async function constantsCall(): Promise<string[]> {
|
2023-09-27 14:07:22 +02:00
|
|
|
registerGetter({
|
|
|
|
createStr: (arg0) => {
|
|
|
|
return "" + arg0;
|
|
|
|
},
|
|
|
|
});
|
2023-06-19 19:28:34 +03:00
|
|
|
|
2023-09-27 14:07:22 +02:00
|
|
|
return await callConstant();
|
2023-06-19 19:28:34 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:07:22 +02:00
|
|
|
export async function particleTtlAndTimestampCall(
|
|
|
|
ttl: number,
|
|
|
|
): Promise<[number, number]> {
|
|
|
|
return await timestampAndTtl({ ttl: ttl });
|
2023-06-19 19:28:34 +03:00
|
|
|
}
|