@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
14 lines (13 loc) • 651 B
TypeScript
/**
* Returns `true` when the checkout for `depositAddress` has reached the
* `COMPLETED` terminal state. Returns `false` while pending / failed /
* not-yet-loaded / no address.
*
* Composes the same hooks the post-checkout detail components use, so the
* direct-execution path gets its real polling-driven status (the merged
* list's `state` is hardcoded to `COMPLETED` for DEs — unreliable).
*
* `depositAddress` is either a deposit address (bridged checkouts) or a tx
* hash (direct executions); the underlying hooks pick the right branch.
*/
export declare function useIsCheckoutComplete(depositAddress: string | undefined): boolean;