@gala-chain/launchpad-sdk 3.2.0 → 3.3.0
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 +16 -0
- package/dist/constants/enums.d.ts +35 -0
- package/dist/constants/enums.d.ts.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to the Gala Launchpad SDK will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [3.3.0] - 2025-09-30
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Constants Export** - Type-safe constants for trading and pool operations
|
|
11
|
+
- `TRADING_TYPES = { NATIVE: 'native', EXACT: 'exact' } as const`
|
|
12
|
+
- `POOL_TYPES = { RECENT: 'recent', POPULAR: 'popular' } as const`
|
|
13
|
+
- Provides single source of truth for type values
|
|
14
|
+
- Prevents type mismatches between SDK and downstream consumers (e.g., MCP server)
|
|
15
|
+
- Import: `import { TRADING_TYPES, POOL_TYPES } from '@gala-chain/launchpad-sdk'`
|
|
16
|
+
|
|
17
|
+
### Benefits
|
|
18
|
+
- Type safety via TypeScript const assertions
|
|
19
|
+
- Auto-completion in IDEs
|
|
20
|
+
- Prevents hardcoded string typos
|
|
21
|
+
- Single source of truth pattern for SDK integrations
|
|
22
|
+
|
|
7
23
|
## [3.2.0] - 2025-09-30
|
|
8
24
|
|
|
9
25
|
### Added
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trading type constants for buy/sell operations
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import { TRADING_TYPES } from '@gala-chain/launchpad-sdk';
|
|
7
|
+
*
|
|
8
|
+
* await sdk.calculateBuyAmount({
|
|
9
|
+
* tokenName: 'anime',
|
|
10
|
+
* amount: '10',
|
|
11
|
+
* type: TRADING_TYPES.NATIVE
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const TRADING_TYPES: {
|
|
16
|
+
readonly NATIVE: "native";
|
|
17
|
+
readonly EXACT: "exact";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Pool type constants for fetching pools
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { POOL_TYPES } from '@gala-chain/launchpad-sdk';
|
|
25
|
+
*
|
|
26
|
+
* await sdk.fetchPools({
|
|
27
|
+
* type: POOL_TYPES.RECENT
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const POOL_TYPES: {
|
|
32
|
+
readonly RECENT: "recent";
|
|
33
|
+
readonly POPULAR: "popular";
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/constants/enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC"}
|