UNPKG

@moveflow/widget

Version:

> ⚠️ **This is a testnet version** of the MoveFlow Checkout Widget. It is intended for development and testing purposes only. Do not use for mainnet payments.

14 lines (13 loc) 472 B
import { Payment } from "../model/subscription"; interface SubscriptionState { isCreatingSubscription: boolean; tokensApproved: boolean; subscriptionCreated: boolean; networkError: string; } export declare const useSubscription: (contractAddress: string, coinAddress: string, decimal: number) => { state: SubscriptionState; resetState: () => void; handleCreateSubscription: (payment: Payment, chainName: string) => Promise<void>; }; export {};