{"_id":"@cinaconnect/gas-sponsorship","name":"@cinaconnect/gas-sponsorship","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@cinaconnect/gas-sponsorship","version":"0.2.0","description":"Enterprise gas sponsorship for smart accounts via paymaster integration.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"peerDependencies":{"react":">=18.0.0","viem":">=2.0.0"},"dependencies":{"@cinaconnect/core-sdk":"0.2.0","@cinaconnect/aa-sdk":"0.2.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cinaconnect/onux.git","directory":"packages/gas-sponsorship"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","dev":"tsup src/index.ts --format cjs,esm --dts --watch"},"_id":"@cinaconnect/gas-sponsorship@0.2.0","bugs":{"url":"https://github.com/cinaconnect/onux/issues"},"homepage":"https://github.com/cinaconnect/onux#readme","_integrity":"sha512-tnDX6HVernsO14He+CWyhLnDp96K9/g6MFHujzQwZepzvF6UEIS6ACeAjYWEwvUjA4ChB3MsNVxOVZdtx3RiQQ==","_resolved":"/tmp/7323c5254e6e77c6438847fffe37649c/cinaconnect-gas-sponsorship-0.2.0.tgz","_from":"file:cinaconnect-gas-sponsorship-0.2.0.tgz","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-tnDX6HVernsO14He+CWyhLnDp96K9/g6MFHujzQwZepzvF6UEIS6ACeAjYWEwvUjA4ChB3MsNVxOVZdtx3RiQQ==","shasum":"b0650c082ee2042ba3acea2ff53705198972398c","tarball":"https://registry.npmjs.org/@cinaconnect/gas-sponsorship/-/gas-sponsorship-0.2.0.tgz","fileCount":28,"unpackedSize":55915,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDNs3TCgwFEz3+y1pIkiAQtAK18iYJDjMgO++7kNbcyWgIgD2fXWi/psCxWWOECIjcCDu4ty8L7lD9XCBmif0LDMTk="}]},"_npmUser":{"name":"cinagroup","email":"yeht@qq.com"},"directories":{},"maintainers":[{"name":"cinagroup","email":"yeht@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gas-sponsorship_0.2.0_1779092404506_0.6503367460387459"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-18T08:20:04.441Z","0.2.0":"2026-05-18T08:20:04.661Z","modified":"2026-05-18T08:20:04.892Z"},"maintainers":[{"name":"cinagroup","email":"yeht@qq.com"}],"description":"Enterprise gas sponsorship for smart accounts via paymaster integration.","homepage":"https://github.com/cinaconnect/onux#readme","repository":{"type":"git","url":"git+https://github.com/cinaconnect/onux.git","directory":"packages/gas-sponsorship"},"bugs":{"url":"https://github.com/cinaconnect/onux/issues"},"license":"MIT","readme":"# @cinaconnect/gas-sponsorship\n\nEnterprise gas sponsorship for smart accounts via paymaster integration.\n\n## Installation\n\n```bash\nnpm install @cinaconnect/gas-sponsorship\n```\n\n## Usage\n\n```ts\nimport { GasSponsor } from '@cinaconnect/gas-sponsorship';\n\nconst sponsor = new GasSponsor({ provider: 'pimlico' });\nconst result = await sponsor.sponsorTransaction(tx);\n```\n\n## API Reference\n\n| Export | Type | Description |\n|--------|------|-------------|\n| `GasSponsor` | class | Main gas sponsorship handler |\n| `getPaymasterData` | function | Get paymaster data for tx |\n| `getPaymasterAndData` | function | Get paymaster and data |\n| `detectProvider` | function | Auto-detect paymaster provider |\n| `useGasSponsorship` | hook | React hook for sponsorship |\n| `GasEstimator` | component | Gas estimation UI |\n| `SponsorshipConfig` | type | Configuration type |\n| `SponsorshipResult` | type | Result type |\n","readmeFilename":"README.md","_rev":"1-ba42614dcb7d287b55d761e7288e44ef"}