@gala-chain/launchpad-sdk 9.0.0-rc.1 → 9.0.0-rc.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.
- package/CHANGELOG.md +16 -1
- package/EXAMPLES.md +1 -1
- package/MIGRATING-TO-9.0.md +1 -1
- package/dist/LaunchpadSDK.d.ts +2 -2
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/index.browser.esm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.esm.js +1 -1
- package/dist/schemas/primitives.d.ts +2 -2
- package/dist/services/PoolService.d.ts +4 -1
- package/dist/services/PoolService.d.ts.map +1 -1
- package/dist/types/constraints.d.ts +2 -2
- package/dist/types/launchpad.dto.d.ts +22 -0
- package/dist/types/launchpad.dto.d.ts.map +1 -1
- package/dist/types/options.dto.d.ts +1 -1
- package/dist/types/options.dto.d.ts.map +1 -1
- package/dist/utils/error-factories.d.ts +4 -4
- package/dist/utils/errors.d.ts +1 -1
- package/dist/utils/validation-helpers.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.0.0-rc.2
|
|
4
|
+
|
|
5
|
+
Since 9.0.0-rc.1 (published). Matches launchpad-backend-service-v3 MR !50 (merge and deploy it before
|
|
6
|
+
the new filters work live).
|
|
7
|
+
|
|
8
|
+
- **Token names on DTO routes are 1-25 letters and digits** (the backend raised `@TokenNameField()` from
|
|
9
|
+
20 to 25): `TOKEN_NAME_DTO_CONSTRAINT` (`MAX_LENGTH` 25, pattern `{1,25}`, description
|
|
10
|
+
`1-25 letters and digits`) and `dtoTokenNameSchema` (`.max(25, 'Token name must be at most 25
|
|
11
|
+
characters')`). A 21-25 character name is sent now; 26 is a `ValidationError`.
|
|
12
|
+
- **`fetchPools` / `fetchAllPools` take `isGraduated` and `creatorAddress`.** `isGraduated` is a boolean
|
|
13
|
+
and BOTH values are sent (`"true"` / `"false"`: unlike `hasUpcomingShows` / `hasRecordings`, the
|
|
14
|
+
backend reads this one strictly); leave it out for no filter. `creatorAddress` is `eth|<40 hex>` or
|
|
15
|
+
`client|<24 hex>` (a `0x`-prefixed or bare 40-hex address is sent as `eth|...`); an empty string, an
|
|
16
|
+
array or any other text is a `ValidationError` and is never sent.
|
|
17
|
+
|
|
3
18
|
## 9.0.0-rc.1
|
|
4
19
|
|
|
5
20
|
Since 9.0.0-rc.0 (published): the sections "App-owned session" through "The stream socket" below
|
|
@@ -384,7 +399,7 @@ built declarations of both versions (`pnpm docs:migration`).
|
|
|
384
399
|
`LAUNCHPAD_TOKEN_NAME_CONSTRAINT`, `RELAXED_TOKEN_NAME_CONSTRAINT`, `EXTENDED_TOKEN_NAME_CONSTRAINT`
|
|
385
400
|
and the helpers' silent 3-20 default (`validateTokenName(name, field, constraint)`,
|
|
386
401
|
`isValidTokenName(name, constraint)`, `validateOptionalTokenName(...)` now take the route's rule):
|
|
387
|
-
`DTO` 1-
|
|
402
|
+
`DTO` 1-25 letters and digits (1-20 until rc.2; `@TokenNameField()` request fields: `fetchPools` filter, `fetchVolumeData`,
|
|
388
403
|
`fetchTokenDistribution`, `fetchUserHolderContext`, `fetchMessages`, `createMessage`, `getTrades`,
|
|
389
404
|
flag create, moderator invites, `banToken`), `FILTER` 1-50 (the flag lists), `PATH` letters and digits
|
|
390
405
|
1-255 (a raw `:tokenName` the pool lookup resolves, no format check: `fetchToken`, `fetchTokenStats`,
|
package/EXAMPLES.md
CHANGED
|
@@ -53,7 +53,7 @@ Q: What operation am I performing?
|
|
|
53
53
|
|
|
54
54
|
| Format | Pattern | Example | Used For |
|
|
55
55
|
|--------|---------|---------|----------|
|
|
56
|
-
| **tokenName** |
|
|
56
|
+
| **tokenName** | Letters and digits, 1-25 chars | `'anime'` | Bonding curve ops, price |
|
|
57
57
|
| **token id / class key** | `collection\|category\|type\|additionalKey` | `'GALA\|Unit\|none\|none'` | Transfers, balances, locks, standard tokens |
|
|
58
58
|
|
|
59
59
|
### Common Mistakes Table
|
package/MIGRATING-TO-9.0.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Migrating from launchpad-sdk 8.1.0 to 9.0.0-rc.
|
|
1
|
+
# Migrating from launchpad-sdk 8.1.0 to 9.0.0-rc.2
|
|
2
2
|
|
|
3
3
|
Generated by `scripts/generate-migration-doc.ts` from the built declarations of the published
|
|
4
4
|
`@gala-chain/launchpad-sdk@8.1.0` tarball and of this build (do not edit by hand).
|
package/dist/LaunchpadSDK.d.ts
CHANGED
|
@@ -7891,7 +7891,7 @@ export declare class LaunchpadSDK {
|
|
|
7891
7891
|
*
|
|
7892
7892
|
* @category Token Creation
|
|
7893
7893
|
* @param data - Token launch configuration
|
|
7894
|
-
* @param data.tokenName - Unique token name (
|
|
7894
|
+
* @param data.tokenName - Unique token name (1-25 letters and digits, required)
|
|
7895
7895
|
* @param data.tokenSymbol - Token symbol (3-6 characters, required)
|
|
7896
7896
|
* @param data.tokenDescription - Token description (optional)
|
|
7897
7897
|
* @param data.tokenImage - Image URL or path (optional)
|
|
@@ -8041,7 +8041,7 @@ export declare class LaunchpadSDK {
|
|
|
8041
8041
|
* attempting to launch a token to prevent registration failures.
|
|
8042
8042
|
*
|
|
8043
8043
|
* @category Token Validation
|
|
8044
|
-
* @param tokenName - Token name to check availability for (
|
|
8044
|
+
* @param tokenName - Token name to check availability for (letters and digits, up to 25 characters)
|
|
8045
8045
|
* @returns Promise resolving to true if name is available, false if already taken
|
|
8046
8046
|
* @throws {ValidationError} If tokenName format is invalid
|
|
8047
8047
|
* @throws {NetworkError} If API request fails
|