@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
16 lines • 959 B
TypeScript
import type { Account } from "@ledgerhq/types-live";
/**
* After each sync or scan, remove operations from the pending pools if necessary
* Operations stay pending if and only if
* - they are confirmed, i.e. their hash appear in the operation list
* - they are not outdated, i.e. their sequence number is at least greater than the
* sequence number of the latest transaction
* NOTE Compared to the default behaviour
* - pending operations of token accounts are cleaned up, so we don't see both pending and completed
* sub operations in the operation details drawer
* - pending operations are cleaned if their hash already belong to the completed operations, preventing
* undesired replacement (ex: optimistic operation for self token sending on EVM is incomplete, since
* it only contains the OUT sub operation)
*/
export declare function postSync(initial: Account, synced: Account): Account;
//# sourceMappingURL=postSync.d.ts.map