@gala-chain/launchpad-sdk 3.16.3 → 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,38 @@
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
+
3
36
  ## 3.16.3
4
37
 
5
38
  ### 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.3";
6
+ export declare const SDK_VERSION = "3.16.4";
7
7
  //# sourceMappingURL=version.generated.d.ts.map