gondi 0.37.1 → 0.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,16 @@
1
- import { PublicClient } from 'viem';
1
+ import { PublicClient, TransactionReceipt } from 'viem';
2
2
  import { HexString } from '../blockchain';
3
3
  export declare const isEmptyCalldata: (calldata: HexString) => calldata is "0x";
4
+ /**
5
+ * Returns the receipt of a mined transaction, or throws when it reverted.
6
+ *
7
+ * IMPLEMENTATION NOTE: viem's `waitForTransactionReceipt` resolves with the
8
+ * receipt whatever its outcome and reports a revert only through
9
+ * `receipt.status === 'reverted'`
10
+ * (https://viem.sh/docs/actions/public/waitForTransactionReceipt#returns), so a
11
+ * caller that awaits the receipt alone treats a reverted transaction as mined.
12
+ */
13
+ export declare const assertTransactionSucceeded: (receipt: TransactionReceipt) => TransactionReceipt;
4
14
  /**
5
15
  * Total time a receipt wait keeps trying before giving up on a broadcast
6
16
  * transaction. Slow-to-mine transactions usually confirm well within this