@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
21 lines • 1.16 kB
TypeScript
export function buildZoeManualTimer(log?: (...args: any[]) => void, startValue?: import("@agoric/time").Timestamp | bigint, options?: ZoeManualTimerOptions): ZoeManualTimer;
export default buildZoeManualTimer;
export type ZoeManualTimerOptions = {
timeStep?: import("@agoric/time").RelativeTime | bigint;
eventLoopIteration?: () => Promise<void>;
};
export type ManualTimerAdmin = {
/**
* Advance the timer by one tick.
* DEPRECATED: use `await tickN(1)` instead. `tick` function errors might be
* thrown synchronously, even though success is signaled by returning anything
* other than a rejected promise.
*/
tick: (msg?: string) => void | Promise<void>;
tickN: (nTimes: number, msg?: string) => Promise<void>;
};
export type ZoeManualTimer = ReturnType<typeof buildManualTimer> & RemotableBrand<ManualTimerAdmin, TimerServiceCommon & ManualTimerAdmin> & ManualTimerAdmin;
import { buildManualTimer } from '@agoric/swingset-vat/tools/manual-timer.js';
import type { TimerServiceCommon } from '@agoric/time';
import type { RemotableBrand } from '@endo/eventual-send';
//# sourceMappingURL=manualTimer.d.ts.map