{"_id":"@c2x-station/use-wallet","name":"@c2x-station/use-wallet","dist-tags":{"latest":"3.8.0"},"versions":{"3.8.0":{"author":{"name":"sdjeong","email":"sdjeong@zenaad.com"},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/c2x-station/wallet-provider.git"},"bugs":{"url":"https://github.com/c2x-station/wallet-provider/issues"},"homepage":"https://github.com/c2x-station/wallet-provider/tree/main/packages/src/@c2x-station/use-wallet","engines":{"node":">=12"},"publishConfig":{"cache":"~/.npm","access":"public"},"typings":"index.d.ts","name":"@c2x-station/use-wallet","version":"3.8.0","dependencies":{"@c2x-station/wallet-types":"^3.8.0"},"main":"./_commonjs/index.js","module":"./index.js","peerDependencies":{"react":">=17.0.0","@terra-money/terra.js":"^3.0.0"},"exports":{".":{"import":"./index.js","require":"./_commonjs/index.js","node":"./_commonjs/index.js","default":"./index.js"},"./public/*":"./public/*","./README.md":"./README.md","./useConnectedWallet":{"import":"./useConnectedWallet.js","require":"./_commonjs/useConnectedWallet.js","node":"./_commonjs/useConnectedWallet.js","default":"./useConnectedWallet.js"},"./useConnectedWallet.js":{"import":"./useConnectedWallet.js","require":"./_commonjs/useConnectedWallet.js","node":"./_commonjs/useConnectedWallet.js","default":"./useConnectedWallet.js"},"./useInstallableWallets":{"import":"./useInstallableWallets.js","require":"./_commonjs/useInstallableWallets.js","node":"./_commonjs/useInstallableWallets.js","default":"./useInstallableWallets.js"},"./useInstallableWallets.js":{"import":"./useInstallableWallets.js","require":"./_commonjs/useInstallableWallets.js","node":"./_commonjs/useInstallableWallets.js","default":"./useInstallableWallets.js"},"./useLCDClient":{"import":"./useLCDClient.js","require":"./_commonjs/useLCDClient.js","node":"./_commonjs/useLCDClient.js","default":"./useLCDClient.js"},"./useLCDClient.js":{"import":"./useLCDClient.js","require":"./_commonjs/useLCDClient.js","node":"./_commonjs/useLCDClient.js","default":"./useLCDClient.js"},"./useWallet":{"import":"./useWallet.js","require":"./_commonjs/useWallet.js","node":"./_commonjs/useWallet.js","default":"./useWallet.js"},"./useWallet.js":{"import":"./useWallet.js","require":"./_commonjs/useWallet.js","node":"./_commonjs/useWallet.js","default":"./useWallet.js"}},"description":"Core interface of [`@c2x-station/wallet-provider`](https://www.npmjs.com/package/@c2x-station/wallet-provider).","_id":"@c2x-station/use-wallet@3.8.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-+3LUMeYZtyYTzjBV6pyIWua3oAMAqaQ1DRC9ybhvDBFIDpi3koSkLPfO4z03mxllK2aOnbfhHc/GHNkPPoDsIw==","shasum":"4a483b00aca43b3efbf1203c737868ee5a4eafae","tarball":"https://registry.npmjs.org/@c2x-station/use-wallet/-/use-wallet-3.8.0.tgz","fileCount":17,"unpackedSize":61631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmUHxH+OpHHE2XEAVLF8pM3gWhDTgdWywr9bmZCVqX/wIhANwPCLiJy487WrdXH76SZWQsV5k+p3zJaVu0ewvLC7Du"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiReHrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk5Q//dKcSIzN4AytdIojAkEAfY9atA/5mOgUj50btvq7R5SA8uHE+\r\nM3Vg7h/mq8iqdryAJ4mPmNr3Hu6Ky3VGN0cNugHfCf0wj6ZYtjM546U3rpaP\r\nJL2wfb6Fss8cckw6usBxtRzLl/UhpfCKl1lYvTUuOROY+QP/vDw40h97cHO2\r\nxo2JMaTjGX+azq/GWm4NAz3Kh76x8343m7kXUVPp7UWnaNQEHK4RvEVq9Y/y\r\nHthhhBVzHZywxTzAZHwRehGC2xLtnHEOE45JCdAscDQVBbdjwWascAROn+/x\r\nS5QEsF1XjWjdUYu6uOVdCftZ9YA0sfxMB4snGvcE9nFahvZNNBvWf32P+0CG\r\nnqtGo9m4ILA2MYcbW3UmJgY6WmVJSXYmBT3wZpmzLtYbk1Moch82B6TzDflo\r\n5sSv0hfoPtVpfi6mhk7x7POC+1H88N8Tp9+c12+7Ui/TcBORTL8UHruvnV7u\r\nuM5+6cYFM2P612xvWwnTG4sXYITBiGJD54an8uDyioArO/yz75h1VDHN1RyQ\r\nGciFZTHq5twKPd7ysanpMpi6+QTz4pSvQ6AFjOWjuHnPCvF2wAR0pglfqura\r\nKQHVgrnk1Fe/aYnJGgSsUd5Y4LdTsbt1CFLBYDeuh3xrYnS71pEgEdU/9psW\r\nB50kqeMUL4Un4WQr9f1+EB3evUOWG2VATRk=\r\n=HH/4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zenaad","email":"sdjeong@zenaad.com"},"directories":{},"maintainers":[{"name":"zenaad","email":"sdjeong@zenaad.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-wallet_3.8.0_1648746986936_0.0346946213139514"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-31T17:16:26.827Z","3.8.0":"2022-03-31T17:16:27.073Z","modified":"2022-03-31T17:16:27.221Z"},"maintainers":[{"name":"zenaad","email":"sdjeong@zenaad.com"}],"description":"Core interface of [`@c2x-station/wallet-provider`](https://www.npmjs.com/package/@c2x-station/wallet-provider).","homepage":"https://github.com/c2x-station/wallet-provider/tree/main/packages/src/@c2x-station/use-wallet","repository":{"type":"git","url":"git+https://github.com/c2x-station/wallet-provider.git"},"author":{"name":"sdjeong","email":"sdjeong@zenaad.com"},"bugs":{"url":"https://github.com/c2x-station/wallet-provider/issues"},"license":"Apache-2.0","readme":"# `@c2x-station/use-wallet`\n\nCore interface of [`@c2x-station/wallet-provider`](https://www.npmjs.com/package/@c2x-station/wallet-provider).\n\nIf you want to create a library using the `useWallet()` of `@c2x-station/wallet-provider`, you can use\nthis `@c2x-station/use-wallet` instead of `@c2x-station/wallet-provider` for its internal dependence.\n\nBecause `@c2x-station/wallet-provider` contains multiple implementations, if your library is built\non `@c2x-station/wallet-provider`, problems can arise in exceptional situations (e.g. when users implement and use\nContext themselves).\n\nUsing `@c2x-station/use-wallet` instead of `@c2x-station/wallet-provider` can make your library work reliably in a more\ndiverse set of implementations.\n\nYou don't have to use this library if you're just creating a WebApp. Use `@c2x-station/wallet-provider`.\n\n# APIs\n\n- React context and hooks\n  - `const WalletContext = React.createContext()`\n  - `useWallet(): Wallet`\n  - `useConnectedWallet(): ConnectedWallet`\n- Types\n  - `enum WalletStatus`\n  - `enum ConnectType`\n  - `type WalletInfo`\n  - `type WalletStates`\n  - `type NetworkInfo`\n  - `type TxResult extends CreateTxOptions`\n  - `type SignResult extends CreateTxOptions`\n  - `type SignBytesResult`\n- Error types\n  - `class UserDenied extends Error`\n  - `class CreateTxFailed extends Error`\n  - `class TxFailed extends Error`\n  - `class Timeout extends Error`\n  - `class TxUnspecifiedError extends Error`\n","readmeFilename":"README.md"}