@gala-chain/launchpad-sdk 9.0.0-rc.0 → 9.0.0-rc.1
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 +485 -10
- package/MIGRATING-TO-9.0.md +43 -1
- package/README.md +1 -1
- package/dist/LaunchpadSDK.d.ts +412 -217
- package/dist/LaunchpadSDK.d.ts.map +1 -1
- package/dist/api/LaunchpadAPI.d.ts +2 -140
- package/dist/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/auth/SessionAuthService.d.ts +32 -2
- package/dist/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/auth/session.d.ts +59 -0
- package/dist/auth/session.d.ts.map +1 -0
- package/dist/auth/types.d.ts +6 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/constants/endpoints.d.ts +19 -1
- package/dist/constants/endpoints.d.ts.map +1 -1
- package/dist/constants/enums.d.ts +19 -0
- package/dist/constants/enums.d.ts.map +1 -1
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/errors/LaunchpadSDKError.d.ts +18 -0
- package/dist/errors/LaunchpadSDKError.d.ts.map +1 -1
- package/dist/index.browser.d.ts +36 -27
- package/dist/index.browser.d.ts.map +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/launchpad/bundle-submission.d.ts +57 -2
- package/dist/launchpad/bundle-submission.d.ts.map +1 -1
- package/dist/launchpad/create-sale-validation.d.ts +19 -0
- package/dist/launchpad/create-sale-validation.d.ts.map +1 -0
- package/dist/launchpad/transport.d.ts +31 -1
- package/dist/launchpad/transport.d.ts.map +1 -1
- package/dist/launchpad/writes.d.ts +37 -11
- package/dist/launchpad/writes.d.ts.map +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.d.ts +1 -1
- package/dist/native.d.ts.map +1 -1
- package/dist/native.esm.js +1 -1
- package/dist/schemas/launchpad.d.ts +3 -2
- package/dist/schemas/launchpad.d.ts.map +1 -1
- package/dist/schemas/primitives.d.ts +12 -2
- package/dist/schemas/primitives.d.ts.map +1 -1
- package/dist/schemas/user.d.ts +3 -3
- package/dist/schemas/validators.d.ts +3 -3
- package/dist/services/ApiKeyService.d.ts +1 -1
- package/dist/services/BanService.d.ts +1 -1
- package/dist/services/ChartService.d.ts.map +1 -1
- package/dist/services/ContentReactionService.d.ts +6 -18
- package/dist/services/ContentReactionService.d.ts.map +1 -1
- package/dist/services/EventsQueryService.d.ts +47 -0
- package/dist/services/EventsQueryService.d.ts.map +1 -0
- package/dist/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/services/HealthService.d.ts +33 -0
- package/dist/services/HealthService.d.ts.map +1 -0
- package/dist/services/ImageService.d.ts +3 -3
- package/dist/services/ImageService.d.ts.map +1 -1
- package/dist/services/LaunchpadPriceService.d.ts.map +1 -1
- package/dist/services/LaunchpadService.d.ts +34 -42
- package/dist/services/LaunchpadService.d.ts.map +1 -1
- package/dist/services/MessagesService.d.ts +12 -44
- package/dist/services/MessagesService.d.ts.map +1 -1
- package/dist/services/ModeratorService.d.ts +2 -2
- package/dist/services/ModeratorService.d.ts.map +1 -1
- package/dist/services/OverseerService.d.ts +3 -3
- package/dist/services/OverseerService.d.ts.map +1 -1
- package/dist/services/PlatformStatsService.d.ts +1 -2
- package/dist/services/PlatformStatsService.d.ts.map +1 -1
- package/dist/services/PoolService.d.ts +28 -65
- package/dist/services/PoolService.d.ts.map +1 -1
- package/dist/services/RestrictedNamesService.d.ts +1 -1
- package/dist/services/RestrictedNamesService.d.ts.map +1 -1
- package/dist/services/StreamChatService.d.ts +8 -19
- package/dist/services/StreamChatService.d.ts.map +1 -1
- package/dist/services/StreamTokenServiceBase.d.ts +2 -1
- package/dist/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/services/StreamWebSocketService.d.ts +423 -451
- package/dist/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/services/StreamingService.d.ts +14 -15
- package/dist/services/StreamingService.d.ts.map +1 -1
- package/dist/services/TokenBanService.d.ts +1 -1
- package/dist/services/TradeService.d.ts +13 -9
- package/dist/services/TradeService.d.ts.map +1 -1
- package/dist/services/TradingQuotesService.d.ts.map +1 -1
- package/dist/services/UserService.d.ts +64 -20
- package/dist/services/UserService.d.ts.map +1 -1
- package/dist/services/realtime/event-catalog.d.ts +456 -0
- package/dist/services/realtime/event-catalog.d.ts.map +1 -0
- package/dist/services/shared/pagination-helpers.d.ts +22 -5
- package/dist/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/services/shared/service-validators.d.ts.map +1 -1
- package/dist/signing/signers.d.ts +57 -1
- package/dist/signing/signers.d.ts.map +1 -1
- package/dist/types/api-key.dto.d.ts +1 -1
- package/dist/types/ban.dto.d.ts +21 -16
- package/dist/types/ban.dto.d.ts.map +1 -1
- package/dist/types/chat-messages.dto.d.ts +10 -72
- package/dist/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/types/comments.dto.d.ts +8 -78
- package/dist/types/comments.dto.d.ts.map +1 -1
- package/dist/types/common.d.ts +40 -62
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/constraints.d.ts +47 -23
- package/dist/types/constraints.d.ts.map +1 -1
- package/dist/types/content-flag.dto.d.ts +5 -1
- package/dist/types/content-flag.dto.d.ts.map +1 -1
- package/dist/types/content-reactions.dto.d.ts +0 -4
- package/dist/types/content-reactions.dto.d.ts.map +1 -1
- package/dist/types/engagement-stats.dto.d.ts +16 -27
- package/dist/types/engagement-stats.dto.d.ts.map +1 -1
- package/dist/types/events.dto.d.ts +89 -0
- package/dist/types/events.dto.d.ts.map +1 -1
- package/dist/types/global-feed.dto.d.ts +23 -164
- package/dist/types/global-feed.dto.d.ts.map +1 -1
- package/dist/types/health.dto.d.ts +32 -0
- package/dist/types/health.dto.d.ts.map +1 -0
- package/dist/types/launchpad.dto.d.ts +77 -66
- package/dist/types/launchpad.dto.d.ts.map +1 -1
- package/dist/types/messages.dto.d.ts +168 -118
- package/dist/types/messages.dto.d.ts.map +1 -1
- package/dist/types/moderator.dto.d.ts +1 -1
- package/dist/types/options.dto.d.ts +0 -2
- package/dist/types/options.dto.d.ts.map +1 -1
- package/dist/types/overseer.dto.d.ts +2 -1
- package/dist/types/overseer.dto.d.ts.map +1 -1
- package/dist/types/platform-stats.dto.d.ts +3 -3
- package/dist/types/realtime-events.dto.d.ts +340 -0
- package/dist/types/realtime-events.dto.d.ts.map +1 -0
- package/dist/types/restricted-names.dto.d.ts +2 -2
- package/dist/types/restricted-names.dto.d.ts.map +1 -1
- package/dist/types/stream-chat.dto.d.ts +15 -14
- package/dist/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/types/streaming.dto.d.ts +73 -104
- package/dist/types/streaming.dto.d.ts.map +1 -1
- package/dist/types/token-ban.dto.d.ts.map +1 -1
- package/dist/types/token-config.dto.d.ts +34 -19
- package/dist/types/token-config.dto.d.ts.map +1 -1
- package/dist/types/trades-query.dto.d.ts +8 -24
- package/dist/types/trades-query.dto.d.ts.map +1 -1
- package/dist/types/user.dto.d.ts +126 -50
- package/dist/types/user.dto.d.ts.map +1 -1
- package/dist/types/websocket-events.dto.d.ts +5 -5
- package/dist/types/websocket-events.dto.d.ts.map +1 -1
- package/dist/utils/address-formatter.d.ts +15 -0
- package/dist/utils/address-formatter.d.ts.map +1 -1
- package/dist/utils/auto-pagination.d.ts +1 -1
- package/dist/utils/auto-pagination.d.ts.map +1 -1
- package/dist/utils/error-factories.d.ts +4 -3
- package/dist/utils/error-factories.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +53 -10
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/http.d.ts +24 -3
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/message-validators.d.ts.map +1 -1
- package/dist/utils/pagination-helpers.d.ts +17 -0
- package/dist/utils/pagination-helpers.d.ts.map +1 -1
- package/dist/utils/pagination-validation.d.ts +2 -2
- package/dist/utils/response-handlers.d.ts.map +1 -1
- package/dist/utils/service-validators.d.ts +6 -6
- package/dist/utils/service-validators.d.ts.map +1 -1
- package/dist/utils/validation-helpers.d.ts +18 -59
- package/dist/utils/validation-helpers.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +4 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/services/StreamingEventService.d.ts +0 -441
- package/dist/services/StreamingEventService.d.ts.map +0 -1
- package/dist/types/comment.dto.d.ts +0 -176
- package/dist/types/comment.dto.d.ts.map +0 -1
- package/dist/types/streaming-events.dto.d.ts +0 -605
- package/dist/types/streaming-events.dto.d.ts.map +0 -1
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.1
|
|
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).
|
|
@@ -14,7 +14,9 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
14
14
|
|
|
15
15
|
| Removed export | Kind | Now |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
+
| `AuthenticatedEvent` | type | removed: the wire payload is `StreamChatAuthenticatedEvent` (`RealtimeEventPayloads['authenticated']`) |
|
|
17
18
|
| `BaseBridgeStrategy` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
19
|
+
| `BaseContentItem` | type | removed: `Message`: the item `GET /v1/messages` lists (`id` and `messageId`, `user`, `reactions: { counts, userReacted? }`) |
|
|
18
20
|
| `BaseTokenCrossRate` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
19
21
|
| `BRIDGE_CONTRACT_ABI` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
20
22
|
| `BRIDGE_TOKEN_METADATA` | value | `STATIC_TOKEN_METADATA` from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -41,7 +43,12 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
41
43
|
| `BridgeTransactionRegistrationResponse` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
42
44
|
| `CHAIN_IDS` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
43
45
|
| `ChainResult` | type | removed: `sdk.tokens` (TokenWrites) is gone: `transferToken` / `burnTokens` / `lockTokens` / `unlockTokens` return receipts |
|
|
46
|
+
| `ChatMessageItem` | type | removed: `Message` for a listed chat message; `SentChatMessage` / `EditedChatMessage` for what `sendChatMessage` / `updateChatMessage` answer |
|
|
47
|
+
| `ChatStatusChangedEvent` | type | removed: the wire payload is `StreamChatStatusEvent` (`RealtimeEventPayloads['CHAT_STATUS_CHANGED']`) |
|
|
48
|
+
| `CommentData` | type | removed: the shape of the removed `/v1/comments` route: a listed comment is `Message`, a written one `WrittenComment` |
|
|
49
|
+
| `CommentItem` | type | removed: `Message` for a listed comment; `WrittenComment` for what `createComment` / `updateComment` answer |
|
|
44
50
|
| `compareAmounts` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
51
|
+
| `ConnectionEvent` | type | removed: the wire payload is `ConnectionGreetingEvent` (`RealtimeEventPayloads['connection']`) |
|
|
45
52
|
| `createProviderFromEip1193` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
46
53
|
| `createProviderFromWallet` | value | `PrivateKeyProvider` from `@gala-chain/gala-core-sdk/providers` (`PrivateKeyProvider.fromWallet(wallet)`) |
|
|
47
54
|
| `createSolanaWallet` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -57,6 +64,7 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
57
64
|
| `DEFAULT_SOLANA_BRIDGE_PROGRAM` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
58
65
|
| `DEFAULT_SOLANA_RPC_URL` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
59
66
|
| `DEFAULT_SOLANA_TOKENS` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
67
|
+
| `DeleteCommentOptions` | type | removed: the removed `/v1/comments` route: `deleteComment(messageId)` |
|
|
60
68
|
| `DestinationChainTxFee` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
61
69
|
| `DetectedWallet` | type | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
62
70
|
| `detectWallets` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
@@ -69,6 +77,7 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
69
77
|
| `EIP712Domain` | type | `EIP712DomainValue` from `@gala-chain/gala-core-sdk` |
|
|
70
78
|
| `EIP712TypeField` | type | removed: one field of gala-core-sdk's `EIP712Types` (`EIP712Types[string][number]`) |
|
|
71
79
|
| `EIP712Types` | type | same name, from `@gala-chain/gala-core-sdk` |
|
|
80
|
+
| `EngagementStatsData` | type | removed: `fetchTokenStats` returns `TokenStatsData`: `{ holdersCount, chatMessageCount, commentCount, roomCount }`, what the backend sends |
|
|
72
81
|
| `ensureConnected` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
73
82
|
| `ERC20_ABI` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
74
83
|
| `EstimateBridgeFeeParams` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -87,6 +96,8 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
87
96
|
| `FetchBalancesResponse` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
88
97
|
| `FetchBridgeableTokensOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
89
98
|
| `FetchBridgeableTokensResult` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
99
|
+
| `FetchCommentsOptions` | type | removed: the removed `/v1/comments` route: `GetCommentsOptions` |
|
|
100
|
+
| `FetchCommentsResult` | type | removed: the removed `/v1/comments` route: `CommentsResult` |
|
|
90
101
|
| `FetchPriceHistoryOptions` | type | `PriceSeriesTimeframe` from `@gala-chain/gswap-sdk` (`getPriceSeries(token, timeframe)`) |
|
|
91
102
|
| `FetchWrappableTokensOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
92
103
|
| `FetchWrappableTokensResult` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -120,12 +131,23 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
120
131
|
| `getStaticTokenMetadata` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
121
132
|
| `getWalletByRdns` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
122
133
|
| `GetWrappableTokenOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
134
|
+
| `GlobalFeedEvent` | type | removed: the global feed delivers the token-room payload types: `RealtimeEventPayloads`; `FeedTokenEvent` names each occurrence |
|
|
135
|
+
| `GlobalFeedEventType` | type | removed: the feed events are the wire names (`FeedEventName`), not lowercase discriminators |
|
|
136
|
+
| `GlobalFeedSiteConfigEvent` | type | removed: `SiteConfigChangedEvent` / `FeatureGlobalStatusEvent` |
|
|
137
|
+
| `GlobalFeedSiteConfigEventType` | type | removed: the feed events are the wire names (`FeedEventName`) |
|
|
138
|
+
| `GlobalFeedStatsUpdatedEvent` | type | removed: `StatsUpdatedEvent` |
|
|
139
|
+
| `GlobalFeedSubscriptionOptions` | type | removed: `subscribeToGlobalFeed(callbacks)` returns an unsubscribe; there are no options |
|
|
140
|
+
| `GlobalFeedTokenConfigUpdatedEvent` | type | removed: `TokenConfigUpdatedEvent` |
|
|
141
|
+
| `GlobalFeedTokenEvent` | type | removed: `FeedTokenEvent`: `{ event, data }`, named by the wire event |
|
|
142
|
+
| `GlobalFeedTokenEventType` | type | removed: the feed events are the wire names (`FeedTokenEventName`) |
|
|
123
143
|
| `GSwap` | value | same name, from `@gala-chain/gswap-sdk` |
|
|
124
144
|
| `hasAnyWallet` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
125
145
|
| `HttpRequestor` | type | same name, from `@gala-chain/gala-core-sdk` |
|
|
146
|
+
| `isChatMessageItem` | value | removed: `isMessage` |
|
|
126
147
|
| `isEip1193Provider` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
127
148
|
| `isExternalProvider` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
128
149
|
| `isPrivateKeyProvider` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
150
|
+
| `isStreamingEvent` | value | removed: `StreamingEventService` is deleted (nothing fed it) |
|
|
129
151
|
| `IsTokenBridgeableOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
130
152
|
| `IsTokenBridgeableResult` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
131
153
|
| `IsTokenWrappableResult` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -138,6 +160,9 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
138
160
|
| `loadEnvWithFallback` | value | removed: demo tooling: load `.env` with dotenv in the app |
|
|
139
161
|
| `LockInput` | type | removed: `sdk.tokens` (TokenWrites) is gone: `sdk.lockTokens({ tokens: [...] })` |
|
|
140
162
|
| `MasteryTitle` | type | same name, from `@gala-chain/gswap-sdk` |
|
|
163
|
+
| `ModeratedTokenInviteScope` | type | removed: `InviteScope` |
|
|
164
|
+
| `PostCommentOptions` | type | removed: the removed `/v1/comments` route: `CreateCommentOptions` |
|
|
165
|
+
| `PostCommentResult` | type | removed: the removed `/v1/comments` route: `CreateCommentResult` |
|
|
141
166
|
| `PriceHistoryResult` | type | `PriceSeries` from `@gala-chain/gswap-sdk` (`gSwap.market.getPriceSeries(token, timeframe)` answers the whole series) |
|
|
142
167
|
| `PriceSnapshot` | type | `PriceSeriesPoint` from `@gala-chain/gswap-sdk` |
|
|
143
168
|
| `PriceSortOrder` | type | `PriceSeriesTimeframe` from `@gala-chain/gswap-sdk` (a series comes oldest first; sort it yourself) |
|
|
@@ -145,7 +170,11 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
145
170
|
| `providerToWallet` | value | removed: `isPrivateKeyProvider(p) ? new Wallet(p.exportPrivateKey()) : undefined` (ethers stays the app's) |
|
|
146
171
|
| `PublicKeyResult` | type | same name, from `@gala-chain/gala-core-sdk` |
|
|
147
172
|
| `QuoteTokenCrossRate` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
173
|
+
| `RecordingStatusChangedEvent` | type | removed: the wire payload is `RecordingStatusEvent` |
|
|
148
174
|
| `RequestBridgeOutResponse` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
175
|
+
| `RoomLeftEvent` | type | removed: the wire payload is `RoomAckEvent` |
|
|
176
|
+
| `RoomSubscribedEvent` | type | removed: the wire payload is `RoomAckEvent` |
|
|
177
|
+
| `SimulcastStatusChangedEvent` | type | removed: the wire payload is `SimulcastStatusEvent` |
|
|
149
178
|
| `SOLANA_COMPUTE` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
150
179
|
| `SOLANA_DISCRIMINATORS` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
151
180
|
| `SolanaBridgeConfig` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -153,6 +182,13 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
153
182
|
| `SolanaTokenConfig` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
154
183
|
| `SolanaTransactionStatus` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
155
184
|
| `SolanaWalletBalanceResult` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
185
|
+
| `StreamCountdownUpdatedEvent` | type | removed: the wire payload is `StreamCountdownEvent` |
|
|
186
|
+
| `StreamingEvent` | type | removed: `StreamingEventService` is deleted (nothing fed it): `RealtimeEventPayloads` types every event the socket delivers |
|
|
187
|
+
| `StreamingEventCallback` | type | removed: `StreamingEventService` is deleted (nothing fed it): a subscriber is `RealtimeListener<'EVENT_NAME'>` |
|
|
188
|
+
| `StreamingEventRegistry` | type | removed: `StreamingEventService` is deleted (nothing fed it): `StreamWebSocketService` keeps the one registry of subscribers |
|
|
189
|
+
| `StreamingEventService` | value | removed: nothing fed it. The `LaunchpadSDK.on*` methods and `sdk.realtime.subscribe*` are subscribers of the `StreamWebSocketService` registry |
|
|
190
|
+
| `StreamLanguageUpdatedEvent` | type | removed: the wire payload is `StreamLanguageEvent` |
|
|
191
|
+
| `StreamStatusChangedEvent` | type | removed: the wire payload is `StreamStatusEvent` |
|
|
156
192
|
| `stripHexPrefix` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
157
193
|
| `subscribeToWalletChanges` | value | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
158
194
|
| `toBaseUnits` | value | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
@@ -165,11 +201,17 @@ both clients. See CHANGELOG.md for behaviour changes.
|
|
|
165
201
|
| `TokenIdentifier` | type | removed: `sdk.tokens` (TokenWrites) is gone: a token is a `TokenId` |
|
|
166
202
|
| `TokenInstanceKey` | type | `GalaChainTokenInstanceKey` from `@gala-chain/gala-core-sdk` |
|
|
167
203
|
| `TokenRoundTripResult` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
204
|
+
| `TokenSubscribedEvent` | type | removed: the wire payload is `StreamSubscribedEvent` |
|
|
205
|
+
| `TokenUnsubscribedEvent` | type | removed: the wire payload is `StreamUnsubscribedEvent` |
|
|
168
206
|
| `TokenWrites` | value | removed: `sdk.tokens` is gone: `transferToken` / `burnTokens` / `lockTokens` / `unlockTokens`; or `GatewayWrites` (gala-core-sdk) |
|
|
207
|
+
| `TRADES_QUERY_CONSTRAINTS` | value | removed: a deprecated composite: `TOKEN_NAME_DTO_CONSTRAINT` for the token name |
|
|
208
|
+
| `TradesListResult` | type | removed: `TradesQueryResult`: the `{ trades, pageInfo }` `getTrades` returns |
|
|
169
209
|
| `TransferInput` | type | removed: `sdk.tokens` (TokenWrites) is gone: `sdk.transferToken({ to, tokenId, amount })` |
|
|
170
210
|
| `TypedDataDomain` | type | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
171
211
|
| `TypedDataField` | type | same name, from `@gala-chain/gala-core-sdk/providers` |
|
|
172
212
|
| `UnwrapTokenOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
213
|
+
| `UserTypingEvent` | type | removed: the wire payload is `TypingIndicatorEvent` |
|
|
214
|
+
| `ViewerCountChangedEvent` | type | removed: the wire payload is `ViewerCountEvent` |
|
|
173
215
|
| `WaitForBridgeOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
174
216
|
| `WaitOptions` | type | same name, from `@gala-chain/gala-core-sdk/bridge` |
|
|
175
217
|
| `WalletConnectionState` | type | same name, from `@gala-chain/gala-core-sdk/providers` |
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ pnpm add @gala-chain/launchpad-sdk@next @gala-chain/gala-core-sdk@next @gala-cha
|
|
|
12
12
|
|
|
13
13
|
An install without `@next` gets 8.1.0. Pin the exact versions in an app build.
|
|
14
14
|
|
|
15
|
-
`@gala-chain/gala-core-sdk` and the others are peer dependencies: install them next to this package. An app that bridges tokens
|
|
15
|
+
`@gala-chain/gala-core-sdk` and the others are peer dependencies: install them next to this package. An app that bridges or wraps tokens installs the bridge's own peers (`ethers`, `@solana/web3.js`, `@solana/spl-token`) and hands the bridge module to the SDK: `new LaunchpadSDK({ ..., bridge: () => import('@gala-chain/gala-core-sdk/bridge') })` (loaded at the first bridge or wrap call). This package never loads that module or Solana itself, so an app that does not bridge bundles and installs neither; without the loader the bridge and wrap methods throw a `ConfigurationError` naming the `bridge` option.
|
|
16
16
|
|
|
17
17
|
For the DEX, install `@gala-chain/gswap-sdk` 2.0 (also under `next`) next to this package: `pnpm add @gala-chain/gswap-sdk@next`.
|
|
18
18
|
|