@meteora-ag/dynamic-bonding-curve-sdk 1.0.0

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 ADDED
@@ -0,0 +1,53 @@
1
+ # Meteora Dynamic Bonding Curve SDK
2
+
3
+ A Typescript SDK for interacting with the Dynamic Bonding Curve on Meteora.
4
+
5
+ ## Overview
6
+
7
+ This 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.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ pnpm install @meteora-ag/dynamic-bonding-curve-sdk
13
+ # or
14
+ yarn add @meteora-ag/dynamic-bonding-curve-sdk
15
+ ```
16
+
17
+ ## Initialization
18
+
19
+ ```bash
20
+ import { Connection } from "@solana/web3.js";
21
+ import { DynamicBondingCurveClient } from "@meteora-ag/dynamic-bonding-curve-sdk";
22
+
23
+ const connection = new Connection('https://api.mainnet-beta.solana.com')
24
+ const client = new DynamicBondingCurveClient(connection)
25
+ ```
26
+
27
+ ### Test
28
+
29
+ ```bash
30
+ bun install
31
+ bun test
32
+ ```
33
+
34
+ ### Program Address
35
+
36
+ - Mainnet-beta: virEFLZsQm1iFAs8py1XnziJ67gTzW2bfCWhxNPfccD
37
+ - Devnet: virEFLZsQm1iFAs8py1XnziJ67gTzW2bfCWhxNPfccD
38
+
39
+ ### Config key for migration
40
+
41
+ #### DAMM V1:
42
+
43
+ - migration_fee_option == 0: EtwbXRxV8b46Vkho5EhMshi9qEU7xv6sMQnPHK3fX8WR
44
+ - migration_fee_option == 1: VEtZapzJXreco3cbzUT8ZszawsRvRRQzGN5GBaCMwWh
45
+ - migration_fee_option == 2: 8z2tYtwiAkby1tMSdf1hG2Ni8MFBk43o9tYey5zegNDh
46
+ - migration_fee_option == 3: 3BuQgW3g75azhKeE3yzaqeWkmwezuDGwF6FT5py3mFrt
47
+
48
+ #### DAMM V2:
49
+
50
+ - migration_fee_option == 0: 96gRhsiKyBJnXT2GxEnh54b9YLjzpEJ4aTetvLmQ5tWj
51
+ - migration_fee_option == 1: 3GZLmQJ98xPRLNJjofzK3bfvhU11WFCiZJhEuPwgfBHb
52
+ - migration_fee_option == 2: 7aqweHmWjiMJEVzTXjvpEasRiDQSK79GNWPqjbkeWtyL
53
+ - migration_fee_option == 3: 6ym6zMi5RqUH3k2BNdiXUtSdpeypdWMLsxTyRhKqzhz2