UNPKG

httpay

Version:

HTTPay SDK for interacting with HTTPay smart contracts on Neutron

26 lines 1.08 kB
/** * Migration Guide: Using HTTPay SDK v2 * * This file demonstrates how to use the HTTPay SDK v2 in your React application. * * IMPORTS: * import { HTTPaySDKProvider, useHTTPaySDK } from "httpay/v2"; * import { RegistryClient, EscrowClient } from "httpay"; * * KEY FEATURES: * 1. The main hook is `useHTTPaySDK()` for accessing SDK functionality * 2. Uses individual RegistryClient and EscrowClient for contract interactions * 3. Connection state properties: isConnected, hasSigningCapabilities, walletAddress * 4. Better TypeScript support with generated types * 5. Separated hooks for different concerns * 6. More granular loading states * 7. Error handling via toast notifications (provided by application) * * REQUIREMENTS: * - The application must provide a toast function for notifications * - The application must provide the chain name for Cosmos Kit integration * - CosmWasm/CosmJS dependencies must be installed */ declare function App(): import("react/jsx-runtime").JSX.Element; export default App; //# sourceMappingURL=migration-example.d.ts.map