{"_id":"@rialo/wallet-standard","_rev":"5-f5a792fd20c631d01a106613d2a0b261","name":"@rialo/wallet-standard","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@rialo/wallet-standard","version":"0.1.0","keywords":["wallet","standard","rialo","wallet-standard","blockchain","web3","crypto"],"author":{"name":"Subzero Labs","email":"build@subzero.xyz"},"license":"Apache-2.0","_id":"@rialo/wallet-standard@0.1.0","maintainers":[{"name":"telezhnaya","email":"olyatelezhnaya@gmail.com"},{"name":"subzerolabs","email":"lu@subzero.xyz"},{"name":"mocutobi","email":"tobi@subzero.xyz"},{"name":"subzero_thanos","email":"thanos@subzero.xyz"}],"homepage":"https://github.com/SubzeroLabs/wallet-standard#readme","bugs":{"url":"https://github.com/SubzeroLabs/wallet-standard/issues"},"dist":{"shasum":"f20f5f2c12744b39810d1fc2885e6b509d943f2c","tarball":"https://registry.npmjs.org/@rialo/wallet-standard/-/wallet-standard-0.1.0.tgz","fileCount":9,"integrity":"sha512-+BA1APxgjZzCj1+tOFRG4Au5Oh2FL/Ed5KeFI+x5zcfgEm7aEaOY3jCtDxE16AHWe0m4o220+xXD25UIWxr2BA==","signatures":[{"sig":"MEYCIQDMzRhicdjXGC3O7N07s+uaME52WSfD6r+07W4X+bgZfwIhAOvU15BA6L+/w5EcF1Eemjt/2K3HMCbtoj8J7ovArfOg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104583},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"d0d7327604e4cea367f9bee83c2e9fa062473ce6","scripts":{"dev":"tsup --watch","lint":"biome check src/","build":"tsup","prepack":"pnpm run build","lint:fix":"biome check --write src/","pack:dry":"npm pack --dry-run","pack:test":"npm pack && tar -tzf *.tgz","check-types":"tsc --noEmit","publish:dry":"npm publish --dry-run","publish:local":"npm publish --registry http://localhost:4873/","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish"},"_npmUser":{"name":"subzero_thanos","email":"thanos@subzero.xyz"},"repository":{"url":"git+https://github.com/SubzeroLabs/wallet-standard.git","type":"git"},"_npmVersion":"11.4.2","description":"Wallet Standard definition for Rialo Network","directories":{},"sideEffects":false,"_nodeVersion":"24.4.1","dependencies":{"@wallet-standard/base":"1.1.0","@wallet-standard/features":"1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.22.0","devDependencies":{"tsup":"^8.5.1","typescript":"5.9.3","@biomejs/biome":"2.3.4"},"_npmOperationalInternal":{"tmp":"tmp/wallet-standard_0.1.0_1764767562624_0.988598156817357","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@rialo/wallet-standard","version":"0.1.1","keywords":["wallet","standard","rialo","wallet-standard","blockchain","web3","crypto"],"author":{"name":"Subzero Labs","email":"build@subzero.xyz"},"license":"Apache-2.0","_id":"@rialo/wallet-standard@0.1.1","maintainers":[{"name":"telezhnaya","email":"olyatelezhnaya@gmail.com"},{"name":"subzerolabs","email":"lu@subzero.xyz"},{"name":"mocutobi","email":"tobi@subzero.xyz"},{"name":"subzero_thanos","email":"thanos@subzero.xyz"}],"homepage":"https://github.com/SubzeroLabs/wallet-standard#readme","bugs":{"url":"https://github.com/SubzeroLabs/wallet-standard/issues"},"dist":{"shasum":"ed63511e676ca2a4748eb1c36f2ba6ce74367dab","tarball":"https://registry.npmjs.org/@rialo/wallet-standard/-/wallet-standard-0.1.1.tgz","fileCount":9,"integrity":"sha512-p1i9dNjMPYm2s0Hye3FatAll9Aaa90T1CN4+VGl0fafoSmnFHX83W24m689cr56Wzq4WwuhYfhW4ZxR5adLQdQ==","signatures":[{"sig":"MEYCIQCE0gYFAfaSHBqqXbEp28NITKB+NP0dQRZIeIYMDB5/jwIhAI0ORCdEFhmbRzpfx6brKOQRfypXwzY31rgFlIHtffWe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104401},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"30917e82993f6b658944404559efa15d3a40d366","scripts":{"dev":"tsup --watch","lint":"biome check src/","build":"tsup","prepack":"pnpm run build","lint:fix":"biome check --write src/","pack:dry":"npm pack --dry-run","pack:test":"npm pack && tar -tzf *.tgz","check-types":"tsc --noEmit","publish:dry":"npm publish --dry-run","publish:local":"npm publish --registry http://localhost:4873/","release:major":"npm version major && npm publish","release:minor":"npm version minor && npm publish","release:patch":"npm version patch && npm publish"},"_npmUser":{"name":"subzero_thanos","email":"thanos@subzero.xyz"},"repository":{"url":"git+https://github.com/SubzeroLabs/wallet-standard.git","type":"git"},"_npmVersion":"11.4.2","description":"Wallet Standard definition for Rialo Network","directories":{},"sideEffects":false,"_nodeVersion":"24.4.1","dependencies":{"@wallet-standard/base":"1.1.0","@wallet-standard/features":"1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.22.0","devDependencies":{"tsup":"^8.5.1","typescript":"5.9.3","@biomejs/biome":"2.3.4"},"_npmOperationalInternal":{"tmp":"tmp/wallet-standard_0.1.1_1764767886751_0.661631601353643","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-12-03T13:12:42.518Z","modified":"2026-04-30T19:48:25.456Z","0.1.0":"2025-12-03T13:12:42.842Z","0.1.1":"2025-12-03T13:18:06.926Z"},"bugs":{"url":"https://github.com/SubzeroLabs/wallet-standard/issues"},"author":{"name":"Subzero Labs","email":"build@subzero.xyz"},"license":"Apache-2.0","homepage":"https://github.com/SubzeroLabs/wallet-standard#readme","keywords":["wallet","standard","rialo","wallet-standard","blockchain","web3","crypto"],"repository":{"url":"git+https://github.com/SubzeroLabs/wallet-standard.git","type":"git"},"description":"Wallet Standard definition for Rialo Network","maintainers":[{"email":"lu@subzero.xyz","name":"subzerolabs"},{"email":"tobi@subzero.xyz","name":"mocutobi"},{"email":"thanos@subzero.xyz","name":"subzero_thanos"}],"readme":"# @rialo/wallet-standard\n\nWallet Standard implementation for Rialo Network, providing a standardized interface for wallet interactions following the [Wallet Standard](https://github.com/wallet-standard/wallet-standard) specification.\n\n## Installation\n\n```bash\nnpm install @rialo/wallet-standard\n```\n\n```bash\nyarn add @rialo/wallet-standard\n```\n\n```bash\npnpm add @rialo/wallet-standard\n```\n\n## Overview\n\nThis package provides the standard wallet interface for Rialo Network applications. It implements the Wallet Standard specification to ensure compatibility and interoperability across different wallet implementations and dApps.\n\n## Features\n\n- Full Wallet Standard compliance\n- Rialo-specific transaction signing and submission\n- Multi-chain support for Rialo networks\n- Message signing capabilities\n- Event-driven architecture for state management\n\n## Usage\n\n### Connect to Wallet\n\n```typescript\nconst { accounts } = await wallet.features['standard:connect'].connect();\n\n// Access the connected account\nconst account = accounts[0];\nconsole.log('Connected account:', account.address);\n```\n\n### Sign and Send Transaction\n\n```typescript\nimport { RialoSignAndSendTransaction } from '@rialo/wallet-standard';\n\nconst result = await wallet.features[RialoSignAndSendTransaction].signAndSendTransaction({\n  account: account,\n  transaction: transactionBuffer,\n  chain: 'rialo:mainnet',\n  options: {\n    skipPreflight: false\n  }\n});\n\nconsole.log('Transaction signature:', result.signature);\n```\n\n### Sign Message\n\n```typescript\nimport { RialoSignMessage } from '@rialo/wallet-standard';\n\nconst result = await wallet.features[RialoSignMessage].signMessage({\n  account: account,\n  message: new TextEncoder().encode('Hello, Rialo!'),\n  chain: 'rialo:mainnet'\n});\n\nconsole.log('Message signature:', result.signature);\n```\n\n### Event Handling\n\n```typescript\nwallet.features['standard:events'].on('change', ({ accounts, chains }) => {\n  console.log('Wallet state changed');\n  console.log('Active accounts:', accounts);\n  console.log('Active chains:', chains);\n});\n```\n\n## API Reference\n\n### Features\n\n#### Standard Features\n\n- `standard:connect` - Connect to the wallet\n- `standard:disconnect` - Disconnect from the wallet\n- `standard:events` - Event subscription interface\n\n#### Rialo Features\n\n- `rialo:signAndSendTransaction` - Sign and submit a single transaction\n- `rialo:signAndSendAllTransactions` - Sign and submit multiple transactions\n- `rialo:signTransaction` - Sign a transaction without submitting\n- `rialo:signMessage` - Sign an arbitrary message\n\n### Types\n\n#### `RialoWalletAccount`\n\n```typescript\ninterface RialoWalletAccount {\n  address: string;\n  publicKey: Uint8Array;\n  chains: RialoChain[];\n  features: string[];\n  label?: string;\n  icon?: string;\n}\n```\n\n#### `RialoChain`\n\n```typescript\ntype RialoChain = 'rialo:testnet' | 'rialo:devnet' | 'rialo:localnet';\n```\n\n## Chain Support\n\nThe wallet standard supports the following Rialo chains:\n\n- `rialo:localnet` - Rialo Local Network\n- `rialo:testnet` - Rialo Testnet\n- `rialo:devnet` - Rialo Development Network\n\n## Browser Support\n\nThis package supports all modern browsers with ES2020 compatibility:\n\n- Chrome 80+\n- Firefox 75+\n- Safari 14+\n- Edge 80+\n\n## TypeScript Support\n\nThis package includes TypeScript definitions. No additional `@types` packages are required.\n\n```typescript\nimport type {\n  RialoWalletAccount,\n  RialoChain,\n  RialoSignTransactionOutput\n} from '@rialo/wallet-standard';\n```\n\n## Contributing\n\nContributions are welcome. Please ensure all changes maintain Wallet Standard compliance.\n\n## License\n\nApache-2.0\n\n## Links\n- [GitHub Repository](https://github.com/SubzeroLabs/wallet-standard)\n","readmeFilename":"README.md"}