@gala-chain/launchpad-sdk 5.0.4-beta.1 → 5.0.4-beta.15
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 +82 -0
- package/README.md +165 -47
- package/README.md.bak +3174 -0
- package/dist/ai-docs.json +23 -7286
- package/dist/examples/utils/demo-registry.d.ts +155 -0
- package/dist/examples/utils/demo-registry.d.ts.map +1 -0
- package/dist/examples/utils/logger.d.ts +52 -0
- package/dist/examples/utils/logger.d.ts.map +1 -0
- package/dist/examples/utils/orchestrator-base.d.ts +313 -0
- package/dist/examples/utils/orchestrator-base.d.ts.map +1 -0
- package/dist/index.browser.esm.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +6 -111
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/scripts/derive-public-key-from-private-key.d.ts +8 -0
- package/dist/scripts/derive-public-key-from-private-key.d.ts.map +1 -0
- package/dist/scripts/generate-demo-registry.d.ts +14 -0
- package/dist/scripts/generate-demo-registry.d.ts.map +1 -0
- package/dist/scripts/inject-version.d.ts +8 -0
- package/dist/scripts/inject-version.d.ts.map +1 -0
- package/dist/scripts/validate-demo-registry.d.ts +17 -0
- package/dist/scripts/validate-demo-registry.d.ts.map +1 -0
- package/dist/src/LaunchpadSDK.d.ts +969 -219
- package/dist/src/LaunchpadSDK.d.ts.map +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +11 -10
- package/dist/src/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts +2 -2
- package/dist/src/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts +2 -2
- package/dist/src/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts +2 -2
- package/dist/src/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts +2 -2
- package/dist/src/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/src/auth/JwtAuth.d.ts +43 -5
- package/dist/src/auth/JwtAuth.d.ts.map +1 -1
- package/dist/src/auth/SessionAuthService.d.ts +10 -6
- package/dist/src/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/src/auth/SignatureAuth.d.ts +2 -2
- package/dist/src/auth/SignatureAuth.d.ts.map +1 -1
- package/dist/src/auth/storage.d.ts +66 -0
- package/dist/src/auth/storage.d.ts.map +1 -0
- package/dist/src/auth/types.d.ts +1 -1
- package/dist/src/auth/types.d.ts.map +1 -1
- package/dist/src/bridge/BridgeService.d.ts +1 -1
- package/dist/src/bridge/BridgeService.d.ts.map +1 -1
- package/dist/src/bridge/index.d.ts +1 -1
- package/dist/src/bridge/index.d.ts.map +1 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts +1 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/types/bridge.dto.d.ts +0 -5
- package/dist/src/bridge/types/bridge.dto.d.ts.map +1 -1
- package/dist/src/bridge/types/bridgeable-token.dto.d.ts +1 -1
- package/dist/src/bridge/types/bridgeable-token.dto.d.ts.map +1 -1
- package/dist/src/constants/endpoints.d.ts +378 -258
- package/dist/src/constants/endpoints.d.ts.map +1 -1
- package/dist/src/constants/nft-fees.d.ts +30 -0
- package/dist/src/constants/nft-fees.d.ts.map +1 -0
- package/dist/src/constants/pagination.d.ts +24 -14
- package/dist/src/constants/pagination.d.ts.map +1 -1
- package/dist/src/constants/version.generated.d.ts +1 -1
- package/dist/src/constants/version.generated.d.ts.map +1 -1
- package/dist/src/helpers/sdk.d.ts +3 -2
- package/dist/src/helpers/sdk.d.ts.map +1 -1
- package/dist/src/helpers/wallet.d.ts +1 -1
- package/dist/src/helpers/wallet.d.ts.map +1 -1
- package/dist/src/index.browser.d.ts +131 -0
- package/dist/src/index.browser.d.ts.map +1 -0
- package/dist/src/index.d.ts +6 -111
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.node.d.ts +13 -0
- package/dist/src/index.node.d.ts.map +1 -0
- package/dist/src/schemas/files.d.ts +22 -22
- package/dist/src/schemas/files.d.ts.map +1 -1
- package/dist/src/schemas/launchpad.d.ts +45 -170
- package/dist/src/schemas/launchpad.d.ts.map +1 -1
- package/dist/src/schemas/pagination.d.ts +36 -118
- package/dist/src/schemas/pagination.d.ts.map +1 -1
- package/dist/src/schemas/primitives.d.ts +13 -6
- package/dist/src/schemas/primitives.d.ts.map +1 -1
- package/dist/src/schemas/trade.d.ts +55 -107
- package/dist/src/schemas/trade.d.ts.map +1 -1
- package/dist/src/schemas/user.d.ts +28 -172
- package/dist/src/schemas/user.d.ts.map +1 -1
- package/dist/src/schemas/validators.d.ts +21 -21
- package/dist/src/services/AbstractTokenFetchService.d.ts +1 -1
- package/dist/src/services/AbstractTokenFetchService.d.ts.map +1 -1
- package/dist/src/services/ApiKeyService.d.ts +14 -8
- package/dist/src/services/ApiKeyService.d.ts.map +1 -1
- package/dist/src/services/BanService.d.ts +131 -14
- package/dist/src/services/BanService.d.ts.map +1 -1
- package/dist/src/services/BaseService.d.ts +1 -1
- package/dist/src/services/BaseService.d.ts.map +1 -1
- package/dist/src/services/BatchedCacheService.d.ts +2 -1
- package/dist/src/services/BatchedCacheService.d.ts.map +1 -1
- package/dist/src/services/BridgeableTokenService.d.ts +1 -1
- package/dist/src/services/BundleService.d.ts +4 -4
- package/dist/src/services/BundleService.d.ts.map +1 -1
- package/dist/src/services/ChartService.d.ts +106 -0
- package/dist/src/services/ChartService.d.ts.map +1 -0
- package/dist/src/services/ContentFlagService.d.ts +12 -6
- package/dist/src/services/ContentFlagService.d.ts.map +1 -1
- package/dist/src/services/ContentReactionService.d.ts +2 -2
- package/dist/src/services/ContentReactionService.d.ts.map +1 -1
- package/dist/src/services/DexBackendClient.d.ts +2 -2
- package/dist/src/services/DexBackendClient.d.ts.map +1 -1
- package/dist/src/services/DexPoolService.d.ts +5 -5
- package/dist/src/services/DexPoolService.d.ts.map +1 -1
- package/dist/src/services/DexQuoteService.d.ts.map +1 -1
- package/dist/src/services/DexService.d.ts +6 -6
- package/dist/src/services/DexService.d.ts.map +1 -1
- package/dist/src/services/GSwapAssetService.d.ts +17 -0
- package/dist/src/services/GSwapAssetService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityMutationService.d.ts +4 -4
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +2 -2
- package/dist/src/services/GSwapLiquidityQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts +1 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolQueryService.d.ts +2 -2
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapService.d.ts +3 -3
- package/dist/src/services/GSwapService.d.ts.map +1 -1
- package/dist/src/services/GSwapSwapService.d.ts +2 -2
- package/dist/src/services/GSwapSwapService.d.ts.map +1 -1
- package/dist/src/services/GalaChainBalanceService.d.ts +2 -2
- package/dist/src/services/GalaChainBalanceService.d.ts.map +1 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts +1 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts.map +1 -1
- package/dist/src/services/GalaChainLockService.d.ts +4 -4
- package/dist/src/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/src/services/GalaChainService.d.ts +11 -11
- package/dist/src/services/GalaChainService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTokenService.d.ts +3 -3
- package/dist/src/services/GalaChainTokenService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTransferService.d.ts +6 -6
- package/dist/src/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/src/services/HolderService.d.ts +181 -0
- package/dist/src/services/HolderService.d.ts.map +1 -0
- package/dist/src/services/ImageService.d.ts +2 -15
- package/dist/src/services/ImageService.d.ts.map +1 -1
- package/dist/src/services/LaunchpadService.d.ts +66 -23
- package/dist/src/services/LaunchpadService.d.ts.map +1 -1
- package/dist/src/services/MessagesService.d.ts +224 -0
- package/dist/src/services/MessagesService.d.ts.map +1 -0
- package/dist/src/services/ModeratorService.d.ts +32 -18
- package/dist/src/services/ModeratorService.d.ts.map +1 -1
- package/dist/src/services/MultiPoolStateManager.d.ts +1 -1
- package/dist/src/services/MultiPoolStateManager.d.ts.map +1 -1
- package/dist/src/services/NftCollectionService.d.ts +123 -0
- package/dist/src/services/NftCollectionService.d.ts.map +1 -0
- package/dist/src/services/OverseerService.d.ts +41 -26
- package/dist/src/services/OverseerService.d.ts.map +1 -1
- package/dist/src/services/PlatformConfigService.d.ts +149 -0
- package/dist/src/services/PlatformConfigService.d.ts.map +1 -0
- package/dist/src/services/PoolCacheManager.d.ts +2 -2
- package/dist/src/services/PoolCacheManager.d.ts.map +1 -1
- package/dist/src/services/PoolService.d.ts +109 -25
- package/dist/src/services/PoolService.d.ts.map +1 -1
- package/dist/src/services/PoolStateManager.d.ts +3 -3
- package/dist/src/services/PoolStateManager.d.ts.map +1 -1
- package/dist/src/services/PriceHistoryService.d.ts +14 -13
- package/dist/src/services/PriceHistoryService.d.ts.map +1 -1
- package/dist/src/services/RestrictedNamesService.d.ts +80 -0
- package/dist/src/services/RestrictedNamesService.d.ts.map +1 -0
- package/dist/src/services/StreamChatService.d.ts +38 -186
- package/dist/src/services/StreamChatService.d.ts.map +1 -1
- package/dist/src/services/StreamTokenServiceBase.d.ts +13 -11
- package/dist/src/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/src/services/StreamWebSocketService.d.ts +252 -3
- package/dist/src/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/src/services/StreamingEventService.d.ts +2 -2
- package/dist/src/services/StreamingEventService.d.ts.map +1 -1
- package/dist/src/services/StreamingService.d.ts +42 -21
- package/dist/src/services/StreamingService.d.ts.map +1 -1
- package/dist/src/services/SwapEventQueue.d.ts +2 -2
- package/dist/src/services/SwapEventQueue.d.ts.map +1 -1
- package/dist/src/services/TokenBanService.d.ts +17 -14
- package/dist/src/services/TokenBanService.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataService.d.ts.map +1 -1
- package/dist/src/services/TokenResolverService.d.ts +1 -1
- package/dist/src/services/TokenResolverService.d.ts.map +1 -1
- package/dist/src/services/TradeService.d.ts +24 -22
- package/dist/src/services/TradeService.d.ts.map +1 -1
- package/dist/src/services/UserService.d.ts +80 -17
- package/dist/src/services/UserService.d.ts.map +1 -1
- package/dist/src/services/WebSocketAdminService.d.ts +515 -0
- package/dist/src/services/WebSocketAdminService.d.ts.map +1 -0
- package/dist/src/services/WebSocketService.d.ts +1 -1
- package/dist/src/services/WebSocketService.d.ts.map +1 -1
- package/dist/src/services/WrapService.d.ts +1 -1
- package/dist/src/services/WrapService.d.ts.map +1 -1
- package/dist/src/services/WrappableTokenService.d.ts +1 -1
- package/dist/src/services/__mocks__/logger.mock.d.ts +14 -7
- package/dist/src/services/__mocks__/logger.mock.d.ts.map +1 -1
- package/dist/src/services/shared/cache-helpers.d.ts.map +1 -1
- package/dist/src/services/shared/pagination-helpers.d.ts +23 -13
- package/dist/src/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/src/setup.d.ts +2 -2
- package/dist/src/types/api-key.dto.d.ts +14 -9
- package/dist/src/types/api-key.dto.d.ts.map +1 -1
- package/dist/src/types/backend-responses.d.ts +7 -7
- package/dist/src/types/backend-responses.d.ts.map +1 -1
- package/dist/src/types/ban.dto.d.ts +178 -14
- package/dist/src/types/ban.dto.d.ts.map +1 -1
- package/dist/src/types/chat-messages.dto.d.ts +8 -8
- package/dist/src/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/src/types/comment.dto.d.ts +4 -8
- package/dist/src/types/comment.dto.d.ts.map +1 -1
- package/dist/src/types/comments.dto.d.ts +9 -21
- package/dist/src/types/comments.dto.d.ts.map +1 -1
- package/dist/src/types/common.d.ts +93 -31
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/constraints.d.ts +11 -11
- package/dist/src/types/constraints.d.ts.map +1 -1
- package/dist/src/types/content-flag.dto.d.ts +2 -14
- package/dist/src/types/content-flag.dto.d.ts.map +1 -1
- package/dist/src/types/content-reactions.dto.d.ts +1 -1
- package/dist/src/types/content-reactions.dto.d.ts.map +1 -1
- package/dist/src/types/dex-pool.dto.d.ts +19 -6
- package/dist/src/types/dex-pool.dto.d.ts.map +1 -1
- package/dist/src/types/dto.d.ts +1 -1
- package/dist/src/types/dto.d.ts.map +1 -1
- package/dist/src/types/engagement-stats.dto.d.ts +62 -0
- package/dist/src/types/engagement-stats.dto.d.ts.map +1 -0
- package/dist/src/types/galachain-api.types.d.ts +1 -1
- package/dist/src/types/galachain-api.types.d.ts.map +1 -1
- package/dist/src/types/global-feed.dto.d.ts +196 -0
- package/dist/src/types/global-feed.dto.d.ts.map +1 -0
- package/dist/src/types/gswap-responses.types.d.ts.map +1 -1
- package/dist/src/types/gswap.dto.d.ts +7 -2
- package/dist/src/types/gswap.dto.d.ts.map +1 -1
- package/dist/src/types/holder.types.d.ts +106 -0
- package/dist/src/types/holder.types.d.ts.map +1 -0
- package/dist/src/types/launchpad.dto.d.ts +113 -76
- package/dist/src/types/launchpad.dto.d.ts.map +1 -1
- package/dist/src/types/messages.dto.d.ts +353 -0
- package/dist/src/types/messages.dto.d.ts.map +1 -0
- package/dist/src/types/moderator.dto.d.ts +10 -17
- package/dist/src/types/moderator.dto.d.ts.map +1 -1
- package/dist/src/types/nft.dto.d.ts +155 -0
- package/dist/src/types/nft.dto.d.ts.map +1 -0
- package/dist/src/types/options.dto.d.ts +2 -2
- package/dist/src/types/options.dto.d.ts.map +1 -1
- package/dist/src/types/overseer.dto.d.ts +4 -11
- package/dist/src/types/overseer.dto.d.ts.map +1 -1
- package/dist/src/types/platform-config.dto.d.ts +83 -0
- package/dist/src/types/platform-config.dto.d.ts.map +1 -0
- package/dist/src/types/priceHistory.dto.d.ts +9 -4
- package/dist/src/types/priceHistory.dto.d.ts.map +1 -1
- package/dist/src/types/restricted-names.dto.d.ts +50 -0
- package/dist/src/types/restricted-names.dto.d.ts.map +1 -0
- package/dist/src/types/result.types.d.ts +1 -1
- package/dist/src/types/result.types.d.ts.map +1 -1
- package/dist/src/types/session-auth.dto.d.ts +10 -2
- package/dist/src/types/session-auth.dto.d.ts.map +1 -1
- package/dist/src/types/stream-chat.dto.d.ts +6 -11
- package/dist/src/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/src/types/streaming-events.dto.d.ts +1 -1
- package/dist/src/types/streaming-events.dto.d.ts.map +1 -1
- package/dist/src/types/streaming.dto.d.ts +61 -22
- package/dist/src/types/streaming.dto.d.ts.map +1 -1
- package/dist/src/types/token-ban.dto.d.ts +2 -2
- package/dist/src/types/token-ban.dto.d.ts.map +1 -1
- package/dist/src/types/token-config.dto.d.ts +80 -0
- package/dist/src/types/token-config.dto.d.ts.map +1 -0
- package/dist/src/types/trade.dto.d.ts +3 -11
- package/dist/src/types/trade.dto.d.ts.map +1 -1
- package/dist/src/types/trades-query.dto.d.ts +2 -2
- package/dist/src/types/trades-query.dto.d.ts.map +1 -1
- package/dist/src/types/transfer.dto.d.ts +2 -1
- package/dist/src/types/transfer.dto.d.ts.map +1 -1
- package/dist/src/types/user.dto.d.ts +210 -24
- package/dist/src/types/user.dto.d.ts.map +1 -1
- package/dist/src/types/websocket-admin.dto.d.ts +307 -0
- package/dist/src/types/websocket-admin.dto.d.ts.map +1 -0
- package/dist/src/types/websocket-events.dto.d.ts +360 -0
- package/dist/src/types/websocket-events.dto.d.ts.map +1 -0
- package/dist/src/utils/LiquidityEventExtractor.d.ts +7 -0
- package/dist/src/utils/LiquidityEventExtractor.d.ts.map +1 -1
- package/dist/src/utils/SignatureHelper.d.ts +1 -1
- package/dist/src/utils/SignatureHelper.d.ts.map +1 -1
- package/dist/src/utils/adapters.d.ts +2 -2
- package/dist/src/utils/adapters.d.ts.map +1 -1
- package/dist/src/utils/address-formatter.d.ts +7 -6
- package/dist/src/utils/address-formatter.d.ts.map +1 -1
- package/dist/src/utils/agent-config.d.ts +3 -2
- package/dist/src/utils/agent-config.d.ts.map +1 -1
- package/dist/src/utils/amount-validator.d.ts +1 -1
- package/dist/src/utils/amount-validator.d.ts.map +1 -1
- package/dist/src/utils/api-patterns.d.ts +1 -1
- package/dist/src/utils/api-patterns.d.ts.map +1 -1
- package/dist/src/utils/assetUrls.d.ts +450 -0
- package/dist/src/utils/assetUrls.d.ts.map +1 -0
- package/dist/src/utils/async-patterns.d.ts.map +1 -1
- package/dist/src/utils/auto-pagination.d.ts +90 -1
- package/dist/src/utils/auto-pagination.d.ts.map +1 -1
- package/dist/src/utils/bondingCurveCalculations.d.ts +1 -1
- package/dist/src/utils/bondingCurveCalculations.d.ts.map +1 -1
- package/dist/src/utils/composite-pool-converter.d.ts.map +1 -1
- package/dist/src/utils/crypto-compat.d.ts +40 -0
- package/dist/src/utils/crypto-compat.d.ts.map +1 -0
- package/dist/src/utils/error-factories.d.ts.map +1 -1
- package/dist/src/utils/http-factory.d.ts +1 -1
- package/dist/src/utils/http-factory.d.ts.map +1 -1
- package/dist/src/utils/http.d.ts +4 -4
- package/dist/src/utils/http.d.ts.map +1 -1
- package/dist/src/utils/multipart.d.ts +1 -1
- package/dist/src/utils/multipart.d.ts.map +1 -1
- package/dist/src/utils/nft-helpers.d.ts +62 -0
- package/dist/src/utils/nft-helpers.d.ts.map +1 -0
- package/dist/src/utils/numeric-wrappers.d.ts +4 -1
- package/dist/src/utils/numeric-wrappers.d.ts.map +1 -1
- package/dist/src/utils/pagination-helpers.d.ts +17 -86
- package/dist/src/utils/pagination-helpers.d.ts.map +1 -1
- package/dist/src/utils/pagination-validation.d.ts +88 -0
- package/dist/src/utils/pagination-validation.d.ts.map +1 -0
- package/dist/src/utils/pool-state-validator.d.ts +2 -2
- package/dist/src/utils/pool-state-validator.d.ts.map +1 -1
- package/dist/src/utils/primitives.d.ts +76 -0
- package/dist/src/utils/primitives.d.ts.map +1 -0
- package/dist/src/utils/query-params.d.ts +13 -5
- package/dist/src/utils/query-params.d.ts.map +1 -1
- package/dist/src/utils/response-handlers.d.ts.map +1 -1
- package/dist/src/utils/response-normalizers.d.ts +2 -2
- package/dist/src/utils/response-normalizers.d.ts.map +1 -1
- package/dist/src/utils/swap-delta-calculator.d.ts +3 -3
- package/dist/src/utils/swap-delta-calculator.d.ts.map +1 -1
- package/dist/src/utils/tick-crossing-handler.d.ts +1 -1
- package/dist/src/utils/tick-crossing-handler.d.ts.map +1 -1
- package/dist/src/utils/token-format-converter.d.ts.map +1 -1
- package/dist/src/utils/token-parser.d.ts.map +1 -1
- package/dist/src/utils/tokenNormalizer.d.ts +1 -1
- package/dist/src/utils/tokenNormalizer.d.ts.map +1 -1
- package/dist/src/utils/trade-transformers.d.ts +2 -2
- package/dist/src/utils/trade-transformers.d.ts.map +1 -1
- package/dist/src/utils/validation-helpers.d.ts +22 -114
- package/dist/src/utils/validation-helpers.d.ts.map +1 -1
- package/dist/src/utils/validation-patterns.d.ts +23 -0
- package/dist/src/utils/validation-patterns.d.ts.map +1 -1
- package/dist/src/utils/validation.d.ts +2 -2
- package/dist/src/utils/validation.d.ts.map +1 -1
- package/dist/src/utils/wallet.d.ts.map +1 -1
- package/dist/src/utils/websocket-validators.d.ts +1 -1
- package/dist/src/utils/websocket-validators.d.ts.map +1 -1
- package/package.json +79 -17
- package/dist/src/services/ChatMessagesService.d.ts +0 -152
- package/dist/src/services/ChatMessagesService.d.ts.map +0 -1
- package/dist/src/services/CommentService.d.ts +0 -119
- package/dist/src/services/CommentService.d.ts.map +0 -1
- package/dist/src/services/CommentsService.d.ts +0 -155
- package/dist/src/services/CommentsService.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
- **`getStreamInfo()` method REMOVED** - Consolidated into `fetchToken()`
|
|
8
|
+
- **Removed**: v6.0.0
|
|
9
|
+
- **Status**: No longer available (previously worked in v5.x)
|
|
10
|
+
- **Replacement**: `fetchToken(tokenName)` - Returns PoolData with streaming fields
|
|
11
|
+
- **Why**: Eliminated redundant API method. Streaming fields now consolidated in PoolData response. Single `fetchToken()` call provides all token data (pool metrics + streaming info) instead of separate calls.
|
|
12
|
+
- **Impact**: MUST update code before upgrading to v6.0.0
|
|
13
|
+
|
|
14
|
+
**Migration Path:**
|
|
15
|
+
```typescript
|
|
16
|
+
// ❌ REMOVED in v6.0.0 - NO LONGER WORKS
|
|
17
|
+
const info = await sdk.getStreamInfo('mytoken');
|
|
18
|
+
console.log(`Live: ${info.isLive}, Viewers: ${info.viewerCount}`);
|
|
19
|
+
|
|
20
|
+
// ✅ NEW (v6.0.0+) - Use fetchToken instead
|
|
21
|
+
const pool = await sdk.fetchToken('mytoken');
|
|
22
|
+
console.log(`Status: ${pool.muxStreamStatus}`); // 'IDLE' | 'ACTIVE' | 'DISABLED'
|
|
23
|
+
console.log(`Viewers: ${pool.currentViewerCount}`);
|
|
24
|
+
console.log(`Playback: ${pool.playbackId}`);
|
|
25
|
+
console.log(`Aspect Ratio: ${pool.aspectRatio}`);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Streaming Fields Now in PoolData**:
|
|
29
|
+
- `playbackId`: string | null (viewer playback ID)
|
|
30
|
+
- `aspectRatio`: string (e.g., "16:9", "9:16")
|
|
31
|
+
- `muxStreamStatus`: 'IDLE' | 'ACTIVE' | 'DISABLED'
|
|
32
|
+
- `nextLiveStreamAt`: string | null (ISO 8601 scheduled time)
|
|
33
|
+
- `language`: string (ISO 639-1 code, e.g., "en", "es")
|
|
34
|
+
- `streamEnabled`: boolean
|
|
35
|
+
- `currentViewerCount`: number (live viewers, v5.7.0+)
|
|
36
|
+
- `peakViewerCount`: number (peak in session, v5.7.0+)
|
|
37
|
+
- `streamStartedAt`: string | null (when stream became active, v5.7.0+)
|
|
38
|
+
- `lastStreamedAt`: string | null (last streaming timestamp, v5.7.0+)
|
|
39
|
+
- `recordingsCount`: number (total recordings, v5.8.0+)
|
|
40
|
+
- `totalSecondsStreamed`: number (cumulative duration, v5.8.0+)
|
|
41
|
+
|
|
42
|
+
### New Features
|
|
43
|
+
|
|
44
|
+
- **`fetchToken(tokenName)` method** - Unified token data retrieval with streaming
|
|
45
|
+
- Returns complete PoolData object with all token and streaming information
|
|
46
|
+
- Replaces separate getStreamInfo() call
|
|
47
|
+
- Single API request for all token data
|
|
48
|
+
- All streaming fields consolidated in response
|
|
49
|
+
- Streaming data always available (no separate call needed)
|
|
50
|
+
- Example: `const pool = await sdk.fetchToken('mytoken')`
|
|
51
|
+
|
|
52
|
+
- **`validateToken(options)` method** - Token name/symbol validation for creation
|
|
53
|
+
- Real-time form validation support
|
|
54
|
+
- Checks name and/or symbol availability
|
|
55
|
+
- Returns blocklist status and validation errors
|
|
56
|
+
- Use cases: token creation workflows, form validation, pre-launch checks
|
|
57
|
+
- Example: `const result = await sdk.validateToken({ tokenName: 'mytoken', symbol: 'MYT' })`
|
|
58
|
+
|
|
59
|
+
### Benefits
|
|
60
|
+
|
|
61
|
+
- **Reduced API calls**: One `fetchToken()` call provides all data (previously required separate pool + streaming calls)
|
|
62
|
+
- **Cleaner architecture**: No redundant getStreamInfo() method
|
|
63
|
+
- **Better DX**: All token data in single PoolData object with type safety
|
|
64
|
+
- **Form validation**: New `validateToken()` enables real-time validation for token creation
|
|
65
|
+
- **Unified response**: Streaming fields integrated into standard PoolData response structure
|
|
66
|
+
|
|
67
|
+
### Migration Checklist
|
|
68
|
+
|
|
69
|
+
- [ ] Replace all `getStreamInfo()` calls with `fetchToken()`
|
|
70
|
+
- [ ] Update streaming field access patterns (muxStreamStatus, playbackId, etc.)
|
|
71
|
+
- [ ] Test pool data access for all streaming fields
|
|
72
|
+
- [ ] Add `validateToken()` for token creation form validation if needed
|
|
73
|
+
- [ ] Run full test suite against v6.0.0
|
|
74
|
+
- [ ] Update any documentation/guides referencing old methods
|
|
75
|
+
|
|
76
|
+
### Expected Impact
|
|
77
|
+
|
|
78
|
+
- **Bundle size**: Minimal change (removed getStreamInfo method, added fetchToken + validateToken)
|
|
79
|
+
- **API calls**: Reduced (consolidated streaming into pool fetch)
|
|
80
|
+
- **Code maintenance**: Improved (unified response structure)
|
|
81
|
+
- **Developer experience**: Enhanced (single method for all token data, real-time validation)
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
3
85
|
## 4.0.0
|
|
4
86
|
|
|
5
87
|
### BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ console.log(pools.meta.page < pools.meta.totalPages); // Has more pages
|
|
|
77
77
|
- **External Wallet Balances**: Query Ethereum and Solana wallet balances (single-token or full portfolio)
|
|
78
78
|
- **Live Streaming**: Start/stop streams, manage recordings and simulcast targets for token pools (v5.1.0+)
|
|
79
79
|
- **Stream Chat**: Real-time chat messaging via REST and WebSocket with admin controls (v5.1.0+)
|
|
80
|
+
- **Global Feed**: Unified real-time event stream for token updates and site configuration changes (v7.0.0+)
|
|
80
81
|
- **Overseer System**: Global platform oversight with CCTV dashboard, invite management, and platform summary (v5.9.0+)
|
|
81
82
|
- **Moderator System**: Token-scoped moderation with magic link invites (v5.7.0+)
|
|
82
83
|
- **Content Flags**: Report and manage flagged content with two-tier review system (v5.8.0+)
|
|
@@ -560,12 +561,11 @@ const pools = await sdk.fetchDexPools({
|
|
|
560
561
|
search: 'GALA', // Filter by token symbol
|
|
561
562
|
sortBy: 'tvl', // Sort options: tvl, volume30d, volume1d
|
|
562
563
|
sortOrder: 'desc', // asc or desc
|
|
563
|
-
|
|
564
|
-
limit: 10 // Results per page (default: 10, max: 20)
|
|
564
|
+
pageSize: 20 // Results per page (default: 20, max: 50)
|
|
565
565
|
});
|
|
566
566
|
|
|
567
|
-
console.log(`Found ${pools.meta
|
|
568
|
-
console.log(`Showing ${pools.items.length} pools
|
|
567
|
+
console.log(`Found ${pools.meta?.total || 'many'} pools`);
|
|
568
|
+
console.log(`Showing ${pools.items.length} pools with cursor-based pagination`);
|
|
569
569
|
|
|
570
570
|
// Fetch ALL pools with automatic pagination
|
|
571
571
|
const allPools = await sdk.fetchAllDexPools({
|
|
@@ -623,7 +623,7 @@ console.log(`APR: ${topPool.apr1d.toFixed(2)}%`);
|
|
|
623
623
|
const galaPools = await sdk.fetchDexPools({
|
|
624
624
|
search: 'GALA',
|
|
625
625
|
sortBy: 'tvl',
|
|
626
|
-
|
|
626
|
+
pageSize: 20
|
|
627
627
|
});
|
|
628
628
|
|
|
629
629
|
galaPools.items.forEach(pool => {
|
|
@@ -655,20 +655,35 @@ bestAprPools.forEach(pool => {
|
|
|
655
655
|
|
|
656
656
|
### Pagination
|
|
657
657
|
|
|
658
|
-
The SDK
|
|
658
|
+
The SDK uses cursor-based pagination with configurable page sizes. Use `fetchAllDexPools()` for complete enumeration:
|
|
659
659
|
|
|
660
660
|
```typescript
|
|
661
|
-
//
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
console.log(`
|
|
665
|
-
console.log(`Has next: ${
|
|
661
|
+
// Cursor-based discovery (20 max per page)
|
|
662
|
+
let cursor: string | undefined;
|
|
663
|
+
const result = await sdk.fetchDexPools({ pageSize: 20, cursor });
|
|
664
|
+
console.log(`Showing: ${result.items.length} pools`);
|
|
665
|
+
console.log(`Has next: ${result.pageInfo?.hasNextPage}`);
|
|
666
|
+
if (result.pageInfo?.hasNextPage) cursor = result.pageInfo?.nextCursor;
|
|
666
667
|
|
|
667
668
|
// Automatic pagination - get all at once
|
|
668
669
|
const allAtOnce = await sdk.fetchAllDexPools();
|
|
669
670
|
console.log(`All pools: ${allAtOnce.items.length}`);
|
|
670
671
|
```
|
|
671
672
|
|
|
673
|
+
**Cursor-Based Pagination Loop:**
|
|
674
|
+
```typescript
|
|
675
|
+
// Manually iterate through paginated results using cursors
|
|
676
|
+
let cursor: string | undefined;
|
|
677
|
+
const allPools = [];
|
|
678
|
+
while (true) {
|
|
679
|
+
const result = await sdk.fetchDexPools({ pageSize: 20, cursor });
|
|
680
|
+
allPools.push(...result.items);
|
|
681
|
+
if (!result.pageInfo?.hasNextPage) break;
|
|
682
|
+
cursor = result.pageInfo?.nextCursor;
|
|
683
|
+
}
|
|
684
|
+
console.log(`Retrieved ${allPools.length} total pools`);
|
|
685
|
+
```
|
|
686
|
+
|
|
672
687
|
### Development vs Production Environments
|
|
673
688
|
|
|
674
689
|
The SDK automatically uses the correct DEX backend based on your environment configuration:
|
|
@@ -865,9 +880,9 @@ const sdk = createLaunchpadSDK({
|
|
|
865
880
|
// Clean, direct result access - All methods use options objects
|
|
866
881
|
|
|
867
882
|
// Pool Management - Direct result properties
|
|
868
|
-
const pools = await sdk.fetchPools({ type: 'recent',
|
|
869
|
-
console.log(`Found ${pools.total} pools
|
|
870
|
-
console.log(`
|
|
883
|
+
const pools = await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
884
|
+
console.log(`Found ${pools.meta?.total} pools`);
|
|
885
|
+
console.log(`Has next page: ${pools.pageInfo?.hasNextPage}`);
|
|
871
886
|
|
|
872
887
|
const badges = await sdk.fetchTokenBadges('dragnrkti');
|
|
873
888
|
console.log(`Volume badges: ${badges.volumeBadges.length}`);
|
|
@@ -944,18 +959,18 @@ const sdk = createLaunchpadSDK({
|
|
|
944
959
|
|
|
945
960
|
// MODE 1: Single Page (backward compatible)
|
|
946
961
|
// Limit <= 20: Single API call
|
|
947
|
-
const recent = await sdk.fetchPools({ type: 'recent',
|
|
962
|
+
const recent = await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
948
963
|
console.log(`Fetched ${recent.items.length} pools in one request`);
|
|
949
964
|
|
|
950
965
|
// MODE 2: Multi-Page Auto-Fetch
|
|
951
966
|
// Limit > 20: Automatic concurrent multi-page fetching
|
|
952
|
-
const large = await sdk.fetchPools({ type: 'popular',
|
|
967
|
+
const large = await sdk.fetchPools({ type: 'popular', pageSize: 100 });
|
|
953
968
|
console.log(`Fetched ${large.items.length} pools across multiple pages`);
|
|
954
|
-
// Internally
|
|
969
|
+
// Internally uses cursor-based pagination to efficiently fetch all items
|
|
955
970
|
|
|
956
971
|
// MODE 3: Infinite Fetch
|
|
957
972
|
// Limit = 0: Fetches ALL available pools
|
|
958
|
-
const all = await sdk.
|
|
973
|
+
const all = await sdk.fetchAllPools();
|
|
959
974
|
console.log(`Fetched all ${all.items.length} pools from the platform`);
|
|
960
975
|
|
|
961
976
|
// Convenience method for "fetch all" pattern
|
|
@@ -1040,7 +1055,7 @@ const dragons = await sdk.fetchAllPools({ search: 'dragon' });
|
|
|
1040
1055
|
// Fetch specific token across all results
|
|
1041
1056
|
const specific = await sdk.fetchAllPools({ tokenName: 'anime' });
|
|
1042
1057
|
|
|
1043
|
-
//
|
|
1058
|
+
// Automatic pagination handles all pages internally
|
|
1044
1059
|
const all = await sdk.fetchAllPools();
|
|
1045
1060
|
```
|
|
1046
1061
|
|
|
@@ -1107,10 +1122,10 @@ const sdk = createLaunchpadSDK({
|
|
|
1107
1122
|
// 2. Check available pools - direct access to results
|
|
1108
1123
|
const pools = await sdk.fetchPools({
|
|
1109
1124
|
type: 'recent',
|
|
1110
|
-
|
|
1125
|
+
pageSize: 20
|
|
1111
1126
|
});
|
|
1112
1127
|
|
|
1113
|
-
console.log(`Found ${pools.meta.total} pools
|
|
1128
|
+
console.log(`Found ${pools.meta.total} pools`);
|
|
1114
1129
|
pools.items.forEach(pool => {
|
|
1115
1130
|
console.log(`Pool: ${pool.tokenName} created at ${pool.createdAt}`);
|
|
1116
1131
|
});
|
|
@@ -1544,12 +1559,12 @@ const invalidKey3 = '0x123'; // Too short
|
|
|
1544
1559
|
```typescript
|
|
1545
1560
|
// Pool Management
|
|
1546
1561
|
fetchPools(options?): Promise<PoolsResult>
|
|
1547
|
-
// Returns: {
|
|
1548
|
-
// Supports
|
|
1562
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1563
|
+
// Supports cursor-based pagination with configurable pageSize
|
|
1549
1564
|
|
|
1550
1565
|
fetchAllPools(options?): Promise<PoolsResult>
|
|
1551
|
-
// Returns: {
|
|
1552
|
-
// Convenience method that fetches ALL pools
|
|
1566
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage } }
|
|
1567
|
+
// Convenience method that fetches ALL pools using cursor-based pagination
|
|
1553
1568
|
|
|
1554
1569
|
fetchTokenDistribution(tokenName): Promise<TokenDistributionResult>
|
|
1555
1570
|
// Returns: { holders, totalSupply, totalHolders, lastUpdated }
|
|
@@ -1569,7 +1584,7 @@ fetchVolumeData(options): Promise<GraphDataResult>
|
|
|
1569
1584
|
|
|
1570
1585
|
// Trade & User Data
|
|
1571
1586
|
fetchTrades(options): Promise<TradesResult>
|
|
1572
|
-
// Returns: {
|
|
1587
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1573
1588
|
|
|
1574
1589
|
fetchGalaBalance(address?): Promise<GalaBalanceInfo>
|
|
1575
1590
|
// Returns: { userAddress, balance, decimals, lastUpdated }
|
|
@@ -1578,7 +1593,7 @@ fetchTokenBalance(options): Promise<TokenBalanceInfo>
|
|
|
1578
1593
|
// Returns: { quantity, holdingPriceUsd, holdingPriceGala, isFinalized, ... }
|
|
1579
1594
|
|
|
1580
1595
|
fetchComments(options): Promise<CommentsResult>
|
|
1581
|
-
// Returns: {
|
|
1596
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1582
1597
|
|
|
1583
1598
|
fetchProfile(address?): Promise<UserProfile>
|
|
1584
1599
|
// Returns: { fullName, profileImage, address, ... }
|
|
@@ -1630,7 +1645,7 @@ fetchPriceHistory(options): Promise<PriceHistoryResult>
|
|
|
1630
1645
|
// Token identification (provide EXACTLY ONE):
|
|
1631
1646
|
// - tokenName: Simple token name (e.g., "demonkpop") - auto-resolves to tokenId
|
|
1632
1647
|
// - tokenId: Full token class key (e.g., "Token|Unit|DKP|eth:...")
|
|
1633
|
-
// Returns: {
|
|
1648
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1634
1649
|
// Fetches paginated historical price snapshots from DEX Backend API
|
|
1635
1650
|
|
|
1636
1651
|
fetchAllPriceHistory(options): Promise<PriceHistoryResult>
|
|
@@ -1897,7 +1912,7 @@ let cacheInfo = sdk.getCacheInfo();
|
|
|
1897
1912
|
console.log('Cached tokens:', cacheInfo.totalTokens); // 0
|
|
1898
1913
|
|
|
1899
1914
|
// Fetch pools - automatically warms cache with RBC fees and vault addresses
|
|
1900
|
-
await sdk.fetchPools({ type: 'recent',
|
|
1915
|
+
await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
1901
1916
|
|
|
1902
1917
|
// After fetching - cache is warmed with 20 tokens
|
|
1903
1918
|
cacheInfo = sdk.getCacheInfo();
|
|
@@ -1945,9 +1960,9 @@ console.log('Instant result:', calc.amount); // <1ms, used cached RBC fees
|
|
|
1945
1960
|
|
|
1946
1961
|
```typescript
|
|
1947
1962
|
// Cache automatically manages size
|
|
1948
|
-
await sdk.fetchPools({
|
|
1949
|
-
await sdk.fetchPools({
|
|
1950
|
-
await sdk.fetchPools({
|
|
1963
|
+
await sdk.fetchPools({ pageSize: 100 }); // Fetches 100 tokens
|
|
1964
|
+
await sdk.fetchPools({ pageSize: 100 }); // Fetches 100 more tokens
|
|
1965
|
+
await sdk.fetchPools({ pageSize: 100 }); // ... continues
|
|
1951
1966
|
|
|
1952
1967
|
// When 10,000 limit reached, oldest tokens are evicted automatically
|
|
1953
1968
|
const stats = sdk.getCacheInfo();
|
|
@@ -2013,7 +2028,7 @@ const sdk = createLaunchpadSDK({
|
|
|
2013
2028
|
|
|
2014
2029
|
// 1. Warm cache by fetching pools
|
|
2015
2030
|
console.log('Warming cache...');
|
|
2016
|
-
await sdk.fetchPools({ type: 'popular',
|
|
2031
|
+
await sdk.fetchPools({ type: 'popular', pageSize: 50 });
|
|
2017
2032
|
|
|
2018
2033
|
// 2. Check cache statistics
|
|
2019
2034
|
const stats = sdk.getCacheInfo();
|
|
@@ -2082,8 +2097,7 @@ const sdk = createLaunchpadSDK({
|
|
|
2082
2097
|
// ✅ NEW: Use simple token name (auto-resolves to full token ID)
|
|
2083
2098
|
const recentHistory = await sdk.fetchPriceHistory({
|
|
2084
2099
|
tokenName: 'demonkpop', // Simple, intuitive token name
|
|
2085
|
-
|
|
2086
|
-
limit: 20
|
|
2100
|
+
pageSize: 20
|
|
2087
2101
|
});
|
|
2088
2102
|
|
|
2089
2103
|
console.log(`Latest price: $${recentHistory.snapshots[0].price}`);
|
|
@@ -2092,8 +2106,7 @@ console.log(`Total snapshots: ${recentHistory.total}`);
|
|
|
2092
2106
|
// ✅ STILL WORKS: Direct token ID (for advanced use cases)
|
|
2093
2107
|
const historyWithId = await sdk.fetchPriceHistory({
|
|
2094
2108
|
tokenId: 'Token|Unit|DKP|eth:4A65D29213de2939373ff9eB63AC38730F192C84',
|
|
2095
|
-
|
|
2096
|
-
limit: 20
|
|
2109
|
+
pageSize: 20
|
|
2097
2110
|
});
|
|
2098
2111
|
```
|
|
2099
2112
|
|
|
@@ -2106,7 +2119,7 @@ const monthlyHistory = await sdk.fetchPriceHistory({
|
|
|
2106
2119
|
from: new Date('2025-01-01'),
|
|
2107
2120
|
to: new Date('2025-02-01'),
|
|
2108
2121
|
sortOrder: 'ASC', // Chronological order for analysis
|
|
2109
|
-
|
|
2122
|
+
pageSize: 50
|
|
2110
2123
|
});
|
|
2111
2124
|
|
|
2112
2125
|
const prices = monthlyHistory.snapshots.map(s => parseFloat(s.price));
|
|
@@ -2129,7 +2142,7 @@ const recentData = await sdk.fetchPriceHistory({
|
|
|
2129
2142
|
tokenName: 'demonkpop',
|
|
2130
2143
|
from: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), // Last 7 days
|
|
2131
2144
|
sortOrder: 'DESC',
|
|
2132
|
-
|
|
2145
|
+
pageSize: 20
|
|
2133
2146
|
});
|
|
2134
2147
|
|
|
2135
2148
|
const ma7 = recentData.snapshots
|
|
@@ -2171,15 +2184,13 @@ try {
|
|
|
2171
2184
|
// ❌ BEFORE (v3.19 and earlier) - Had to provide full token class key
|
|
2172
2185
|
const history = await sdk.fetchPriceHistory({
|
|
2173
2186
|
tokenId: 'Token|Unit|DKP|eth:4A65D29213de2939373ff9eB63AC38730F192C84',
|
|
2174
|
-
|
|
2175
|
-
limit: 10
|
|
2187
|
+
pageSize: 10
|
|
2176
2188
|
});
|
|
2177
2189
|
|
|
2178
2190
|
// ✅ AFTER (v3.20+) - Simple token name, auto-resolves internally
|
|
2179
2191
|
const history = await sdk.fetchPriceHistory({
|
|
2180
2192
|
tokenName: 'demonkpop',
|
|
2181
|
-
|
|
2182
|
-
limit: 10
|
|
2193
|
+
pageSize: 10
|
|
2183
2194
|
});
|
|
2184
2195
|
```
|
|
2185
2196
|
|
|
@@ -2456,6 +2467,22 @@ uploadProfileImage(options): Promise<ImageUploadResult>
|
|
|
2456
2467
|
// Returns: { imageUrl, success, ... }
|
|
2457
2468
|
```
|
|
2458
2469
|
|
|
2470
|
+
### **Token Data & Validation (v6.0.0+)**
|
|
2471
|
+
|
|
2472
|
+
```typescript
|
|
2473
|
+
// Fetch complete token data with streaming information consolidated
|
|
2474
|
+
fetchToken(tokenName: string): Promise<PoolData>
|
|
2475
|
+
// Returns: Complete pool data including streaming fields (playbackId, muxStreamStatus, currentViewerCount, etc.)
|
|
2476
|
+
// Example: const pool = await sdk.fetchToken('mytoken');
|
|
2477
|
+
|
|
2478
|
+
// Validate token name/symbol for creation or form validation
|
|
2479
|
+
validateToken(options: { tokenName?: string, symbol?: string }): Promise<ValidateTokenResponse>
|
|
2480
|
+
// Returns: { nameAvailable, symbolAvailable, nameBlocklisted, symbolBlocklisted, errors }
|
|
2481
|
+
// Example: const result = await sdk.validateToken({ tokenName: 'mytoken', symbol: 'MYT' });
|
|
2482
|
+
```
|
|
2483
|
+
|
|
2484
|
+
**Migration Note (v6.0.0)**: `getStreamInfo()` was removed. Use `fetchToken()` instead - streaming fields now consolidated in PoolData response.
|
|
2485
|
+
|
|
2459
2486
|
### **Validation & Utilities**
|
|
2460
2487
|
- `isTokenNameAvailable(tokenName: string): Promise<boolean>`
|
|
2461
2488
|
- `isTokenSymbolAvailable(symbol: string): Promise<boolean>`
|
|
@@ -2700,6 +2727,18 @@ npm run lint
|
|
|
2700
2727
|
- [Liquidity Response Structures](./docs/LIQUIDITY_RESPONSES.md) - Detailed reference for all liquidity operation response formats and error handling
|
|
2701
2728
|
- [GSwap SDK Integration](./docs/GSWAP_INTEGRATION.md) - Deep dive into GSwap patterns, token formats, and advanced trading workflows
|
|
2702
2729
|
|
|
2730
|
+
### NFT Collection Management
|
|
2731
|
+
|
|
2732
|
+
- [NFT Quick Reference](./docs/NFT_QUICK_REFERENCE.md) - Quick lookup for NFT collection, token class, and minting operations with fee schedules
|
|
2733
|
+
- [NFT Operations Guide](./docs/NFT_OPERATIONS.md) - Complete guide for claiming collections, creating token classes, minting NFTs, and querying NFT data
|
|
2734
|
+
|
|
2735
|
+
### WebSocket & Real-Time Events
|
|
2736
|
+
|
|
2737
|
+
- [WebSocket Documentation Hub](./docs/websocket/) - Complete guide to WebSocket connections and real-time events
|
|
2738
|
+
- [Global Feed Quick Start](./docs/websocket/QUICKSTART.md) - Get real-time updates in 5 minutes
|
|
2739
|
+
- [Global Feed Guide](./docs/websocket/GLOBAL-FEED.md) - Comprehensive guide to unified event streaming
|
|
2740
|
+
- [WebSocket Authentication](./docs/websocket/AUTHENTICATION.md) - JWT authentication and security best practices
|
|
2741
|
+
|
|
2703
2742
|
### Demo Scripts
|
|
2704
2743
|
|
|
2705
2744
|
The SDK includes 36 comprehensive demo scripts organized into logical categories for easy discovery and learning.
|
|
@@ -2926,7 +2965,7 @@ LaunchpadService uses a **facade pattern** internally, delegating to specialized
|
|
|
2926
2965
|
LaunchpadService (facade)
|
|
2927
2966
|
├── PoolService - Pool queries, distribution, badges, volume data
|
|
2928
2967
|
│ ├── fetchPools() - Supports auto-pagination (v3.11.0+)
|
|
2929
|
-
│ ├── fetchAllPools() - Convenience method for
|
|
2968
|
+
│ ├── fetchAllPools() - Convenience method for fetching all pools
|
|
2930
2969
|
│ └── ...other pool operations
|
|
2931
2970
|
├── TradeService - Trade history and queries
|
|
2932
2971
|
├── CommentService - Comments with vault resolution
|
|
@@ -3008,7 +3047,7 @@ For comprehensive AI agent integration, see:
|
|
|
3008
3047
|
✅ **Direct Property Access**: No more `result.data.success` chains
|
|
3009
3048
|
✅ **Type Safety**: Full TypeScript IntelliSense for all result properties
|
|
3010
3049
|
✅ **Semantic Types**: Dates as Date objects, numbers as numbers
|
|
3011
|
-
✅ **
|
|
3050
|
+
✅ **Cursor Pagination**: `pageInfo.hasNextPage`, `pageInfo.nextCursor` for cursor-based navigation
|
|
3012
3051
|
✅ **Zero Wrapper Overhead**: Clean, direct access to all result data
|
|
3013
3052
|
✅ **Options Object Pattern**: All multi-parameter methods use options objects
|
|
3014
3053
|
|
|
@@ -3018,9 +3057,9 @@ For comprehensive AI agent integration, see:
|
|
|
3018
3057
|
// Pool results with pagination
|
|
3019
3058
|
interface PoolsResult {
|
|
3020
3059
|
pools: PoolData[]; // Direct pool array
|
|
3021
|
-
|
|
3060
|
+
cursor?: string; // Cursor for pagination
|
|
3022
3061
|
total: number; // Total items
|
|
3023
|
-
|
|
3062
|
+
pageSize: number; // Items returned per page
|
|
3024
3063
|
// ... more properties
|
|
3025
3064
|
}
|
|
3026
3065
|
|
|
@@ -3042,6 +3081,85 @@ interface AmountCalculationResult {
|
|
|
3042
3081
|
}
|
|
3043
3082
|
```
|
|
3044
3083
|
|
|
3084
|
+
|
|
3085
|
+
## What's New in v7.0.0+
|
|
3086
|
+
|
|
3087
|
+
### Unified Messages API
|
|
3088
|
+
|
|
3089
|
+
All message types (CHAT and COMMENT) are now accessible through a single unified endpoint:
|
|
3090
|
+
|
|
3091
|
+
```typescript
|
|
3092
|
+
// List all message types for a token
|
|
3093
|
+
const result = await sdk.listMessages({ tokenName: 'anime' });
|
|
3094
|
+
|
|
3095
|
+
// Filter by type
|
|
3096
|
+
const chatOnly = await sdk.listMessages({
|
|
3097
|
+
tokenName: 'anime',
|
|
3098
|
+
contentType: 'CHAT'
|
|
3099
|
+
});
|
|
3100
|
+
|
|
3101
|
+
// Create, update, delete messages
|
|
3102
|
+
await sdk.createMessage({
|
|
3103
|
+
tokenName: 'anime',
|
|
3104
|
+
contentType: 'CHAT',
|
|
3105
|
+
content: 'Great project!'
|
|
3106
|
+
});
|
|
3107
|
+
|
|
3108
|
+
// Pin important messages
|
|
3109
|
+
await sdk.pinMessage(messageId);
|
|
3110
|
+
```
|
|
3111
|
+
|
|
3112
|
+
### User Data Access
|
|
3113
|
+
|
|
3114
|
+
New methods for accessing user information:
|
|
3115
|
+
|
|
3116
|
+
```typescript
|
|
3117
|
+
// Fetch user token balances
|
|
3118
|
+
const balances = await sdk.fetchUserBalances({
|
|
3119
|
+
address: '0x...',
|
|
3120
|
+
pageSize: 50
|
|
3121
|
+
});
|
|
3122
|
+
|
|
3123
|
+
// Get comprehensive user report (Overseer only)
|
|
3124
|
+
const report = await sdk.fetchUserReport({
|
|
3125
|
+
address: '0x...'
|
|
3126
|
+
});
|
|
3127
|
+
```
|
|
3128
|
+
|
|
3129
|
+
### Token Statistics
|
|
3130
|
+
|
|
3131
|
+
Get engagement metrics for tokens:
|
|
3132
|
+
|
|
3133
|
+
```typescript
|
|
3134
|
+
const stats = await sdk.fetchTokenStats('anime');
|
|
3135
|
+
console.log(`Messages: ${stats.messageCount}`);
|
|
3136
|
+
console.log(`Peak viewers: ${stats.peakViewerCount}`);
|
|
3137
|
+
```
|
|
3138
|
+
|
|
3139
|
+
### Simplified Restricted Names Management
|
|
3140
|
+
|
|
3141
|
+
Manage platform restricted words with a simplified API:
|
|
3142
|
+
|
|
3143
|
+
```typescript
|
|
3144
|
+
// Get current list
|
|
3145
|
+
const result = await sdk.getRestrictedNames();
|
|
3146
|
+
const names = result.data.content.split('\n');
|
|
3147
|
+
|
|
3148
|
+
// Update list
|
|
3149
|
+
await sdk.updateRestrictedNames('badword1\nbadword2\nbadword3');
|
|
3150
|
+
```
|
|
3151
|
+
|
|
3152
|
+
## Documentation
|
|
3153
|
+
|
|
3154
|
+
Comprehensive documentation for all SDK features:
|
|
3155
|
+
|
|
3156
|
+
- **[SDK API Updates](../docs/SDK_API_UPDATES.md)** - Complete guide to new v7.0.0+ methods
|
|
3157
|
+
- **[Usage Guide](../docs/USAGE_GUIDE.md)** - Step-by-step examples for all features
|
|
3158
|
+
- **[API Reference](../docs/API-REFERENCE.md)** - Complete method reference with signatures
|
|
3159
|
+
- **[DTO Reference](../docs/DTO_REFERENCE.md)** - All data type definitions
|
|
3160
|
+
- **[Migration Guide](../docs/MIGRATION_GUIDE_SDK.md)** - Upgrading from v6.x to v7.0+
|
|
3161
|
+
- **[Examples](./EXAMPLES.md)** - Practical code examples by category
|
|
3162
|
+
|
|
3045
3163
|
## Environment URLs
|
|
3046
3164
|
|
|
3047
3165
|
- **Development**: `https://lpad-backend-dev1.defi.gala.com`
|