Skip to content

Commit

Permalink
timestamp durable
Browse files Browse the repository at this point in the history
  • Loading branch information
iomekam authored and 0xpatrickdev committed Nov 28, 2024
1 parent 0005ecf commit 1600b19
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/orchestration/src/exos/local-orchestration-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,7 @@ export const prepareLocalOrchestrationAccountKit = (
* first result
*/
extractFirstResultWatcher: {
/**
* @param {Record<unknown, unknown>[]} results
*/
/** @param {Record<unknown, unknown>[]} results */
onFulfilled(results) {
results.length === 1 ||
Fail`expected exactly one result; got ${results}`;
Expand Down Expand Up @@ -500,9 +498,7 @@ export const prepareLocalOrchestrationAccountKit = (
});
});
},
/**
* @type {HostOf<OrchestrationAccountI['getBalance']>}
*/
/** @type {HostOf<OrchestrationAccountI['getBalance']>} */
getBalance(denomArg) {
return asVow(() => {
const [brand, denom] =
Expand Down Expand Up @@ -545,9 +541,7 @@ export const prepareLocalOrchestrationAccountKit = (
);
},

/**
* @type {HostOf<OrchestrationAccountI['getPublicTopics']>}
*/
/** @type {HostOf<OrchestrationAccountI['getPublicTopics']>} */
getPublicTopics() {
// getStoragePath resolves promptly (same run), so we don't need a watcher
// eslint-disable-next-line no-restricted-syntax
Expand Down Expand Up @@ -700,7 +694,7 @@ export const prepareLocalOrchestrationAccountKit = (
opts?.timeoutTimestamp ??
(opts?.timeoutHeight
? 0n
: E(timestampHelper).getTimeoutTimestampNS());
: asVow(() => E(timestampHelper).getTimeoutTimestampNS()));

// don't resolve the vow until the transfer is confirmed on remote
// and reject vow if the transfer fails for any reason
Expand Down

0 comments on commit 1600b19

Please sign in to comment.