@gala-chain/launchpad-sdk 3.6.4 → 3.6.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CommentService.d.ts","sourceRoot":"","sources":["../../src/services/CommentService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAEL,cAAc,EAKf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,IAAI,EAAE,UAAU,EAChB,WAAW,EAAE,WAAW;IAG3C;;;;;;;;;;OAUG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;IA8D3E;;;;;;;;;;OAUG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CA4D9D"}
1
+ {"version":3,"file":"CommentService.d.ts","sourceRoot":"","sources":["../../src/services/CommentService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAEL,cAAc,EAKf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACr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AC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,GAC3D,IAAI;IAMP;;;;;;;OAOG;IACH,OAAO,CAAC,gCAAgC;CAgCzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TradeService.d.ts","sourceRoot":"","sources":["../../src/services/TradeService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,OAAO,EAEL,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C;;;;;;;;;OASG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;CA2DtE"}
1
+ {"version":3,"file":"TradeService.d.ts","sourceRoot":"","sources":["../../src/services/TradeService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,OAAO,EAEL,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C;;;;;;;;;OASG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;CAuDtE"}
@@ -7,7 +7,7 @@
7
7
  * @category Utilities
8
8
  * @since 3.6.1
9
9
  */
10
- import { ValidationError } from './validation';
10
+ import { ValidationError } from './errors';
11
11
  /**
12
12
  * Creates a standardized "token not found" validation error
13
13
  *
@@ -92,4 +92,131 @@ import { ValidationError } from './validation';
92
92
  * ```
93
93
  */
94
94
  export declare function createTokenNotFoundError(tokenName: string, context?: 'transfer'): ValidationError;
95
+ /**
96
+ * Creates a standardized "required field" validation error
97
+ *
98
+ * This factory eliminates duplicate required field error messages found across
99
+ * services and type guards. It provides consistent messaging for missing required fields.
100
+ *
101
+ * ## Replaces Patterns
102
+ *
103
+ * This function replaces 20+ instances of duplicate error creation:
104
+ *
105
+ * ### Before (Duplicate Pattern Across Services):
106
+ * ```typescript
107
+ * // Various services
108
+ * throw new ValidationError(
109
+ * 'Token name is required',
110
+ * 'tokenName',
111
+ * 'REQUIRED_FIELD'
112
+ * );
113
+ *
114
+ * throw new ValidationError(
115
+ * 'Wallet address is required',
116
+ * 'address',
117
+ * 'REQUIRED_FIELD'
118
+ * );
119
+ *
120
+ * throw new ValidationError(
121
+ * 'Amount is required',
122
+ * 'amount',
123
+ * 'REQUIRED_FIELD'
124
+ * );
125
+ * ```
126
+ *
127
+ * ### After (Single Source of Truth):
128
+ * ```typescript
129
+ * throw createRequiredFieldError('tokenName');
130
+ * throw createRequiredFieldError('address', 'Wallet address');
131
+ * throw createRequiredFieldError('amount');
132
+ * ```
133
+ *
134
+ * @param fieldName The field name that is required
135
+ * @param displayName Optional human-readable field name (defaults to capitalized fieldName)
136
+ * @returns ValidationError with standardized message
137
+ *
138
+ * @example Basic usage (auto-capitalized)
139
+ * ```typescript
140
+ * if (!tokenName) {
141
+ * throw createRequiredFieldError('tokenName');
142
+ * }
143
+ * // Throws: ValidationError with message: "TokenName is required"
144
+ * ```
145
+ *
146
+ * @example With custom display name
147
+ * ```typescript
148
+ * if (!address) {
149
+ * throw createRequiredFieldError('address', 'Wallet address');
150
+ * }
151
+ * // Throws: ValidationError with message: "Wallet address is required"
152
+ * ```
153
+ *
154
+ * @since 3.6.6
155
+ */
156
+ export declare function createRequiredFieldError(fieldName: string, displayName?: string): ValidationError;
157
+ /**
158
+ * Creates a standardized "invalid format" validation error
159
+ *
160
+ * This factory eliminates duplicate format validation error messages found across
161
+ * services and type guards. It provides consistent messaging for format validation failures.
162
+ *
163
+ * ## Replaces Patterns
164
+ *
165
+ * This function replaces 15+ instances of duplicate error creation:
166
+ *
167
+ * ### Before (Duplicate Pattern Across Services):
168
+ * ```typescript
169
+ * // Various services
170
+ * throw new ValidationError(
171
+ * 'Token name must be a string between 2-20 characters',
172
+ * 'tokenName',
173
+ * 'INVALID_FORMAT'
174
+ * );
175
+ *
176
+ * throw new ValidationError(
177
+ * 'Wallet address must be a valid Ethereum address',
178
+ * 'address',
179
+ * 'INVALID_FORMAT'
180
+ * );
181
+ *
182
+ * throw new ValidationError(
183
+ * 'Amount must be a positive number',
184
+ * 'amount',
185
+ * 'INVALID_FORMAT'
186
+ * );
187
+ * ```
188
+ *
189
+ * ### After (Single Source of Truth):
190
+ * ```typescript
191
+ * throw createInvalidFormatError('tokenName', 'a string between 2-20 characters');
192
+ * throw createInvalidFormatError('address', 'a valid Ethereum address');
193
+ * throw createInvalidFormatError('amount', 'a positive number');
194
+ * ```
195
+ *
196
+ * @param fieldName The field name with invalid format
197
+ * @param expectedFormat Human-readable description of the expected format
198
+ * @param displayName Optional human-readable field name (defaults to capitalized fieldName)
199
+ * @returns ValidationError with standardized message
200
+ *
201
+ * @example Basic usage (auto-capitalized)
202
+ * ```typescript
203
+ * if (!isValidTokenName(tokenName)) {
204
+ * throw createInvalidFormatError('tokenName', 'a string between 2-20 characters');
205
+ * }
206
+ * // Throws: ValidationError with message:
207
+ * // "TokenName must be a string between 2-20 characters"
208
+ * ```
209
+ *
210
+ * @example With custom display name
211
+ * ```typescript
212
+ * if (!isValidAddress(address)) {
213
+ * throw createInvalidFormatError('address', 'a valid Ethereum address', 'Wallet address');
214
+ * }
215
+ * // Throws: ValidationError with message:
216
+ * // "Wallet address must be a valid Ethereum address"
217
+ * ```
218
+ *
219
+ * @since 3.6.6
220
+ */
221
+ export declare function createInvalidFormatError(fieldName: string, expectedFormat: string, displayName?: string): ValidationError;
95
222
  //# sourceMappingURL=error-factories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-factories.d.ts","sourceRoot":"","sources":["../../src/utils/error-factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,UAAU,GACnB,eAAe,CAOjB"}
1
+ {"version":3,"file":"error-factories.d.ts","sourceRoot":"","sources":["../../src/utils/error-factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,UAAU,GACnB,eAAe,CAOjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,GACnB,eAAe,CAOjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,WAAW,CAAC,EAAE,MAAM,GACnB,eAAe,CAOjB"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Common Error Classes
3
+ *
4
+ * Base error classes used throughout the SDK for validation and operation failures.
5
+ * Extracted to a separate module to prevent circular dependencies.
6
+ *
7
+ * @category Utilities
8
+ * @since 3.6.5
9
+ */
10
+ /**
11
+ * Error thrown when validation fails
12
+ *
13
+ * This error is used throughout the SDK to indicate that input validation
14
+ * has failed. It provides structured information about what failed and why.
15
+ *
16
+ * @example Basic validation error
17
+ * ```typescript
18
+ * throw new ValidationError(
19
+ * 'Token name must be between 3 and 20 characters',
20
+ * 'tokenName',
21
+ * 'INVALID_TOKEN_NAME'
22
+ * );
23
+ * ```
24
+ *
25
+ * @example Catching validation errors
26
+ * ```typescript
27
+ * try {
28
+ * validateTokenName(name);
29
+ * } catch (error) {
30
+ * if (error instanceof ValidationError) {
31
+ * console.log(`Field: ${error.field}`);
32
+ * console.log(`Code: ${error.code}`);
33
+ * console.log(`Message: ${error.message}`);
34
+ * }
35
+ * }
36
+ * ```
37
+ */
38
+ export declare class ValidationError extends Error {
39
+ field?: string | undefined;
40
+ code?: string | undefined;
41
+ /**
42
+ * Creates a new ValidationError
43
+ *
44
+ * @param message - Human-readable error message describing what failed
45
+ * @param field - Optional field name that failed validation
46
+ * @param code - Optional error code for programmatic handling (e.g., 'INVALID_TOKEN_NAME')
47
+ */
48
+ constructor(message: string, field?: string | undefined, code?: string | undefined);
49
+ }
50
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IAU/B,KAAK,CAAC,EAAE,MAAM;IACd,IAAI,CAAC,EAAE,MAAM;IAVtB;;;;;;OAMG;gBAED,OAAO,EAAE,MAAM,EACR,KAAK,CAAC,EAAE,MAAM,YAAA,EACd,IAAI,CAAC,EAAE,MAAM,YAAA;CAKvB"}
@@ -125,6 +125,59 @@ export declare const ADDRESS_PATTERNS: {
125
125
  /** Backend address format: eth| followed by 40 hexadecimal characters */
126
126
  readonly BACKEND_ADDRESS: RegExp;
127
127
  };
128
+ /**
129
+ * Type guard to check if a value is a non-empty string
130
+ *
131
+ * This utility consolidates the common validation pattern found across the SDK:
132
+ * checking if a value exists, is a string, and is not empty after trimming.
133
+ *
134
+ * ## Replaces Pattern
135
+ *
136
+ * ### Before (Repeated ~40 times):
137
+ * ```typescript
138
+ * if (!value || typeof value !== 'string' || value.trim().length === 0) {
139
+ * throw new ValidationError('Value required', 'fieldName');
140
+ * }
141
+ * ```
142
+ *
143
+ * ### After (Single Source of Truth):
144
+ * ```typescript
145
+ * import { isNonEmptyString } from '../utils/validation-helpers';
146
+ *
147
+ * if (!isNonEmptyString(value)) {
148
+ * throw new ValidationError('Value required', 'fieldName');
149
+ * }
150
+ * ```
151
+ *
152
+ * @param value - Value to check
153
+ * @returns True if value is a string with non-whitespace content
154
+ *
155
+ * @example Basic usage
156
+ * ```typescript
157
+ * isNonEmptyString('hello'); // true
158
+ * isNonEmptyString(' '); // false (only whitespace)
159
+ * isNonEmptyString(''); // false (empty)
160
+ * isNonEmptyString(null); // false
161
+ * isNonEmptyString(undefined); // false
162
+ * isNonEmptyString(123); // false (not a string)
163
+ * ```
164
+ *
165
+ * @example In validation logic
166
+ * ```typescript
167
+ * function validateTokenName(tokenName: unknown): void {
168
+ * if (!isNonEmptyString(tokenName)) {
169
+ * throw new ValidationError(
170
+ * 'Token name is required and must be a non-empty string',
171
+ * 'tokenName',
172
+ * 'REQUIRED'
173
+ * );
174
+ * }
175
+ * }
176
+ * ```
177
+ *
178
+ * @since 3.6.6
179
+ */
180
+ export declare function isNonEmptyString(value: unknown): value is string;
128
181
  /**
129
182
  * Validates if a string is a valid address in either Ethereum or backend format
130
183
  *
@@ -1 +1 @@
1
- {"version":3,"file":"validation-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/validation-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;;GAKG;AACH,MAAM,WAAW,qBAA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CAAC,CAAC,EAC/B,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EACvB,YAAY,EAAE,MAAM,EACpB,SAAS,GAAE,MAAe,EAC1B,SAAS,GAAE,MAAuB,GACjC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC,CAUxC"}
@@ -9,14 +9,6 @@
9
9
  */
10
10
  import { FetchPoolOptions, GetAmountOptions, GetGraphOptions, CheckPoolOptions, TokenUrls } from '../types/launchpad.dto.js';
11
11
  import { AddressFormat } from '../types/common.js';
12
- /**
13
- * Error thrown when validation fails
14
- */
15
- export declare class ValidationError extends Error {
16
- field?: string | undefined;
17
- code?: string | undefined;
18
- constructor(message: string, field?: string | undefined, code?: string | undefined);
19
- }
20
12
  /**
21
13
  * Validates a token name according to constraints
22
14
  *
@@ -1 +1 @@
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;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,SAAS,GAAE,MAAkB,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C1B,aAAa,GAAG,SAAS,CAe3B;AAGD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAG/D;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,GACd,OAAO,IAAI,aAAa,CAQ1B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,GACrB,MAAM,CAuBR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,GACnB;IAAE,WAAW,EAAE,MAAM,CAAC;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.6.4",
3
+ "version": "3.6.6",
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",