@gala-chain/launchpad-sdk 3.22.2 → 3.22.3
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 +46 -0
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.22.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- docs: update changelogs for v3.22.2 and v1.17.2 releases
|
|
8
|
+
|
|
9
|
+
## 3.22.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix authentication issue with GalaChain FetchTokenClasses endpoint
|
|
14
|
+
|
|
15
|
+
The GalaChain `/api/asset/token-contract/FetchTokenClasses` endpoint is public but rejects
|
|
16
|
+
authenticated requests (returns 404 when Sign header is present). Created separate unauthenticated
|
|
17
|
+
axios instance for public token metadata queries instead of using authenticated HttpClient.
|
|
18
|
+
|
|
19
|
+
**Changes:**
|
|
20
|
+
- Added `galaChainPublicAxios` to LaunchpadSDK constructor for public token queries
|
|
21
|
+
- Updated GalaChainService to accept optional unauthenticated axios instance
|
|
22
|
+
- Modified `fetchTokenClassFromChain()` to use public axios for token metadata queries
|
|
23
|
+
- Fixes "Token not found on GalaChain" errors for launchpad tokens like MECHA, DNP, WENPUMP
|
|
24
|
+
|
|
25
|
+
**Result:**
|
|
26
|
+
- Token details now fetch correctly for all token types
|
|
27
|
+
- Launchpad token metadata queries no longer fail with 404 errors
|
|
28
|
+
- All 1131 tests passing
|
|
29
|
+
|
|
30
|
+
## 3.22.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Fix GalaChainService response parsing for token metadata
|
|
35
|
+
|
|
36
|
+
The `fetchTokenClassFromChain()` method was incorrectly parsing the API response structure. The
|
|
37
|
+
GalaChain FetchTokenClasses endpoint returns `Data: TokenClass[]` directly, not
|
|
38
|
+
`Data: { results: TokenClass[] }`.
|
|
39
|
+
|
|
40
|
+
**Changes:**
|
|
41
|
+
- Updated response type from `{ results: TokenClass[] }` to `TokenClass[]`
|
|
42
|
+
- Fixed data access from `response.Data.results[0]` to `response.Data[0]`
|
|
43
|
+
- Simplified null/empty checks to handle direct array response
|
|
44
|
+
|
|
45
|
+
**Result:**
|
|
46
|
+
- Token metadata queries return correct data instead of "Token not found" errors
|
|
47
|
+
- All 1131 tests passing
|
|
48
|
+
|
|
3
49
|
## 3.22.0
|
|
4
50
|
|
|
5
51
|
### Minor Changes
|