@gala-chain/launchpad-sdk 3.16.0 → 3.16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ## Fix: Price History Token Format Mapping (v3.16.1)
8
+
9
+ **Critical Fix:** Corrects token ID format conversion for DEX Backend API.
10
+
11
+ The DEX Backend API uses a different token format than GalaChain:
12
+ - API format: `tokenName$Unit$none$none` (e.g., `GALA$Unit$none$none`)
13
+ - SDK format: `collection|category|type|additionalKey` (e.g., `Token|Unit|GALA|none`)
14
+
15
+ ### Changes
16
+
17
+ **PriceHistoryService.ts:**
18
+ - Fixed token format conversion when calling DEX Backend API
19
+ - Now correctly maps GalaChain TokenInstanceKey fields to API format
20
+ - Token name is extracted from the `type` field (where it's stored in GalaChain)
21
+ - API always receives properly formatted: `{tokenName}$Unit$none$none`
22
+
23
+ ### Impact
24
+ - `fetchPriceHistory()` now returns historical price data correctly
25
+ - MCP tool `gala_launchpad_fetch_price_history` now works as expected
26
+ - All 30,000+ price snapshots now accessible for supported tokens
27
+
28
+ ### Before
29
+
30
+ ```typescript
31
+ // Input: Token|Unit|GALA|none
32
+ // Converted to: Token$Unit$GALA$none (WRONG - API expected GALA$Unit$none$none)
33
+ // Result: Empty response, no historical data
34
+ ```
35
+
36
+ ### After
37
+
38
+ ```typescript
39
+ // Input: Token|Unit|GALA|none
40
+ // Converted to: GALA$Unit$none$none (CORRECT)
41
+ // Result: Returns all 30,862 GALA price snapshots
42
+ ```
43
+
44
+ This is a critical fix for price history functionality.
45
+
3
46
  ## 3.16.0
4
47
 
5
48
  ### Minor Changes
@@ -3,5 +3,5 @@
3
3
  * This file is generated by scripts/inject-version.ts during build
4
4
  * DO NOT EDIT MANUALLY
5
5
  */
6
- export declare const SDK_VERSION = "3.16.0";
6
+ export declare const SDK_VERSION = "3.16.1";
7
7
  //# sourceMappingURL=version.generated.d.ts.map