@gala-chain/launchpad-sdk 3.29.0 → 3.31.2

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +35 -7
  2. package/README.md +105 -0
  3. package/dist/LaunchpadSDK.d.ts +8 -0
  4. package/dist/LaunchpadSDK.d.ts.map +1 -1
  5. package/dist/api/dto/TransferTokenDto.d.ts.map +1 -1
  6. package/dist/constants/version.generated.d.ts +1 -1
  7. package/dist/helpers/sdk.d.ts +1 -0
  8. package/dist/helpers/sdk.d.ts.map +1 -1
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/services/BaseService.d.ts +32 -3
  13. package/dist/services/BaseService.d.ts.map +1 -1
  14. package/dist/services/BundleService.d.ts.map +1 -1
  15. package/dist/services/CommentService.d.ts.map +1 -1
  16. package/dist/services/DexPoolService.d.ts.map +1 -1
  17. package/dist/services/DexService.d.ts.map +1 -1
  18. package/dist/services/FaucetService.d.ts.map +1 -1
  19. package/dist/services/GSwapService.d.ts +57 -4
  20. package/dist/services/GSwapService.d.ts.map +1 -1
  21. package/dist/services/GalaChainService.d.ts.map +1 -1
  22. package/dist/services/ImageService.d.ts.map +1 -1
  23. package/dist/services/PoolService.d.ts.map +1 -1
  24. package/dist/services/PriceHistoryService.d.ts +4 -5
  25. package/dist/services/PriceHistoryService.d.ts.map +1 -1
  26. package/dist/services/SignatureService.d.ts +2 -3
  27. package/dist/services/SignatureService.d.ts.map +1 -1
  28. package/dist/services/TokenClassKeyService.d.ts +3 -4
  29. package/dist/services/TokenClassKeyService.d.ts.map +1 -1
  30. package/dist/services/TokenMetadataCache.d.ts +2 -2
  31. package/dist/services/TokenMetadataCache.d.ts.map +1 -1
  32. package/dist/services/TokenMetadataService.d.ts +3 -3
  33. package/dist/services/TokenMetadataService.d.ts.map +1 -1
  34. package/dist/services/TokenResolverService.d.ts +2 -2
  35. package/dist/services/TokenResolverService.d.ts.map +1 -1
  36. package/dist/services/TradeService.d.ts.map +1 -1
  37. package/dist/services/UserService.d.ts.map +1 -1
  38. package/dist/services/WebSocketService.d.ts +2 -2
  39. package/dist/services/WebSocketService.d.ts.map +1 -1
  40. package/dist/utils/SignatureHelper.d.ts.map +1 -1
  41. package/dist/utils/auto-pagination.d.ts +132 -0
  42. package/dist/utils/auto-pagination.d.ts.map +1 -0
  43. package/dist/utils/bignumber-helpers.d.ts +264 -0
  44. package/dist/utils/bignumber-helpers.d.ts.map +1 -0
  45. package/dist/utils/token-format-converter.d.ts +75 -3
  46. package/dist/utils/token-format-converter.d.ts.map +1 -1
  47. package/dist/utils/tokenNormalizer.d.ts +66 -0
  48. package/dist/utils/tokenNormalizer.d.ts.map +1 -1
  49. package/dist/utils/validation-helpers.d.ts +75 -0
  50. package/dist/utils/validation-helpers.d.ts.map +1 -1
  51. package/package.json +2 -2
  52. package/dist/utils/tokenFormatConverter.d.ts +0 -53
  53. package/dist/utils/tokenFormatConverter.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-sdk",
3
- "version": "3.29.0",
4
- "description": "TypeScript SDK for Gala Launchpad Backend API - 66 methods supporting optional wallet (read-only and full-access modes). Production-ready DeFi token launchpad integration with AgentConfig setup, GalaChain trading, GSwap DEX integration, price history, token creation, DEX pool discovery, and comprehensive user operations. Multi-format output (ESM, CJS, UMD).",
3
+ "version": "3.31.2",
4
+ "description": "TypeScript SDK for Gala Launchpad Backend API - 72 methods supporting optional wallet (read-only and full-access modes). Production-ready DeFi token launchpad integration with AgentConfig setup, GalaChain trading, GSwap DEX integration, price history, token creation, DEX pool discovery, WebSocket event watchers, and comprehensive user operations. Multi-format output (ESM, CJS, UMD).",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
@@ -1,53 +0,0 @@
1
- /**
2
- * Token Format Conversion Utilities
3
- *
4
- * Converts between pipe-delimited and dollar-delimited token ID formats.
5
- * Used for translating between SDK format (pipe) and DEX Backend API format (dollar).
6
- *
7
- * @internal
8
- */
9
- /**
10
- * Convert pipe-delimited token ID to dollar-delimited format for API
11
- *
12
- * @param pipeToken Pipe-delimited format: "Token|Unit|GUSDC|eth:0x..."
13
- * @returns Dollar-delimited format: "Token$Unit$GUSDC$eth:0x..."
14
- * @throws Error if token is null or empty
15
- *
16
- * @example
17
- * ```typescript
18
- * pipeFormatToDollarFormat("Token|Unit|GUSDC|eth:0x123")
19
- * // Returns: "Token$Unit$GUSDC$eth:0x123"
20
- * ```
21
- */
22
- export declare function pipeFormatToDollarFormat(pipeToken: string): string;
23
- /**
24
- * Convert dollar-delimited API response to pipe-delimited format
25
- *
26
- * @param dollarToken Dollar-delimited format: "Token$Unit$GUSDC$eth:0x..."
27
- * @returns Pipe-delimited format: "Token|Unit|GUSDC|eth:0x..."
28
- * @throws Error if token is null or empty
29
- *
30
- * @example
31
- * ```typescript
32
- * dollarFormatToPipeFormat("Token$Unit$GUSDC$eth:0x123")
33
- * // Returns: "Token|Unit|GUSDC|eth:0x123"
34
- * ```
35
- */
36
- export declare function dollarFormatToPipeFormat(dollarToken: string): string;
37
- /**
38
- * Convert sort order from SDK format (uppercase) to API format (lowercase)
39
- *
40
- * @param sortOrder SDK sort order: 'ASC' | 'DESC'
41
- * @returns API sort order: 'asc' | 'desc' | undefined
42
- *
43
- * @example
44
- * ```typescript
45
- * convertSortOrderToApi('ASC')
46
- * // Returns: 'asc'
47
- *
48
- * convertSortOrderToApi(undefined)
49
- * // Returns: undefined
50
- * ```
51
- */
52
- export declare function convertSortOrderToApi(sortOrder?: 'ASC' | 'DESC'): 'asc' | 'desc' | undefined;
53
- //# sourceMappingURL=tokenFormatConverter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokenFormatConverter.d.ts","sourceRoot":"","sources":["../../src/utils/tokenFormatConverter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMlE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAMpE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAM5F"}