bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 33쪽
* Added account types for transfer-hook program accounts:
* `ConfigWithTransferHook`
* `TransferHookPool`
* Added `CreateVirtualPoolMetadataParameters` as an exported IDL-derived type.
* Added `client.partner.createConfigAndPool` and `client.partner.createConfigAndPoolWithFirstBuy` so partner-owned config-and-pool flows live under the partner service.
* Added `client.creator.createPool`, `client.creator.createPoolWithFirstBuy`, and `client.creator.createPoolWithPartnerAndCreatorFirstBuy` so creator-owned pool initialization flows live under the creator service.
* Added `client.partner.claimPartnerTradingFeeToReceiver` and `client.creator.claimCreatorTradingFeeToReceiver` for the non-transfer-hook fee claim flows that do not require `tempWSolAcc`.
* Added test coverage for transfer-hook config creation, pool creation, swaps, first buys, and fee claims using the new `transfer_hook_counter` test program.
### Changed
* Updated the DBC IDL and generated types to include transfer-hook instructions and account layouts.
* Updated DAMM V1, DAMM V2, and Dynamic Vault IDLs and generated types.
* Updated `DynamicBondingCurveClient` so all services share one `StateService` instance.
* Updated `StateService.getPoolConfig` to fetch both regular `poolConfig` accounts and transfer-hook config accounts.
* Updated `StateService.getPool` to fetch both regular `virtualPool` accounts and transfer-hook pool accounts.
* Updated swap quote math and state helpers to read virtual pool fields from the new nested `poolState` layout.
* Updated `buildCurve*` helpers to accept `token.tokenAuthorityOption` and map it to the on-chain `tokenUpdateAuthority` field.
* Renamed `createVaultProgram` to `createDynamicVaultProgram` to match the Dynamic Vault IDL naming.
* Renamed internal/public DAMM V1 and Dynamic Vault generated IDL program types from `DammV1` and `DynamicVault` to `Amm` and `Vault`.
* Updated validator and CI setup to use the `mercurial_vault.so` fixture and include the `transfer_hook_counter.so` fixture.
* Reworked `docs.md` with the current SDK service layout and transfer-hook function documentation.
* Updated `getMigratedPoolMarketCapFeeSchedulerParams` and `MigratedPoolMarketCapFeeSchedulerParams` to use `priceMultiple` directly.
### Breaking Changes
* **Pool creation methods moved service namespaces.** Existing callers must update:
* `client.pool.createPool(...)` -> `client.creator.createPool(...)`
* `client.pool.createPoolWithFirstBuy(...)` -> `client.creator.createPoolWithFirstBuy(...)`
* `client.pool.createPoolWithPartnerAndCreatorFirstBuy(...)` -> `client.creator.createPoolWithPartnerAndCreatorFirstBuy(...)`
* `client.pool.createConfigAndPool(...)` -> `client.partner.createConfigAndPool(...)`
* `client.pool.createConfigAndPoolWithFirstBuy(...)` -> `client.partner.createConfigAndPoolWithFirstBuy(...)`
* **Pool address params were renamed from `virtualPool` to `pool` across SDK request types.** Update call sites for:
* `CreateLockerParams`
* `WithdrawLeftoverParams`
* `MigrateToDammV1Params`
* `MigrateToDammV2Params`
* `DammLpTokenParams`
* `PartnerWithdrawSurplusParams`
* `CreatorWithdrawSurplusParams`
* `TransferPoolCreatorParams`
* `WithdrawMigrationFeeParams`
* `ClaimPartnerPoolCreationFeeParams`
* **Virtual pool account data now uses the nested `poolState` layout.** Code that directly reads `VirtualPool` fields must migrate from flat fields like `pool.config`, `pool.baseMint`, `pool.quoteReserve`, `pool.sqrtPrice`, and `pool.metrics` to `pool.poolState.config`, `pool.poolState.baseMint`, `pool.poolState.quoteReserve`, `pool.poolState.sqrtPrice`, and `pool.poolState.metrics`.
* **`TokenType.SPL` was renamed to `TokenType.SPLToken`.** The enum value remains `0`, but TypeScript callers must update the enum member name.
* **`TokenUpdateAuthorityOption` was renamed to `TokenAuthorityOption`.** Update imports and references.
* **`TokenConfig.tokenUpdateAuthority` was renamed to `tokenAuthorityOption` for all `buildCurve*` helpers.** The helper still maps this value to the on-chain `tokenUpdateAuthority` config field.
* **`PreCreatePoolParams` was renamed to `CreatePoolBaseParams`.** Update imports and any explicit type annotations.
* **The old no-`tempWSolAcc` trading fee claim types were renamed.**
* `ClaimTradingFeeParams` -> `ClaimPartnerTradingFeeParams`
* `ClaimTradingFee2Params` -> `ClaimPartnerTradingFeeToReceiverParams`
* `ClaimCreatorTradingFee2Params` -> `ClaimCreatorTradingFeeToReceiverParams`
* **The old `claimPartnerTradingFee2` and `claimCreatorTradingFee2` non-transfer-hook behavior moved to `claimPartnerTradingFeeToReceiver` and `claimCreatorTradingFeeToReceiver`.** In `1.5.8`, `claimPartnerTradingFee2` and `claimCreatorTradingFee2` build transfer-hook fee claim instructions and should be used only for transfer-hook pools.
* **`createVaultProgram` was renamed to `createDynamicVaultProgram`.** Update helper imports.
* **`StateService.getDammV1LockEscrow` was removed.** Consumers that need lock escrow data must fetch it through the relevant generated program client.
* **`LockEscrow` now comes from IDL types instead of IDL accounts.** Update assumptions if you were treating it as an Anchor account object.
* **Raw IDL instruction indexes changed.** Code using `DynamicBondingCurve['instructions'][index]` directly must be updated because transfer-hook instructions shifted the generated instruction order.
* **Market cap fee scheduler config now uses `priceMultiple`.** Replace `marketCapFeeSchedulerParams.startingMarketCap` and `marketCapFeeSchedulerParams.endingMarketCap` with `marketCapFeeSchedulerParams.priceMultiple`.
### Fixed
* Fixed state and quote helpers to work with the new nested virtual pool account layout.
* Fixed transfer-hook pool state reads so `getPoolConfig`, `getPool`, fee metrics, fee breakdowns, and curve progress helpers work with both regular and transfer-hook pools.
* Fixed SOL quote handling in transfer-hook fee claim flows by preserving the wrapped SOL post-instructions where needed.
</Update>
<Update label="dynamic-bonding-curve 0.1.10" description="Migrate to DAMM v2 Inner Positions + DAMM v2 Compounding Fee">
<Info>
Mainnet deployment for Release 0.1.10 is planned for March 16, 2026, at 11:00 AM UTC+8 (Monday).
</Info>
## Release summary
| Component | Version | PR |
| - | - | - |
| Program | `0.1.10` | [dynamic-bonding-curve #174](https://github.com/MeteoraAg/dynamic-bonding-curve/pull/174) |
| TypeScript SDK | `1.5.7` | [dynamic-bonding-curve-sdk #101](https://github.com/MeteoraAg/dynamic-bonding-curve-sdk/pull/101) |
## What We Shipped
* Migrate to DAMM v2 Inner Positions
* Migrate to DAMM v2 Compounding Fee Pool
## What To Do
<div>
<table>
<thead>
<tr>
<th>Integrators</th>
<th>What Changed</th>
<th>What To Do</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Trading Terminals</strong></td>
<td>
<ul>
<li><code>EvtPartnerClaimPoolCreationFee</code> event parsing</li>
</ul>
</td>
<td>
<ul>
<li>The <code>EvtPartnerClaimPoolCreationFee</code> event now includes a fee\_receiver field. Partners parsing/indexing this event must update their deserialization.</li>
</ul>
</td>
</tr>
<tr>
<td><strong>Partners</strong></td>
<td>
<ul>
<li>Bonding Curve Configuration Updates</li>
</ul>
</td>
<td>
<ul>
<li>Bump your SDK version to <code>@meteora-ag/dynamic-bonding-curve-sdk\@1.5.5-rc.0</code> to start testing.</li>
<li>Optionally update your bonding curve configuration to enable compounding fee mode by passing <code>migrated\_pool\_fee.collect\_fee\_mode: 2</code> and <code>compounding\_fee\_bps: 1-10\_000</code> field in <code>ConfigParameters</code></li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
## Program: `dynamic-bonding-curve` `0.1.10`
Program ID (mainnet and devnet): `dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN`
[Program PR #174](https://github.com/MeteoraAg/dynamic-bonding-curve/pull/174)
### Added
* Add new endpoint `create_operator_account` and `close_operator_account` that allows admin to manage different operator accounts.
* Add new account `Operator`, that would stores `whitelisted_address` as well as their operational permissions
* Add new endpoint `zap_protocol_fee` that allow operator to claim protocol fees and zap out to SOL/USDC or other token in pool and send to treasury address
* Add support for damm-v2 Compounding `collect_fee_mode`. This can be enabled through the `create_config` endpoint by passing `migrated_pool_fee.collect_fee_mode: 2` and `compounding_fee_bps: 1-10_000` field in `ConfigParameters`
### Changed
* When migrate to damm-v2, instead of using external accounts for vesting, now we will use position itself, that would save 2 accounts for damm-v2 migration instruction.
### Removed
* Removed the `create_claim_protocol_fee_operator` endpoint in favor of `create_operator_account`, which can create an operator account configured with permissions, including claiming protocol fees.
## TypeScript SDK: `@meteora-ag/dynamic-bonding-curve-sdk` `1.5.6`
[SDK PR #98](https://github.com/MeteoraAg/dynamic-bonding-curve-sdk/pull/98)
<Tip>
Early testing: [`@meteora-ag/dynamic-bonding-curve-sdk@1.5.5-rc.0`](https://www.npmjs.com/package/@meteora-ag/dynamic-bonding-curve-sdk/v/1.5.5-rc.0).<br /> Production: [`@meteora-ag/dynamic-bonding-curve-sdk@1.5.6`](https://www.npmjs.com/package/@meteora-ag/dynamic-bonding-curve-sdk/v/1.5.6).
</Tip>
### Added
* Added `MigratedCollectFeeMode` enum with `Compounding` (2) support for migrated DAMM v2 pool configuration.
* Added `compoundingFeeBps` support in `MigratedPoolFeeConfig` and propagated it through all `buildCurve*` helpers.
### Changed
* Updated migrated pool fee validation to require `compoundingFeeBps > 0` only when `collectFeeMode = MigratedCollectFeeMode.Compounding`, and `0` otherwise.
* Updated migration flow for DAMM v2 to remove position vesting accounts from `migrateDammV2` remaining accounts.
* Removed `deriveDammV2PositionVestingAccount` PDA helper.
</Update>
# DBC Go SDK Integration Reference
Source: https://docs.meteora.ag/developer-guides/dbc/go-integration/reference
Learn how to use dbc-go for backend integrations, account reads, swaps, fee claims, and creator transfer examples.
The `dbc-go` SDK provides Go helpers for backend services, indexers, and scripts that need to read DBC state or build common DBC transactions.
<CardGroup>
<Card title="Go SDK" icon="golang" href="https://github.com/MeteoraAg/dbc-go">
Meteora DBC Go SDK source and examples.
</Card>
</CardGroup>
## Installation
Clone the repository and install dependencies. The local `go.mod` uses `github.com/gagliardetto/solana-go`.
```bash theme={"system"}
git clone https://github.com/MeteoraAg/dbc-go.git
cd dbc-go
go mod tidy
```
## Repository Map
| Path | Use |
| - | - |
| `instructions` | Transaction builders and readers for partner, pool, creator, and state-related flows. |
| `math` | Curve and safe math helpers. |
| `common` | Program IDs, shared constants, and account types. |
| `helpers` | Account deserialization, PDA helpers, and common utilities. |
| `examples` | Runnable examples for pool creation, swaps, reads, fee claims, and creator transfer. |
## Run Examples
Before running examples, configure the keypairs, RPC endpoint, and public keys required by the file.
```bash theme={"system"}
go run examples/<file-name>.go
```
## Examples
| Example | Use |
| - | - |
| `examples/create_pool_and_swap_sol.go` | Create a pool and perform a SOL swap. |
| `examples/create_pool_and_swap_usdc.go` | Create a pool and perform a USDC swap. |
| `examples/get_pool.go` | Fetch virtual pool state. |
| `examples/get_pool_config.go` | Fetch config settings and curve parameters. |
| `examples/get_bonding_curve_progress.go` | Monitor quote reserve progress toward migration. |
| `examples/get_pool_fee_metrics.go` | Read pool fee metrics. |
| `examples/claim_creator_trading_fee.go` | Claim accumulated creator trading fees. |
| `examples/claim_partner_trading_fee.go` | Claim accumulated partner trading fees. |
| `examples/transfer_pool_creator.go` | Transfer pool creator rights to a new address. |
## Helper Surface
| Helper | Use |
| - | - |
| `helpers.DeserializePoolConfig` | Decode a `PoolConfig` account. |
| `helpers.DeserializePool` | Decode a `VirtualPool` account. |
| `helpers.DeriveDbcPoolPDA` | Derive a DBC pool PDA. |
| `helpers.DeriveTokenVaultPDA` | Derive DBC token vault PDAs. |
| `helpers.DeriveEventAuthorityPDA` | Derive the DBC event authority PDA. |
| `helpers.DerivePoolAuthorityPDA` | Derive the DBC pool authority PDA. |
| `instructions.GetPoolConfig` | Fetch and decode a pool config. |
| `instructions.GetPool` | Fetch and decode a pool. |
| `instructions.GetPoolFeeMetrics` | Fetch pool fee metrics. |
# DBC Developer Guide
Source: https://docs.meteora.ag/developer-guides/dbc/index
Learn how to build DBC integrations with the dynamic_bonding_curve program, TypeScript SDK, transfer-hook flows, Rust helpers, Go examples, and release notes.
Dynamic Bonding Curve (DBC) is Meteora's token launch primitive for creating a virtual reserve pool, trading through a configured bonding curve, and migrating finished pools to DAMM v2. Existing DAMM v1 pools can still graduate. To learn more about fee behavior, migration design, and formulas, you can read the following documentations.
<CardGroup>
<Card title="Learn more about DBC" icon="book-open" href="/core-products/dbc/what-is-dbc">
Overview of DBC, universal curves, launch configurations, fees, surplus, leftover tokens, and migration.
</Card>
<Card title="DBC Formulas" icon="calculator" href="/core-products/dbc/formulas">
Formulas for price, curve progress, reserves, fees, and migration calculations.
</Card>
</CardGroup>
## Integration
<CardGroup>
<Card title="Program Accounts" icon="table-cells" href="/developer-guides/dbc/program/accounts">
Account model for pool configs, virtual pools, vaults, metadata, token badges, operators, and migration accounts.
</Card>
<Card title="Program Instructions" icon="list" href="/developer-guides/dbc/program/instructions">
Instruction families for partners, creators, swaps, migration, fee claims, and operators.
</Card>
<Card title="Program Events" icon="list" href="/developer-guides/dbc/program/events">
Event-CPI payloads for configs, pools, swaps, fee claims, migration, and operator flows.
</Card>
<Card title="Program Errors" icon="triangle-exclamation" href="/developer-guides/dbc/program/errors">
Anchor custom errors, messages, and common integration causes.
</Card>
<Card title="TypeScript SDK" icon="code" href="/developer-guides/dbc/typescript-sdk/getting-started">
Official TypeScript SDK for config builders, pool creation, quotes, swaps, migration, and state reads.
</Card>
<Card title="Transfer Hook SDK" icon="code-branch" href="/developer-guides/dbc/typescript-sdk/transfer-hooks">
TypeScript SDK methods for Token 2022 transfer-hook configs, pools, swaps, claims, and state reads.
</Card>
<Card title="Rust Integration" icon="terminal" href="/developer-guides/dbc/rust-integration/library">
Rust quote helpers and program-side integration notes for `dynamic_bonding_curve`.
</Card>
</CardGroup>
<CardGroup>
<Card title="Go Integration" icon="golang" href="/developer-guides/dbc/go-integration/reference">
Go examples for pool reads, swaps, fee claims, and creator transfer flows.
</Card>
</CardGroup>
## Program IDs
The `dynamic_bonding_curve` program ID is the same on mainnet and devnet:
| Network | Program ID |
| - | - |
| Mainnet Beta | `dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN` |
| Devnet | `dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN` |
The pool authority PDA used by the program is:
| Authority | Address |
| - | - |
| Pool Authority | `FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM` |
<CardGroup>
<Card title="DBC Program" icon="code" href="https://github.com/MeteoraAg/dynamic-bonding-curve">
Anchor program source for `dynamic_bonding_curve`.
</Card>
<Card title="DBC IDL" icon="file-code" href="https://github.com/MeteoraAg/dynamic-bonding-curve-sdk/blob/main/packages/dynamic-bonding-curve/src/idl/dynamic-bonding-curve/idl.json">
Published Anchor IDL used by the TypeScript SDK.
</Card>
<Card title="TypeScript SDK" icon="node-js" href="https://github.com/MeteoraAg/dynamic-bonding-curve-sdk/tree/main/packages/dynamic-bonding-curve">
Public SDK for transaction builders, state reads, quotes, curve helpers, PDA helpers, and tests.
</Card>
<Card title="Go Examples" icon="golang" href="https://github.com/MeteoraAg/dbc-go">
Go examples for backend reads, swaps, fee claims, and creator transfer flows.
</Card>
</CardGroup>
## Migration Keepers
Meteora runs migration keepers on mainnet to migrate eligible DBC pools when the bonding curve is complete and the pool has enough quote-side liquidity.
| Keeper |
| - |
| [`Asi5DTGEeiso6k7ya6ndDabEZ7DRCgfTpCBLPH5E3aQs`](https://solscan.io/account/Asi5DTGEeiso6k7ya6ndDabEZ7DRCgfTpCBLPH5E3aQs) |
| [`DeQ8dPv6ReZNQ45NfiWwS5CchWpB2BVq1QMyNV8L2uSW`](https://solscan.io/account/DeQ8dPv6ReZNQ45NfiWwS5CchWpB2BVq1QMyNV8L2uSW) |
Both keepers migrate when `pool_config.migration_quote_threshold` matches one of these quote mints:
| Quote token | Mint | `migration_quote_threshold` |
| - | - | - |
| Wrapped SOL (SOL) | `So11111111111111111111111111111111111111112` | 10 SOL |
| USD Coin (USDC) | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` | 750 USDC |
| OFFICIAL TRUMP (TRUMP) | `6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN` | 100 TRUMP |
| Jupiter (JUP) | `JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN` | 1500 JUP |
| World Liberty Financial USD (USD1) | `USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB` | 750 USD1 |
| Meteora (MET) | `METvsvVRapdj9cFLzq4Tr43xK4tAjQfwX76z3n6mWQL` | 1500 MET |
| Jupiter USD (JupUSD) | `JuprjznTrTSp2UFa3ZBUFgwdAmtZCq4MQCwysN55USD` | 750 JupUSD |
| Virtual Protocol (VIRTUAL) | `3iQL8BFS2vE7mww4ehAqQHAsbmRNCrPxizWAT2Zfyr9y` | 42000 VIRTUAL |
Both keepers also migrate Stock Token quote pairs when `pool_config.migration_quote_threshold` is at least 750 USD equivalent in the quote token.
Both keepers also migrate a completed pool when the quote token is Jupiter Verified, has a Jupiter Organic Score greater than 50, and the notional value of `pool_config.migration_quote_threshold` is greater than 750 USD.
<Note>
Migration keepers run on mainnet. The [Manual Migrator](https://migrator.meteora.ag) supports both mainnet and devnet.
</Note>
## DAMM Fee Config Keys
The SDK exposes these arrays as `DAMM_V1_MIGRATION_FEE_ADDRESS` and `DAMM_V2_MIGRATION_FEE_ADDRESS`.
<Warning>
DAMM v1 migration and rate limiter mode are deprecated for new configs and new pools. Use DAMM v2 and a scheduler or fixed-fee base fee for new launches. The DAMM v1 config keys below remain for existing pools.
</Warning>
### DAMM v1
| Option | Fee | Config key |
| - | - | - |
| `0` | 25 bps | `8f848CEy8eY6PhJ3VcemtBDzPPSD4Vq7aJczLZ3o8MmX` |
| `1` | 30 bps | `HBxB8Lf14Yj8pqeJ8C4qDb5ryHL7xwpuykz31BLNYr7S` |
| `2` | 100 bps | `7v5vBdUQHTNeqk1HnduiXcgbvCyVEZ612HLmYkQoAkik` |
| `3` | 200 bps | `EkvP7d5yKxovj884d2DwmBQbrHUWRLGK6bympzrkXGja` |
| `4` | 400 bps | `9EZYAJrcqNWNQzP2trzZesP7XKMHA1jEomHzbRsdX8R2` |
| `5` | 600 bps | `8cdKo87jZU2R12KY1BUjjRPwyjgdNjLGqSGQyrDshhud` |
### DAMM v2
| Option | Fee | Config key |
| - | - | - |
| `0` | 25 bps | `7F6dnUcRuyM2TwR8myT1dYypFXpPSxqwKNSFNkxyNESd` |
| `1` | 30 bps | `2nHK1kju6XjphBLbNxpM5XRGFj7p9U8vvNzyZiha1z6k` |
| `2` | 100 bps | `Hv8Lmzmnju6m7kcokVKvwqz7QPmdX9XfKjJsXz8RXcjp` |
| `3` | 200 bps | `2c4cYd4reUYVRAB9kUUkrq55VPyy2FNQ3FDL4o12JXmq` |
| `4` | 400 bps | `AkmQWebAwFvWk55wBoCr5D62C6VVDTzi84NJuD9H7cFD` |
| `5` | 600 bps | `DbCRBj8McvPYHJG1ukj8RE15h2dCNUdTAESG49XpQ44u` |
| `6` | Customizable | `A8gMrEPJkacWkcb3DGwtJwTe16HktSEfvwtuDh2MCtck` |
## Commands
| Task | Command |
| - | - |
| Build TypeScri프로젝트로 돌아가기