{"_id":"@addrfarm/dynamic-bonding-curve-sdk","_rev":"3-f85c6897d77a8f01161fabf4c2576dc0","name":"@addrfarm/dynamic-bonding-curve-sdk","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@addrfarm/dynamic-bonding-curve-sdk","version":"1.0.0","keywords":["meteora-ag","dynamic-bonding-curve","damm-v1","damm-v2","dynamic-vaults"],"author":{"name":"Dann Wee","email":"dann@raccoons.dev"},"license":"MIT","_id":"@addrfarm/dynamic-bonding-curve-sdk@1.0.0","maintainers":[{"name":"jackyzxj","email":"zxj782819517@gmail.com"}],"dist":{"shasum":"dad8d594f2c7b308792e76f3db5474f4d25f88b2","tarball":"https://registry.npmjs.org/@addrfarm/dynamic-bonding-curve-sdk/-/dynamic-bonding-curve-sdk-1.0.0.tgz","fileCount":8,"integrity":"sha512-r7jQEmJVJdH3YRQl7uOZP9A0HMBrmXuwG2u/Ivf4Xz0iqXpvkkpOQCbUBInkocyl9M6d95syn5VVBv1+ZiMhCQ==","signatures":[{"sig":"MEUCID7aRxEvgfen7ngagumbpOT6zZ59EmuPwKNDcsbJ2qWgAiEAno7OejhV0C0Sq/Ejzk7LwhDCxd1v9/c0o+ewlq75g4o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4430626},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","source":"src/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c557d7f7c9995873f2b77f3c7fb1223db8b0aec1","scripts":{"build":"rm -rf dist && tsup src/index.ts --format esm,cjs --dts","clean":"rm -rf node_modules dist"},"_npmUser":{"name":"jackyzxj","email":"zxj782819517@gmail.com"},"_npmVersion":"10.9.2","description":"A Typescript SDK for interacting with the Dynamic Bonding Curve on Meteora.","directories":{},"_nodeVersion":"23.8.0","dependencies":{"bn.js":"^5.2.1","decimal.js":"^10.5.0","@solana/web3.js":"^1.98.0","@coral-xyz/anchor":"^0.31.0","@solana/spl-token":"^0.4.13"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","eslint":"^9.24.0","@types/bun":"latest","@types/bn.js":"^5.1.6","solana-bankrun":"^0.4.0","@meteora-ag/ts-sdk-config":"*"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/dynamic-bonding-curve-sdk_1.0.0_1753412103063_0.48922534068812173","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@addrfarm/dynamic-bonding-curve-sdk","version":"1.0.1","keywords":["meteora-ag","dynamic-bonding-curve","damm-v1","damm-v2","dynamic-vaults"],"author":{"name":"Dann Wee","email":"dann@raccoons.dev"},"license":"MIT","_id":"@addrfarm/dynamic-bonding-curve-sdk@1.0.1","maintainers":[{"name":"jackyzxj","email":"zxj782819517@gmail.com"}],"dist":{"shasum":"c224d63ee9e149128f672b9a4929a5fc5cd5244a","tarball":"https://registry.npmjs.org/@addrfarm/dynamic-bonding-curve-sdk/-/dynamic-bonding-curve-sdk-1.0.1.tgz","fileCount":8,"integrity":"sha512-y4YL4KcZr4dV9tfB9XH6ROGo5T7UJFCVHaBTwmQNeJNfXbp7PDcWGxQpa1nrMs0ISERMAzIUEAVcHg+4KXM+eg==","signatures":[{"sig":"MEQCIG14v8qXZvu/s1w7NwI1SxsYuNxOQ+bleJNtgwa5KfvdAiAQEmqY14tBL41ME6OA5vsooI2CyQIwwosJmhEbsqWbeg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4474959},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","source":"src/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"99e7aeac240b050170abf654b9f79c244ae1f14b","scripts":{"build":"rm -rf dist && tsup src/index.ts --format esm,cjs --dts","clean":"rm -rf node_modules dist"},"_npmUser":{"name":"jackyzxj","email":"zxj782819517@gmail.com"},"_npmVersion":"10.9.2","description":"A Typescript SDK for interacting with the Dynamic Bonding Curve on Meteora.","directories":{},"_nodeVersion":"23.8.0","dependencies":{"bn.js":"^5.2.1","decimal.js":"^10.5.0","@solana/web3.js":"^1.98.0","@coral-xyz/anchor":"^0.31.0","@solana/spl-token":"^0.4.13"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","eslint":"^9.24.0","@types/bun":"latest","@types/bn.js":"^5.1.6","solana-bankrun":"^0.4.0","@meteora-ag/ts-sdk-config":"*"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/dynamic-bonding-curve-sdk_1.0.1_1754994232281_0.7623647352536416","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@addrfarm/dynamic-bonding-curve-sdk","version":"1.0.2","main":"dist/index.cjs","module":"dist/index.js","source":"src/index.ts","types":"dist/index.d.ts","author":{"name":"Dann Wee","email":"dann@raccoons.dev"},"keywords":["meteora-ag","dynamic-bonding-curve","damm-v1","damm-v2","dynamic-vaults"],"description":"A Typescript SDK for interacting with the Dynamic Bonding Curve on Meteora.","license":"MIT","type":"module","scripts":{"build":"rm -rf dist && tsup src/index.ts --format esm,cjs --dts","clean":"rm -rf node_modules dist"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"devDependencies":{"@meteora-ag/ts-sdk-config":"*","@types/bn.js":"^5.1.6","@types/bun":"latest","eslint":"^9.24.0","solana-bankrun":"^0.4.0","tsup":"^8.4.0","tsx":"^4.19.3"},"peerDependencies":{"typescript":"^5"},"dependencies":{"@coral-xyz/anchor":"^0.31.0","@solana/spl-token":"^0.4.13","@solana/web3.js":"^1.98.0","bn.js":"^5.2.1","decimal.js":"^10.5.0"},"_id":"@addrfarm/dynamic-bonding-curve-sdk@1.0.2","gitHead":"99e7aeac240b050170abf654b9f79c244ae1f14b","_nodeVersion":"23.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-T2up6HiqVEwAveWOhL5FFxVi6lTBzPRG2HULvmXpWcSuyWnF+NNXtvjOANxHA2hqPv9FBkS3HzjzeWLCw2sXPw==","shasum":"1ae70d342d7312a04bbab90d135ed36b220bc1a0","tarball":"https://registry.npmjs.org/@addrfarm/dynamic-bonding-curve-sdk/-/dynamic-bonding-curve-sdk-1.0.2.tgz","fileCount":8,"unpackedSize":4475357,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCLvPOgEx7X9VKd7yoz0U9dnSiXMd6GTpZQqF4uQs5cEgIhAOq02cUhnRiGM0N1RfiBVu1SWyrDcasP1/eLF8rKZ9Kz"}]},"_npmUser":{"name":"jackyzxj","email":"zxj782819517@gmail.com"},"directories":{},"maintainers":[{"name":"jackyzxj","email":"zxj782819517@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dynamic-bonding-curve-sdk_1.0.2_1754999257358_0.522611131904656"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-25T02:55:02.925Z","modified":"2025-08-12T11:47:37.768Z","1.0.0":"2025-07-25T02:55:03.292Z","1.0.1":"2025-08-12T10:23:52.589Z","1.0.2":"2025-08-12T11:47:37.541Z"},"author":{"name":"Dann Wee","email":"dann@raccoons.dev"},"license":"MIT","keywords":["meteora-ag","dynamic-bonding-curve","damm-v1","damm-v2","dynamic-vaults"],"description":"A Typescript SDK for interacting with the Dynamic Bonding Curve on Meteora.","maintainers":[{"name":"jackyzxj","email":"zxj782819517@gmail.com"}],"readme":"# Meteora Dynamic Bonding Curve SDK\n\nA Typescript SDK for interacting with the Dynamic Bonding Curve on Meteora.\n\n## Overview\n\nThis SDK provides a set of tools and methods to interact with the [Meteora Dynamic Bonding Curve](https://github.com/MeteoraAg/ts-sdk/tree/main/packages/dynamic-bonding-curve). It enables developers to easily create and manage dynamic bonding curves, with support for custom configurations and fee structures.\n\n## Installation\n\n```bash\nnpm install @meteora-ag/dynamic-bonding-curve-sdk\n# or\npnpm install @meteora-ag/dynamic-bonding-curve-sdk\n# or\nyarn add @meteora-ag/dynamic-bonding-curve-sdk\n```\n\n## Initialization\n\n```typescript\nimport { Connection } from '@solana/web3.js'\nimport { DynamicBondingCurveClient } from '@meteora-ag/dynamic-bonding-curve-sdk'\n\nconst connection = new Connection('https://api.mainnet-beta.solana.com')\nconst client = new DynamicBondingCurveClient(connection, 'confirmed')\n```\n\n## Usage\n\nRefer to the [docs](./docs.md) for how to use the functions.\n\n## Flow\n\nThe generic flow of how Dynamic Bonding Curve works is as follows:\n\n1. The partner creates a config key for the pool.\n2. The creator creates a pool.\n3. The pool is tradeable on the Dynamic Bonding Curve.\n4. Meteora's migrator service migrates the pool to either DAMM V1 or DAMM V2 based on the config key once the migration quote threshold is met.\n5. The graduated pool is tradeable on either DAMM V1 or DAMM V2.\n\n### Test\n\n```bash\nbun install\nbun test\n```\n\n### Manual Migrator\n\nWe have created a [Manual Migrator UI](https://migrator.meteora.ag) that allows you to manually migrate a pool to either DAMM V1 or DAMM V2. Compatible with both Mainnet and Devnet pools.\n\n### Program Address\n\n- Mainnet-beta: dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN\n- Devnet: dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN\n\n### Graduated DAMM Pool Config Keys\n\n#### DAMM V1:\n\nAccessible via `DAMM_V1_MIGRATION_FEE_ADDRESS[i]` in the SDK.\n\n- MigrationFeeOption.FixedBps25 == 0: 8f848CEy8eY6PhJ3VcemtBDzPPSD4Vq7aJczLZ3o8MmX\n- MigrationFeeOption.FixedBps30 == 1: HBxB8Lf14Yj8pqeJ8C4qDb5ryHL7xwpuykz31BLNYr7S\n- MigrationFeeOption.FixedBps100 == 2: 7v5vBdUQHTNeqk1HnduiXcgbvCyVEZ612HLmYkQoAkik\n- MigrationFeeOption.FixedBps200 == 3: EkvP7d5yKxovj884d2DwmBQbrHUWRLGK6bympzrkXGja\n- MigrationFeeOption.FixedBps400 == 4: 9EZYAJrcqNWNQzP2trzZesP7XKMHA1jEomHzbRsdX8R2\n- MigrationFeeOption.FixedBps600 == 5: 8cdKo87jZU2R12KY1BUjjRPwyjgdNjLGqSGQyrDshhud\n\n#### DAMM V2:\n\nAccessible via `DAMM_V2_MIGRATION_FEE_ADDRESS[i]` in the SDK.\n\n- MigrationFeeOption.FixedBps25 == 0: 7F6dnUcRuyM2TwR8myT1dYypFXpPSxqwKNSFNkxyNESd\n- MigrationFeeOption.FixedBps30 == 1: 2nHK1kju6XjphBLbNxpM5XRGFj7p9U8vvNzyZiha1z6k\n- MigrationFeeOption.FixedBps100 == 2: Hv8Lmzmnju6m7kcokVKvwqz7QPmdX9XfKjJsXz8RXcjp\n- MigrationFeeOption.FixedBps200 == 3: 2c4cYd4reUYVRAB9kUUkrq55VPyy2FNQ3FDL4o12JXmq\n- MigrationFeeOption.FixedBps400 == 4: AkmQWebAwFvWk55wBoCr5D62C6VVDTzi84NJuD9H7cFD\n- MigrationFeeOption.FixedBps600 == 5: DbCRBj8McvPYHJG1ukj8RE15h2dCNUdTAESG49XpQ44u\n- MigrationFeeOption.Customizable == 6: A8gMrEPJkacWkcb3DGwtJwTe16HktSEfvwtuDh2MCtck\n","readmeFilename":"README.md"}