@gala-chain/launchpad-sdk 3.5.1 → 3.5.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 +16 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/files.d.ts +63 -0
- package/dist/schemas/files.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +82 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/launchpad.d.ts +188 -0
- package/dist/schemas/launchpad.d.ts.map +1 -0
- package/dist/schemas/pagination.d.ts +208 -0
- package/dist/schemas/pagination.d.ts.map +1 -0
- package/dist/schemas/primitives.d.ts +144 -0
- package/dist/schemas/primitives.d.ts.map +1 -0
- package/dist/schemas/trade.d.ts +192 -0
- package/dist/schemas/trade.d.ts.map +1 -0
- package/dist/schemas/user.d.ts +251 -0
- package/dist/schemas/user.d.ts.map +1 -0
- package/dist/schemas/validators.d.ts +243 -0
- package/dist/schemas/validators.d.ts.map +1 -0
- package/dist/services/LaunchpadService.d.ts.map +1 -1
- package/dist/types/launchpad.validation.d.ts +9 -6
- package/dist/types/launchpad.validation.d.ts.map +1 -1
- package/dist/utils/multipart.d.ts +4 -1
- package/dist/utils/multipart.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +13 -12
- package/dist/utils/validation.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod-Powered Validation Utilities
|
|
3
|
+
*
|
|
4
|
+
* Type-safe validation functions that replace manual type guards.
|
|
5
|
+
* These provide clean, backward-compatible wrappers around Zod schemas.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import { launchTokenDataSchema, tokenUrlsSchema, imageUploadOptionsSchema, checkPoolOptionsSchema } from './launchpad.js';
|
|
9
|
+
import { tokenListOptionsSchema, transferFaucetsDataSchema, fetchGalaBalanceOptionsSchema, updateProfileDataSchema, uploadProfileImageOptionsSchema, fetchTokenBalanceOptionsSchema } from './user.js';
|
|
10
|
+
import { createTradeDataSchema, buyTokensDataSchema, sellTokensDataSchema, getTradeOptionsSchema, tradeListParamsSchema, getAmountOptionsSchema, calculatePreMintDataSchema, fetchPoolDetailsDataSchema } from './trade.js';
|
|
11
|
+
/**
|
|
12
|
+
* Standard validation result
|
|
13
|
+
*
|
|
14
|
+
* Provides consistent interface for all validators with proper TypeScript
|
|
15
|
+
* strict mode compatibility.
|
|
16
|
+
*
|
|
17
|
+
* ## Design Rationale
|
|
18
|
+
*
|
|
19
|
+
* This interface uses explicit `T | undefined` instead of optional properties
|
|
20
|
+
* to ensure compatibility with TypeScript's `exactOptionalPropertyTypes` setting.
|
|
21
|
+
*
|
|
22
|
+
* ### TypeScript Configuration Context
|
|
23
|
+
*
|
|
24
|
+
* ```json
|
|
25
|
+
* // tsconfig.json
|
|
26
|
+
* {
|
|
27
|
+
* "compilerOptions": {
|
|
28
|
+
* "exactOptionalPropertyTypes": true
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* With `exactOptionalPropertyTypes: true`, TypeScript strictly enforces that
|
|
34
|
+
* optional properties (`property?: Type`) cannot be assigned `undefined` values.
|
|
35
|
+
* Only missing properties are allowed.
|
|
36
|
+
*
|
|
37
|
+
* ### Interface Design Choice
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* // ❌ INCORRECT - Breaks with exactOptionalPropertyTypes
|
|
41
|
+
* interface ValidationResult<T> {
|
|
42
|
+
* success: boolean;
|
|
43
|
+
* data?: T; // Optional property
|
|
44
|
+
* errors?: string[]; // Optional property
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* // ✅ CORRECT - Compatible with exactOptionalPropertyTypes
|
|
48
|
+
* interface ValidationResult<T> {
|
|
49
|
+
* success: boolean;
|
|
50
|
+
* data: T | undefined; // Explicit undefined
|
|
51
|
+
* errors: string[] | undefined; // Explicit undefined
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ### Usage Patterns
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* // Success case
|
|
59
|
+
* const successResult: ValidationResult<string> = {
|
|
60
|
+
* success: true,
|
|
61
|
+
* data: 'validated-value',
|
|
62
|
+
* errors: undefined
|
|
63
|
+
* };
|
|
64
|
+
*
|
|
65
|
+
* // Failure case
|
|
66
|
+
* const failureResult: ValidationResult<string> = {
|
|
67
|
+
* success: false,
|
|
68
|
+
* data: undefined,
|
|
69
|
+
* errors: ['Validation error message']
|
|
70
|
+
* };
|
|
71
|
+
*
|
|
72
|
+
* // Type-safe consumption
|
|
73
|
+
* function handleResult(result: ValidationResult<string>) {
|
|
74
|
+
* if (result.success) {
|
|
75
|
+
* // TypeScript knows result.data is string | undefined
|
|
76
|
+
* console.log(result.data);
|
|
77
|
+
* } else {
|
|
78
|
+
* // TypeScript knows result.errors is string[] | undefined
|
|
79
|
+
* console.error(result.errors);
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* ### Benefits
|
|
85
|
+
*
|
|
86
|
+
* 1. **Type Safety**: Explicit undefined makes intent clear
|
|
87
|
+
* 2. **Strict Mode**: Compatible with `exactOptionalPropertyTypes`
|
|
88
|
+
* 3. **Consistency**: All validators return same shape
|
|
89
|
+
* 4. **Backward Compatibility**: Maintains existing API surface
|
|
90
|
+
*
|
|
91
|
+
* @template T The type of the validated data
|
|
92
|
+
*/
|
|
93
|
+
export interface ValidationResult<T> {
|
|
94
|
+
/** Whether validation passed */
|
|
95
|
+
success: boolean;
|
|
96
|
+
/** Validated and transformed data (if successful) */
|
|
97
|
+
data: T | undefined;
|
|
98
|
+
/** Validation error messages (if failed) */
|
|
99
|
+
errors: string[] | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Validates token name format
|
|
103
|
+
* Replaces: isValidTokenName()
|
|
104
|
+
*/
|
|
105
|
+
export declare function validateTokenName(value: unknown): ValidationResult<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Validates token symbol format
|
|
108
|
+
* Replaces: isValidTokenSymbol()
|
|
109
|
+
*/
|
|
110
|
+
export declare function validateTokenSymbol(value: unknown): ValidationResult<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Validates token description
|
|
113
|
+
* Replaces: isValidTokenDescription()
|
|
114
|
+
*/
|
|
115
|
+
export declare function validateTokenDescription(value: unknown): ValidationResult<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Validates and normalizes address format
|
|
118
|
+
* Accepts both 0x... and eth|... formats, outputs eth|... format
|
|
119
|
+
* Replaces: isValidUserAddress(), normalizeAddressInput()
|
|
120
|
+
*/
|
|
121
|
+
export declare function validateAddress(value: unknown): ValidationResult<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Validates vault address format
|
|
124
|
+
* Supports both eth| and service| formats
|
|
125
|
+
* Replaces: isValidVaultAddress()
|
|
126
|
+
*/
|
|
127
|
+
export declare function validateVaultAddress(value: unknown): ValidationResult<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Validates positive decimal string
|
|
130
|
+
* Replaces: isValidAmountString()
|
|
131
|
+
*/
|
|
132
|
+
export declare function validateAmountString(value: unknown): ValidationResult<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Validates faucet amount (positive, non-zero)
|
|
135
|
+
* Replaces: isValidFaucetAmount()
|
|
136
|
+
*/
|
|
137
|
+
export declare function validateFaucetAmount(value: unknown): ValidationResult<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Validates full name format
|
|
140
|
+
* Replaces: isValidFullName()
|
|
141
|
+
*/
|
|
142
|
+
export declare function validateFullName(value: unknown): ValidationResult<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Validates search query
|
|
145
|
+
* Replaces: isValidSearchQuery()
|
|
146
|
+
*/
|
|
147
|
+
export declare function validateSearchQuery(value: unknown): ValidationResult<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Validates user token name (more permissive than creation token name)
|
|
150
|
+
* Replaces: isValidUserTokenName()
|
|
151
|
+
*/
|
|
152
|
+
export declare function validateUserTokenName(value: unknown): ValidationResult<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Validates launch token data
|
|
155
|
+
* Replaces: isLaunchTokenData()
|
|
156
|
+
*/
|
|
157
|
+
export declare function validateLaunchTokenData(value: unknown): ValidationResult<z.infer<typeof launchTokenDataSchema>>;
|
|
158
|
+
/**
|
|
159
|
+
* Validates token social URLs
|
|
160
|
+
* Replaces manual URL validation
|
|
161
|
+
*/
|
|
162
|
+
export declare function validateTokenUrls(value: unknown): ValidationResult<z.infer<typeof tokenUrlsSchema>>;
|
|
163
|
+
/**
|
|
164
|
+
* Validates image upload options
|
|
165
|
+
* Replaces: isImageUploadOptions()
|
|
166
|
+
*/
|
|
167
|
+
export declare function validateImageUploadOptions(value: unknown): ValidationResult<z.infer<typeof imageUploadOptionsSchema>>;
|
|
168
|
+
/**
|
|
169
|
+
* Validates check pool options
|
|
170
|
+
* Replaces: isCheckPoolOptions()
|
|
171
|
+
*/
|
|
172
|
+
export declare function validateCheckPoolOptions(value: unknown): ValidationResult<z.infer<typeof checkPoolOptionsSchema>>;
|
|
173
|
+
/**
|
|
174
|
+
* Validates token list options
|
|
175
|
+
* Replaces: isGetTokenListOptions()
|
|
176
|
+
*/
|
|
177
|
+
export declare function validateTokenListOptions(value: unknown): ValidationResult<z.infer<typeof tokenListOptionsSchema>>;
|
|
178
|
+
/**
|
|
179
|
+
* Validates transfer faucets data
|
|
180
|
+
* Replaces: isTransferFaucetsData()
|
|
181
|
+
*/
|
|
182
|
+
export declare function validateTransferFaucetsData(value: unknown): ValidationResult<z.infer<typeof transferFaucetsDataSchema>>;
|
|
183
|
+
/**
|
|
184
|
+
* Validates fetch GALA balance options
|
|
185
|
+
* Replaces: isFetchGalaBalanceOptions()
|
|
186
|
+
*/
|
|
187
|
+
export declare function validateFetchGalaBalanceOptions(value: unknown): ValidationResult<z.infer<typeof fetchGalaBalanceOptionsSchema>>;
|
|
188
|
+
/**
|
|
189
|
+
* Validates update profile data
|
|
190
|
+
* Replaces: isUpdateProfileData()
|
|
191
|
+
*/
|
|
192
|
+
export declare function validateUpdateProfileData(value: unknown): ValidationResult<z.infer<typeof updateProfileDataSchema>>;
|
|
193
|
+
/**
|
|
194
|
+
* Validates upload profile image options
|
|
195
|
+
* Replaces: isUploadProfileImageOptions()
|
|
196
|
+
*/
|
|
197
|
+
export declare function validateUploadProfileImageOptions(value: unknown): ValidationResult<z.infer<typeof uploadProfileImageOptionsSchema>>;
|
|
198
|
+
/**
|
|
199
|
+
* Validates fetch token balance options
|
|
200
|
+
* Replaces: isFetchTokenBalanceOptions()
|
|
201
|
+
*/
|
|
202
|
+
export declare function validateFetchTokenBalanceOptions(value: unknown): ValidationResult<z.infer<typeof fetchTokenBalanceOptionsSchema>>;
|
|
203
|
+
/**
|
|
204
|
+
* Validates create trade data
|
|
205
|
+
* Replaces: isCreateTradeData()
|
|
206
|
+
*/
|
|
207
|
+
export declare function validateCreateTradeData(value: unknown): ValidationResult<z.infer<typeof createTradeDataSchema>>;
|
|
208
|
+
/**
|
|
209
|
+
* Validates buy tokens data
|
|
210
|
+
* Replaces: isBuyTokensData()
|
|
211
|
+
*/
|
|
212
|
+
export declare function validateBuyTokensData(value: unknown): ValidationResult<z.infer<typeof buyTokensDataSchema>>;
|
|
213
|
+
/**
|
|
214
|
+
* Validates sell tokens data
|
|
215
|
+
* Replaces: isSellTokensData()
|
|
216
|
+
*/
|
|
217
|
+
export declare function validateSellTokensData(value: unknown): ValidationResult<z.infer<typeof sellTokensDataSchema>>;
|
|
218
|
+
/**
|
|
219
|
+
* Validates get trade options
|
|
220
|
+
* Replaces: isGetTradeOptions()
|
|
221
|
+
*/
|
|
222
|
+
export declare function validateGetTradeOptions(value: unknown): ValidationResult<z.infer<typeof getTradeOptionsSchema>>;
|
|
223
|
+
/**
|
|
224
|
+
* Validates trade list params
|
|
225
|
+
* Replaces: isTradeListParams()
|
|
226
|
+
*/
|
|
227
|
+
export declare function validateTradeListParams(value: unknown): ValidationResult<z.infer<typeof tradeListParamsSchema>>;
|
|
228
|
+
/**
|
|
229
|
+
* Validates get amount options
|
|
230
|
+
* Replaces: isGetAmountOptions()
|
|
231
|
+
*/
|
|
232
|
+
export declare function validateGetAmountOptions(value: unknown): ValidationResult<z.infer<typeof getAmountOptionsSchema>>;
|
|
233
|
+
/**
|
|
234
|
+
* Validates calculate pre-mint data
|
|
235
|
+
* Replaces: isCalculatePreMintData()
|
|
236
|
+
*/
|
|
237
|
+
export declare function validateCalculatePreMintData(value: unknown): ValidationResult<z.infer<typeof calculatePreMintDataSchema>>;
|
|
238
|
+
/**
|
|
239
|
+
* Validates fetch pool details data
|
|
240
|
+
* Replaces: isFetchPoolDetailsData()
|
|
241
|
+
*/
|
|
242
|
+
export declare function validateFetchPoolDetailsData(value: unknown): ValidationResult<z.infer<typeof fetchPoolDetailsDataSchema>>;
|
|
243
|
+
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/schemas/validators.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAC7B,uBAAuB,EACvB,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,qB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AkBnC;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAkBjC;;;;OAIG;IACH,OAAO,CAAC,iCAAiC;CAW1C"}
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
*
|
|
4
4
|
* These functions provide client-side validation to catch errors
|
|
5
5
|
* before making API calls to the backend.
|
|
6
|
+
*
|
|
7
|
+
* MIGRATION NOTE: This file now uses Zod validators from schemas/validators.ts
|
|
8
|
+
* while maintaining backward-compatible API for legacy code.
|
|
6
9
|
*/
|
|
7
|
-
import { LaunchTokenData } from './launchpad.dto';
|
|
10
|
+
import type { LaunchTokenData } from './launchpad.dto.js';
|
|
8
11
|
/**
|
|
9
|
-
* Validates token name format
|
|
12
|
+
* Validates token name format using Zod schema
|
|
10
13
|
*/
|
|
11
14
|
export declare function isValidTokenName(name: string): boolean;
|
|
12
15
|
/**
|
|
13
|
-
* Validates token symbol format
|
|
16
|
+
* Validates token symbol format using Zod schema
|
|
14
17
|
*/
|
|
15
18
|
export declare function isValidTokenSymbol(symbol: string): boolean;
|
|
16
19
|
/**
|
|
17
|
-
* Validates token description format
|
|
20
|
+
* Validates token description format using Zod schema
|
|
18
21
|
*/
|
|
19
22
|
export declare function isValidTokenDescription(description: string): boolean;
|
|
20
23
|
/**
|
|
@@ -26,11 +29,11 @@ export declare function isValidUrl(url: string): boolean;
|
|
|
26
29
|
*/
|
|
27
30
|
export declare function hasAtLeastOneSocialUrl(data: LaunchTokenData): boolean;
|
|
28
31
|
/**
|
|
29
|
-
* Type guard to check if an object is valid LaunchTokenData
|
|
32
|
+
* Type guard to check if an object is valid LaunchTokenData using Zod schema
|
|
30
33
|
*/
|
|
31
34
|
export declare function isValidLaunchTokenData(obj: any): obj is LaunchTokenData;
|
|
32
35
|
/**
|
|
33
|
-
* Generates detailed validation error messages for LaunchTokenData
|
|
36
|
+
* Generates detailed validation error messages for LaunchTokenData using Zod
|
|
34
37
|
*/
|
|
35
38
|
export declare function getLaunchTokenDataValidationErrors(obj: any): string[];
|
|
36
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launchpad.validation.d.ts","sourceRoot":"","sources":["../../src/types/launchpad.validation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"launchpad.validation.d.ts","sourceRoot":"","sources":["../../src/types/launchpad.validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAM1D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGtD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAGpE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAO/C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CASrE;AAMD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,eAAe,CAGvE;AAMD;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,EAAE,CAQrE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,GAAG,GACR,OAAO,CAAC,IAAI,IAAI,eAAe,CAQjC"}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This module provides cross-platform file upload support for both
|
|
5
5
|
* browser and Node.js environments.
|
|
6
|
+
*
|
|
7
|
+
* MIGRATION NOTE: This file now uses Zod schemas for validation while maintaining
|
|
8
|
+
* backward-compatible API through FileValidationError throwing functions.
|
|
6
9
|
*/
|
|
7
10
|
/**
|
|
8
11
|
* Error thrown when file validation fails
|
|
@@ -13,7 +16,7 @@ export declare class FileValidationError extends Error {
|
|
|
13
16
|
constructor(message: string, filename?: string | undefined, mimeType?: string | undefined);
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
|
-
* Validates a file against upload constraints
|
|
19
|
+
* Validates a file against upload constraints using Zod schemas
|
|
17
20
|
*
|
|
18
21
|
* @param file File or Buffer to validate
|
|
19
22
|
* @param filename Original filename (required for Buffer validation)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/utils/multipart.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/utils/multipart.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAGnC,QAAQ,CAAC,EAAE,MAAM;IACjB,QAAQ,CAAC,EAAE,MAAM;gBAFxB,OAAO,EAAE,MAAM,EACR,QAAQ,CAAC,EAAE,MAAM,YAAA,EACjB,QAAQ,CAAC,EAAE,MAAM,YAAA;CAK3B;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,GAAG,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI,CAiGN;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CASzD;AA0BD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACzB,QAAQ,CAiBV;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CA0CnD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAuB9C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAM3C"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Validation utilities for Launchpad API operations
|
|
3
3
|
*
|
|
4
|
-
* This module provides input validation to catch issues before making API calls,
|
|
4
|
+
* This module provides input validation using Zod schemas to catch issues before making API calls,
|
|
5
5
|
* improving error messages and reducing unnecessary network requests.
|
|
6
|
+
*
|
|
7
|
+
* MIGRATION NOTE: This file now uses Zod schemas for validation while maintaining
|
|
8
|
+
* backward-compatible API through ValidationError throwing functions.
|
|
6
9
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { AddressFormat
|
|
10
|
+
import { FetchPoolOptions, GetAmountOptions, GetGraphOptions, CheckPoolOptions, TokenUrls } from '../types/launchpad.dto.js';
|
|
11
|
+
import { AddressFormat } from '../types/common.js';
|
|
9
12
|
/**
|
|
10
13
|
* Error thrown when validation fails
|
|
11
14
|
*/
|
|
@@ -71,6 +74,13 @@ export declare function validateGetGraphOptions(options: GetGraphOptions): void;
|
|
|
71
74
|
* @throws ValidationError if validation fails
|
|
72
75
|
*/
|
|
73
76
|
export declare function validateCreatePoolData(data: any): void;
|
|
77
|
+
/**
|
|
78
|
+
* Validates launch token data (for bundle backend)
|
|
79
|
+
*
|
|
80
|
+
* @param data Token launch data to validate
|
|
81
|
+
* @throws ValidationError if validation fails
|
|
82
|
+
*/
|
|
83
|
+
export declare function validateLaunchTokenData(data: any): void;
|
|
74
84
|
/**
|
|
75
85
|
* Converts Ethereum address to backend format
|
|
76
86
|
*
|
|
@@ -101,17 +111,8 @@ export declare function fromBackendAddressFormat(backendAddress: string): string
|
|
|
101
111
|
* ```
|
|
102
112
|
*/
|
|
103
113
|
export declare function normalizeAddressInput(address: string | undefined): AddressFormat | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* Validates launch token data (for bundle backend)
|
|
106
|
-
*
|
|
107
|
-
* @param data Token launch data to validate
|
|
108
|
-
* @throws ValidationError if validation fails
|
|
109
|
-
*/
|
|
110
|
-
export declare function validateLaunchTokenData(data: any): void;
|
|
111
114
|
export declare function isValidEthereumAddress(address: string): boolean;
|
|
112
115
|
export declare function isValidAddressFormat(address: string): address is AddressFormat;
|
|
113
|
-
export declare function formatAddressForBackend(address: EthereumAddress): AddressFormat;
|
|
114
|
-
export declare function formatAddressForEthereum(formattedAddress: AddressFormat): EthereumAddress;
|
|
115
116
|
/**
|
|
116
117
|
* Generates a vault address for commenting on tokens
|
|
117
118
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAiBH,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACV,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IAG/B,KAAK,CAAC,EAAE,MAAM;IACd,IAAI,CAAC,EAAE,MAAM;gBAFpB,OAAO,EAAE,MAAM,EACR,KAAK,CAAC,EAAE,MAAM,YAAA,EACd,IAAI,CAAC,EAAE,MAAM,YAAA;CAKvB;AAaD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAKzD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAKlE;A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AC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAkBxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gala-chain/launchpad-sdk",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "TypeScript SDK for Gala Launchpad Backend API - Production-ready DeFi token launchpad integration with wallet-based authentication, GalaChain trading, and comprehensive user operations. 100% tested (22/22 endpoints working).",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -133,7 +133,9 @@
|
|
|
133
133
|
"dotenv": "^17.2.3",
|
|
134
134
|
"ethers": "^6.15.0",
|
|
135
135
|
"socket.io-client": "^4.8.1",
|
|
136
|
-
"uuid": "^13.0.0"
|
|
136
|
+
"uuid": "^13.0.0",
|
|
137
|
+
"zod": "^3.25.76",
|
|
138
|
+
"zod-to-json-schema": "^3.24.6"
|
|
137
139
|
},
|
|
138
140
|
"size-limit": [
|
|
139
141
|
{
|