@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
13 lines (12 loc) • 549 B
TypeScript
import { TrpcClient } from "../utils/trpc";
import { PaymentStore } from "./paymentStore";
/**
* Add a subscriber to the payment store that runs side effects in response to
* events.
*
* @param store The payment store to subscribe to.
* @param trpc TRPC client pointing to the Daimo Pay API.
* @param log The logger to use for logging.
* @returns A function that can be used to unsubscribe from the store.
*/
export declare function attachPaymentEffectHandlers(store: PaymentStore, trpc: TrpcClient, log: (msg: string) => void): () => void;