{"_id":"@algovoi/use-wallet-algovoi","_rev":"3-2c618cefe144a8656ce8de145e1cf84a","name":"@algovoi/use-wallet-algovoi","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@algovoi/use-wallet-algovoi","version":"1.0.0","keywords":["algorand","voi","algovoi","use-wallet","wallet","blockchain"],"author":{"name":"AlgoVoi","email":"support@algovoi.co.uk"},"license":"MIT","_id":"@algovoi/use-wallet-algovoi@1.0.0","maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"homepage":"https://github.com/ArmyITC/AlgoVoi#readme","bugs":{"url":"https://github.com/ArmyITC/AlgoVoi/issues"},"dist":{"shasum":"2179a838457be2c61c1cff682b3bcd0fa57ed998","tarball":"https://registry.npmjs.org/@algovoi/use-wallet-algovoi/-/use-wallet-algovoi-1.0.0.tgz","fileCount":4,"integrity":"sha512-Fu4kHmC8XvCy3RPRjRJpPjbuFI49qwCLZqVB/2G1XIzwvvbrQ2fZMPrw4A2veq8LCdhIgaFINW5UFZICJ3xlxg==","signatures":[{"sig":"MEUCIEsTxOVqgCgJthL6fVrVP2lFzhKlAygrmKmOgP9cylQBAiEAlFtWauRcUs1/SF+aDEWQrdgVLyES/375O/KsTa3VRCU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22059},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"lint":"eslint \"src/**/*.{js,ts}\"","test":"vitest run","build":"tsdown","start":"tsdown --watch","typecheck":"tsc --noEmit","test:watch":"vitest --watch"},"_npmUser":{"name":"algovoi","email":"chopmob@gmail.com"},"repository":{"url":"git+https://github.com/ArmyITC/AlgoVoi.git","type":"git","directory":"packages/use-wallet-algovoi"},"_npmVersion":"11.6.2","description":"AlgoVoi wallet adapter for @txnlab/use-wallet","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^29.1.1","tsdown":"^0.21.0","vitest":"^2.0.0","algosdk":"^3.5.0","typescript":"^5.9.0","@txnlab/use-wallet":"^5.0.0-rc.1"},"peerDependencies":{"algosdk":"^3.0.0","@txnlab/use-wallet":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-wallet-algovoi_1.0.0_1778180654043_0.01690164541569339","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@algovoi/use-wallet-algovoi","version":"1.0.1","keywords":["algorand","voi","algovoi","use-wallet","wallet","blockchain"],"author":{"name":"AlgoVoi","email":"support@algovoi.co.uk"},"license":"MIT","_id":"@algovoi/use-wallet-algovoi@1.0.1","maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"homepage":"https://github.com/ArmyITC/AlgoVoi#readme","bugs":{"url":"https://github.com/ArmyITC/AlgoVoi/issues"},"dist":{"shasum":"3d1976f8a583a913dfe8b60f9ba0f8f8fca1ee8e","tarball":"https://registry.npmjs.org/@algovoi/use-wallet-algovoi/-/use-wallet-algovoi-1.0.1.tgz","fileCount":4,"integrity":"sha512-/r+Amvn4VjslGVqZDHPv23WKCzfpgfMDyWF0lKrX94ZsY70X5O1rqQTU/IsAPkwxezDLnZobTqaypdv4VlSM7g==","signatures":[{"sig":"MEUCIB6HCeYaHBkjxxTPrY3GDw6j35deUprdaeojPU5YTWvgAiEA3yC8S3o1EuLWlQz2BTHdhRO3wikXUvB8NJJyFMbI+10=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22074},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"lint":"eslint \"src/**/*.{js,ts}\"","test":"vitest run","build":"tsdown","start":"tsdown --watch","typecheck":"tsc --noEmit","test:watch":"vitest --watch"},"_npmUser":{"name":"algovoi","email":"chopmob@gmail.com"},"repository":{"url":"git+https://github.com/ArmyITC/AlgoVoi.git","type":"git","directory":"packages/use-wallet-algovoi"},"_npmVersion":"11.6.2","description":"AlgoVoi wallet adapter for @txnlab/use-wallet","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^29.1.1","tsdown":"^0.21.0","vitest":"^2.0.0","algosdk":"^3.5.0","typescript":"^5.9.0","@txnlab/use-wallet":"^5.0.0-rc.1"},"peerDependencies":{"algosdk":"^3.0.0","@txnlab/use-wallet":"^4.0.0 || ^5.0.0-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/use-wallet-algovoi_1.0.1_1779785876336_0.9120428218498469","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@algovoi/use-wallet-algovoi","version":"1.0.2","description":"AlgoVoi wallet adapter for @txnlab/use-wallet","author":{"name":"AlgoVoi","email":"support@algovoi.co.uk"},"license":"MIT","homepage":"https://github.com/chopmob-cloud/use-wallet-algovoi#readme","repository":{"type":"git","url":"git+https://github.com/chopmob-cloud/use-wallet-algovoi.git"},"bugs":{"url":"https://github.com/chopmob-cloud/use-wallet-algovoi/issues"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"peerDependencies":{"@txnlab/use-wallet":"^5.0.0-rc.1","algosdk":"^3.0.0"},"devDependencies":{"@eslint/js":"^9.0.0","@txnlab/use-wallet":"^5.0.0-rc.1","algosdk":"^3.5.0","eslint":"^9.0.0","eslint-config-prettier":"^10.0.0","jsdom":"^29.1.1","tsdown":"^0.21.0","typescript":"^5.9.0","typescript-eslint":"^8.0.0","vitest":"^2.0.0"},"publishConfig":{"access":"public"},"scripts":{"build":"tsdown","start":"tsdown --watch","test":"vitest run","test:watch":"vitest --watch","lint":"eslint \"src/**/*.{js,ts}\"","typecheck":"tsc --noEmit"},"engines":{"node":">=18"},"keywords":["algorand","voi","algovoi","use-wallet","wallet","blockchain"],"gitHead":"919646064f487c8abf9b0062c85ffcb293bf1a42","_id":"@algovoi/use-wallet-algovoi@1.0.2","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-hovc8awxNbFUhjvPLB/2PrqgT4cL3E7FNjzLIA14kJVsfs7bNo69zGKwQUKnF7t7cJkKYsrMujRlPfreUsiDFw==","shasum":"f4eb98175cf357bfae1ac22708dc7adba17d7f45","tarball":"https://registry.npmjs.org/@algovoi/use-wallet-algovoi/-/use-wallet-algovoi-1.0.2.tgz","fileCount":6,"unpackedSize":25597,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHx2Tbc9nmB0R2r9txdkQQsSQ8SYjcRE4q+bRKg1NScSAiAr3luK/KAXKW9xoD/MU3ujmd62NNPDCHAk0bTFrsWriw=="}]},"_npmUser":{"name":"algovoi","email":"chopmob@gmail.com"},"directories":{},"maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use-wallet-algovoi_1.0.2_1786088596154_0.32670703623831376"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T19:04:13.954Z","modified":"2026-08-07T07:43:16.435Z","1.0.0":"2026-05-07T19:04:14.186Z","1.0.1":"2026-05-26T08:57:56.463Z","1.0.2":"2026-08-07T07:43:16.291Z"},"bugs":{"url":"https://github.com/chopmob-cloud/use-wallet-algovoi/issues"},"author":{"name":"AlgoVoi","email":"support@algovoi.co.uk"},"license":"MIT","homepage":"https://github.com/chopmob-cloud/use-wallet-algovoi#readme","keywords":["algorand","voi","algovoi","use-wallet","wallet","blockchain"],"repository":{"type":"git","url":"git+https://github.com/chopmob-cloud/use-wallet-algovoi.git"},"description":"AlgoVoi wallet adapter for @txnlab/use-wallet","maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"readme":"# @algovoi/use-wallet-algovoi\n\nAlgoVoi wallet adapter for [`@txnlab/use-wallet`](https://github.com/TxnLab/use-wallet) v5.\n\nConnects the [AlgoVoi browser extension](https://algovoi.co.uk) to any use-wallet\napplication. The AlgoVoi extension injects an ARC-0027 compliant provider at\n`window.algorand`; this adapter wraps it in the use-wallet v5 adapter model.\n\n## Installation\n\n```bash\nnpm install @algovoi/use-wallet-algovoi\n```\n\nThis package has peer dependencies on `@txnlab/use-wallet` (v5) and `algosdk` (v3):\n\n```bash\nnpm install @txnlab/use-wallet algosdk\n```\n\n## Usage\n\nRegister the adapter with the `WalletManager` like any other v5 wallet:\n\n```ts\nimport { WalletManager, NetworkId } from '@txnlab/use-wallet'\nimport { algovoi } from '@algovoi/use-wallet-algovoi'\n\nconst manager = new WalletManager({\n  wallets: [\n    algovoi()\n  ],\n  defaultNetwork: NetworkId.MAINNET\n})\n```\n\nThe same `algovoi()` factory works with every use-wallet framework binding\n(`@txnlab/use-wallet-react`, `-vue`, `-solid`, `-svelte`).\n\n## Exports\n\n| Export           | Description                                                         |\n| ---------------- | ------------------------------------------------------------------- |\n| `algovoi()`      | Factory returning a `WalletAdapterConfig` for the `WalletManager`.  |\n| `AlgoVoiAdapter` | The adapter class (extends `BaseWallet`), exported for advanced use.|\n| `WALLET_ID`      | The `'algovoi'` wallet id constant.                                 |\n\n## How it works\n\n- On `connect`, the adapter waits for the AlgoVoi provider to be injected\n  (`window.algorand`, signalled by the `algorand#initialized` event), then calls\n  the ARC-0027 `enable()` method to obtain accounts.\n- On `signTransactions`, transaction groups are normalised and forwarded to the\n  provider's `signTransactions()` method; base64 results are decoded back to\n  `Uint8Array`.\n- `resumeSession` restores a previously connected session from the use-wallet\n  store without prompting the user again.\n\n## Development\n\n```bash\nnpm install\nnpm run build      # tsdown\nnpm test           # vitest\nnpm run typecheck  # tsc --noEmit\nnpm run lint       # eslint\n```\n\n## License\n\n[MIT](./LICENSE) © AlgoVoi\n","readmeFilename":"README.md"}