{"_id":"@eightsaf/cosmos-kit-extension","name":"@eightsaf/cosmos-kit-extension","dist-tags":{"latest":"1.2.0"},"versions":{"1.2.0":{"name":"@eightsaf/cosmos-kit-extension","version":"1.2.0","description":"EightSaf browser-extension wallet adapter for cosmos-kit","author":{"name":"EightSaf"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Eightblockchain/eightsaf.git","directory":"cosmos-kit-adapter"},"homepage":"https://github.com/Eightblockchain/eightsaf/tree/main/cosmos-kit-adapter","keywords":["cosmos","cosmos-kit","eightsaf","safrochain","wallet"],"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","exports":{".":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.js","types":"./dist/types/index.d.ts"}},"scripts":{"build":"tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && tsc -p tsconfig.types.json","type-check":"tsc --noEmit"},"peerDependencies":{"@cosmos-kit/core":">=2.0.0"},"devDependencies":{"@cosmjs/amino":"^0.32.4","@cosmjs/proto-signing":"^0.32.4","@cosmos-kit/core":"^2.18.1","typescript":"^5.9.3"},"gitHead":"2f39b74ed081290faf9e03b18745920e6cbfdd06","_id":"@eightsaf/cosmos-kit-extension@1.2.0","bugs":{"url":"https://github.com/Eightblockchain/eightsaf/issues"},"_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-H6wF+5aCVo0/6aLFMp3qdqcoeczJqflg2Sc9aD+hWsYZVut7hv2nftaR2hxLuZrAjfBXMJ1JpnchD8ODFBNdWQ==","shasum":"4aba9552d202e55dad6d7fb355a44798edebe3a1","tarball":"https://registry.npmjs.org/@eightsaf/cosmos-kit-extension/-/cosmos-kit-extension-1.2.0.tgz","fileCount":38,"unpackedSize":47616,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAf+ufLnIQG4Y56QVJYt3dO+Txo5jmV4vVbxtfpbuVmdAiEA1HK3f2vCZr1UBjoqwOukrlzSt3MIVb7SRSChKRs6kmI="}]},"_npmUser":{"name":"8pro","email":"mechackkobius@gmail.com"},"directories":{},"maintainers":[{"name":"8pro","email":"mechackkobius@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cosmos-kit-extension_1.2.0_1786640964725_0.958254781569309"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-13T17:09:24.254Z","1.2.0":"2026-08-13T17:09:24.857Z","modified":"2026-08-13T17:09:25.165Z"},"maintainers":[{"name":"8pro","email":"mechackkobius@gmail.com"}],"description":"EightSaf browser-extension wallet adapter for cosmos-kit","homepage":"https://github.com/Eightblockchain/eightsaf/tree/main/cosmos-kit-adapter","keywords":["cosmos","cosmos-kit","eightsaf","safrochain","wallet"],"repository":{"type":"git","url":"git+https://github.com/Eightblockchain/eightsaf.git","directory":"cosmos-kit-adapter"},"author":{"name":"EightSaf"},"bugs":{"url":"https://github.com/Eightblockchain/eightsaf/issues"},"license":"MIT","readme":"# @eightsaf/cosmos-kit-extension\n\nEightSaf browser-extension wallet adapter for [cosmos-kit](https://github.com/hyperweb-io/cosmos-kit).\n\n## Installation\n\n```bash\nnpm install @eightsaf/cosmos-kit-extension @cosmos-kit/core\n```\n\nOr using the local path during development (add to your hub/app's package.json):\n\n```json\n{\n  \"dependencies\": {\n    \"@eightsaf/cosmos-kit-extension\": \"file:../path/to/eightsaf/cosmos-kit-adapter\"\n  }\n}\n```\n\n## Usage\n\n```tsx\nimport { ChainProvider } from '@cosmos-kit/react';\nimport { wallets as eightsafWallets } from '@eightsaf/cosmos-kit-extension';\n// other wallets…\nimport { wallets as keplrWallets } from '@cosmos-kit/keplr-extension';\n\nexport function App() {\n  return (\n    <ChainProvider\n      chains={chains}\n      assetLists={assetLists}\n      wallets={[...keplrWallets, ...eightsafWallets]}\n    >\n      {/* app */}\n    </ChainProvider>\n  );\n}\n```\n\n## How it works\n\nThe adapter detects EightSaf via `window.eightsaf.isEightSaf === true` and exposes the standard\n`WalletClient` interface used by cosmos-kit, delegating directly to the extension provider.\n\n`enable(chainIds)` calls `window.eightsaf.enable(chainIds)`. `signDirect` returns CosmJS-shaped\n`Uint8Array` fields from the wallet — no adapter-side base64 conversion.\n\n**Disconnect:** Cosmos Kit should call `disable(chainId)` then `disconnect()`. `disable` revokes\nper-origin approval; `disconnect` clears in-page state only.\n\n## Publish to npm\n\n```bash\ncd cosmos-kit-adapter\npnpm install\npnpm build\nnpm publish --access public\n```\n","readmeFilename":"README.md","_rev":"1-85091e97c80d99b03bde69f99c18b40e"}