@gala-chain/launchpad-sdk 3.16.2 → 3.16.4

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,56 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.16.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ## Fix: Support Both GalaChain Token Format Variants (v3.16.4)
8
+
9
+ Enhanced token format handling to support both GalaChain token ID formats seamlessly.
10
+
11
+ GalaChain supports two token ID format variants:
12
+
13
+ **Format 1: Standard (collection="Token")**
14
+
15
+ ```
16
+ Token|Unit|GALA|none → GALA$Unit$none$none
17
+ Token|Unit|SILK|none → SILK$Unit$none$none
18
+ ```
19
+
20
+ **Format 2: Direct (collection=token name)**
21
+
22
+ ```
23
+ GALA|Unit|none|none → GALA$Unit$none$none
24
+ SILK|Unit|none|none → SILK$Unit$none$none
25
+ ```
26
+
27
+ Both are now handled correctly by detecting which field contains the token name and extracting it
28
+ appropriately for the DEX Backend API.
29
+
30
+ Changes:
31
+ - Detect token name location based on collection field
32
+ - Extract from `type` field if collection="Token", otherwise from `collection` field
33
+ - Build API format consistently: `{TOKEN_NAME}$Unit$none$none`
34
+ - Both token format variants now work identically
35
+
36
+ ## 3.16.3
37
+
38
+ ### Patch Changes
39
+
40
+ - ## Fix: Correct Token Format Conversion for Price History (v3.16.3)
41
+
42
+ Simplified token format conversion - removed overly strict validation and corrected the format
43
+ transformation logic.
44
+
45
+ The API expects simple pipe-to-dollar conversion:
46
+ - Input: `GALA|Unit|none|none`
47
+ - Output: `GALA$Unit$none$none`
48
+
49
+ Changed PriceHistoryService to:
50
+ - Use existing token normalization utilities
51
+ - Apply simple pipe-to-dollar format conversion
52
+ - Remove overly strict token format validation that was incorrectly rejecting valid formats
53
+
3
54
  ## 3.16.2
4
55
 
5
56
  ### Patch 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.2";
6
+ export declare const SDK_VERSION = "3.16.4";
7
7
  //# sourceMappingURL=version.generated.d.ts.map