Completely agree with you on the importance of idempotency. We will release our implementation shortly with a pattern close to the following:
``` const somethingThatMayHaveBeenCalledBefore = idempotent(myFunc, txnref); const result = await somethingThatMayHaveBeenCalledBefore(params); ```