{"_id":"@cyreneai/partner-fees","_rev":"6-fe599d04aff3690ed08be48713eca423","name":"@cyreneai/partner-fees","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@cyreneai/partner-fees","version":"0.1.0","license":"MIT","_id":"@cyreneai/partner-fees@0.1.0","maintainers":[{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"}],"dist":{"shasum":"4f87d6a5eab222d74374b8f5a4206bf513d5c8cb","tarball":"https://registry.npmjs.org/@cyreneai/partner-fees/-/partner-fees-0.1.0.tgz","fileCount":14,"integrity":"sha512-RGQl44ElOJ5+NnB9RJjtmJGe8Npn4SRd3iqZiMCSfI7YIp9dk225JLkXanMmGyI0kSwo20wzvSWrqkhlWfyRtg==","signatures":[{"sig":"MEYCIQC0T9/v2CzVotX2a8beVrFhgWbv3etnyRqg+Lz0p38iDAIhAIsnxBgQ+lsIozQRUaFdwmdU2waeGIuxHmO7y/54J9Lf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42443},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e020bf1c6c45f15c2ef2fdd67364237f7197c7f3","scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","release:major":"npm version major && npm run build && npm publish --access public","release:minor":"npm version minor && npm run build && npm publish --access public","release:patch":"npm version patch && npm run build && npm publish --access public"},"_npmUser":{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"},"_npmVersion":"10.9.0","description":"Server-side SDK for Cyrene partner fee flows (DBC/DAMM v2).","directories":{},"_nodeVersion":"23.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/partner-fees_0.1.0_1776238309192_0.5964447680376652","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.1":{"name":"@cyreneai/partner-fees","version":"0.1.1","license":"MIT","_id":"@cyreneai/partner-fees@0.1.1","maintainers":[{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"}],"dist":{"shasum":"87791c49788284b4959dfc7ba18a2e021620b9e8","tarball":"https://registry.npmjs.org/@cyreneai/partner-fees/-/partner-fees-0.1.1.tgz","fileCount":14,"integrity":"sha512-vBIU2LZX9WTIYfx9vRLr+6H+xFUgprLHC1DUlPrIHR6sAJxF6/sjoaXvZNSAJvlolQHTUa+Ql0grA4BFb1pFVw==","signatures":[{"sig":"MEUCIQDIeszbru4uQkz3fJ3kCZYc+XwHBj5tT03UmgiVlscOhgIgFAhHk9wLFV8/MJj3pfj6arhCf/xYTk2e5HIAjyT1T24=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47736},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6ff41d0cf4894de021a9eee452b20b172e77366","scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","release:major":"npm version major && npm run build && npm publish --access public","release:minor":"npm version minor && npm run build && npm publish --access public","release:patch":"npm version patch && npm run build && npm publish --access public"},"_npmUser":{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"},"_npmVersion":"11.11.1","description":"Server-side SDK for Cyrene partner fee flows (DBC/DAMM v2).","directories":{},"_nodeVersion":"25.8.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/partner-fees_0.1.1_1776279099411_0.9925275545087591","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.2":{"name":"@cyreneai/partner-fees","version":"0.1.2","license":"MIT","_id":"@cyreneai/partner-fees@0.1.2","maintainers":[{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"}],"dist":{"shasum":"1f4ca4650714cc804a26571fd22805b727779b9b","tarball":"https://registry.npmjs.org/@cyreneai/partner-fees/-/partner-fees-0.1.2.tgz","fileCount":14,"integrity":"sha512-DE8iQvNXRPpiVHmR7itZ7TiIdA2E2JOpGLL9VcPhu2pEc1I15CTXeVCHGD5cG3ptQN/NgOaWN+ZDgZCjxWhUyA==","signatures":[{"sig":"MEYCIQCTwQ+AXwmk12Thil5DEMBRFrvyinFOo0xqf8r2wh2rLAIhAJbbRjWg824sWH/i3i7mmsjeNqZIppYhGFzpRmvFLPVq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47737},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","release:major":"npm version major && npm run build && npm publish --access public","release:minor":"npm version minor && npm run build && npm publish --access public","release:patch":"npm version patch && npm run build && npm publish --access public"},"_npmUser":{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"},"_npmVersion":"10.9.0","description":"Server-side SDK for Cyrene partner fee flows (DBC/DAMM v2).","directories":{},"_nodeVersion":"23.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/partner-fees_0.1.2_1776284581095_0.6604146859558744","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.0":{"name":"@cyreneai/partner-fees","version":"0.2.0","license":"MIT","_id":"@cyreneai/partner-fees@0.2.0","maintainers":[{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"}],"dist":{"shasum":"9898061c2676ae291aaf62b407c45801b31103c2","tarball":"https://registry.npmjs.org/@cyreneai/partner-fees/-/partner-fees-0.2.0.tgz","fileCount":14,"integrity":"sha512-my51sr3bHLGMkvzvkofAkmrYDWs6OVB8U+0l/Av0+mNDwVDQRToKAcrK+92o+MihACC9D3tE5uIIYIetjPikJw==","signatures":[{"sig":"MEUCID/nTxKe/9V7OBzpetVV1iObkwmov86bm/TAhmW89VT1AiEAwy9vAxL3nkIQjSVW/3spK4b8QykrsBS0ZY4CDu6MARY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47912},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"56bb2ace19c845d88dae93e2638864c37e7ed375","scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","validate":"npm run type-check && npm run build","type-check":"tsc --noEmit","release:major":"npm version major && npm run validate && npm publish --access public","release:minor":"npm version minor && npm run validate && npm publish --access public","release:patch":"npm version patch && npm run validate && npm publish --access public","prepublishOnly":"npm run validate"},"_npmUser":{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"},"_npmVersion":"10.9.0","description":"Server-side SDK for Cyrene partner fee flows (DBC/DAMM v2).","directories":{},"_nodeVersion":"23.3.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/partner-fees_0.2.0_1776329265496_0.34613682916883204","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2026-04-15T07:31:49.083Z","modified":"2026-04-17T17:37:46.895Z","0.1.0":"2026-04-15T07:31:49.332Z","0.1.1":"2026-04-15T18:51:39.551Z","0.1.2":"2026-04-15T20:23:01.230Z","0.2.0":"2026-04-16T08:47:45.654Z"},"license":"MIT","description":"Server-side SDK for Cyrene partner fee flows (DBC/DAMM v2).","maintainers":[{"name":"ajxhash","email":"jadhavabhishek24k2@gmail.com"},{"name":"ansm","email":"anish@cyreneai.com"}],"readme":"# @cyreneai/partner-fees\n\nServer-side SDK for Cyrene partner fee flows (DBC + DAMM v2).\n\n## Install\n\n```bash\nnpm install @cyreneai/partner-fees\n```\n\n## Quick Start\n\n```ts\nimport { CyrenePartnerFeesClient } from '@cyreneai/partner-fees';\n\nconst client = new CyrenePartnerFeesClient({\n  baseUrl: 'https://your-domain.com',\n  apiKey: process.env.CYRENE_API_KEY!,\n  cluster: 'MAINNET',\n});\n\nawait client.initializeDbcPool({\n  dbcPoolAddress: 'DBC_POOL_ADDRESS',\n  partners: [{ address: 'PARTNER_1', bps: 500 }],\n});\n\nawait client.claimableAmounts({\n  dbcPoolAddress: 'DBC_POOL_ADDRESS',\n  partnerWalletAddress: 'PARTNER_1',\n});\nawait client.claimPartnerFees({ dbcPoolAddress: 'DBC_POOL_ADDRESS' });\n```\n\n## Functions\n\n- `initializeDbcPool`\n- `initializeDammV2Pool`\n- `claimPartnerFees`\n- `checkGraduation`\n- `claimableAmounts`\n- `custodyPartners`\n\n## Docs\n\n- `USAGE.md` — end-to-end examples and full flow\n- `docs/api.md` — endpoint reference\n- `docs/flows.md` — full DBC → DAMM workflow\n\n## Error handling\n\n```ts\nimport { CyreneApiError } from '@cyreneai/partner-fees';\n\ntry {\n  await client.claimPartnerFees({ dbcPoolAddress: '...' });\n} catch (err) {\n  if (err instanceof CyreneApiError) {\n    console.error(err.status, err.body);\n  }\n  throw err;\n}\n```\n\n## Build & Publish\n\n```bash\nnpm install\nnpm run build\nnpm publish --access public\n```\n\nOr use the release scripts:\n```bash\nnpm run release:patch  # or :minor or :major\n```\n\n## Notes\n\n- `initializeDbcPool` writes the DBC ALT to `external_launch.alt_address`.\n- `initializeDammV2Pool` writes the DAMM ALT to `external_launch.damm_alt_address`.\n- `claimPartnerFees` uses the correct ALT for DBC and DAMM automatically server-side.\n","readmeFilename":"README.md"}