@meteora-ag/dynamic-bonding-curve-sdk 1.4.10 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -5
- package/dist/index.cjs +1126 -327
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +929 -309
- package/dist/index.d.ts +929 -309
- package/dist/index.js +1143 -344
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ The generic flow of how Dynamic Bonding Curve works is as follows:
|
|
|
37
37
|
1. The partner creates a config key for the pool.
|
|
38
38
|
2. The creator creates a pool.
|
|
39
39
|
3. The pool is tradeable on the Dynamic Bonding Curve.
|
|
40
|
-
4. Meteora's migrator service migrates the pool to either DAMM V1 or DAMM V2 based on the config key once the migration quote threshold
|
|
40
|
+
4. Meteora's migrator service migrates the pool to either DAMM V1 or DAMM V2 based on the config key once the quote reserve is more than or equals to the migration quote threshold.
|
|
41
41
|
5. The graduated pool is tradeable on either DAMM V1 or DAMM V2.
|
|
42
42
|
|
|
43
43
|
## Flow of migration
|
|
@@ -47,8 +47,8 @@ The generic flow of how Dynamic Bonding Curve works is as follows:
|
|
|
47
47
|
1. `createDammV1MigrationMetadata`
|
|
48
48
|
2. `createLocker` (if the token has locked vesting)
|
|
49
49
|
3. `migrateToDammV1`
|
|
50
|
-
4. `lockDammV1LpToken` (if `
|
|
51
|
-
5. `claimDammV1LpToken` (if `
|
|
50
|
+
4. `lockDammV1LpToken` (if `creatorPermanentLockedLiquidityPercentage` or `partnerPermanentLockedLiquidityPercentage` is >0)
|
|
51
|
+
5. `claimDammV1LpToken` (if `creatorLiquidityPercentage` or `partnerLiquidityPercentage` is >0)
|
|
52
52
|
|
|
53
53
|
### DAMM V2
|
|
54
54
|
|
|
@@ -57,9 +57,17 @@ The generic flow of how Dynamic Bonding Curve works is as follows:
|
|
|
57
57
|
|
|
58
58
|
### Test
|
|
59
59
|
|
|
60
|
+
1. Run solana localnet validator
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
cd packages/dynamic-bonding-curve
|
|
64
|
+
pnpm start-validator
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
2. Run the tests
|
|
68
|
+
|
|
60
69
|
```bash
|
|
61
|
-
|
|
62
|
-
bun test
|
|
70
|
+
pnpm test
|
|
63
71
|
```
|
|
64
72
|
|
|
65
73
|
### Manual Migrator
|