Skip to content

Instantly share code, notes, and snippets.

@nmathew98
nmathew98 / txn.ts
Created February 10, 2024 10:26
txn: simple distributed transactions
interface TxnSetupOptions {
[prefix: string]: string
}
interface ResolveTransaction<T> {
(keys: string | string[], data?: T): Promise<T>;
(keys: string | string[]): Promise<void>;
}
interface RejectTransaction {