@gala-chain/launchpad-sdk 5.0.4-beta.56 → 5.0.4-beta.60
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/dist/LaunchpadSDK.d.ts +422 -137
- package/dist/LaunchpadSDK.d.ts.map +1 -1
- package/dist/ai-docs.json +278 -67
- package/dist/api/LaunchpadAPI.d.ts +13 -6
- package/dist/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/api/dto/BondingCurveDTOs.d.ts.map +1 -1
- package/dist/api/dto/BurnTokensDto.d.ts +1 -1
- package/dist/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/api/dto/LockTokenDto.d.ts +1 -1
- package/dist/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/api/dto/TransferTokenDto.d.ts +1 -1
- package/dist/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/api/dto/UnlockTokenDto.d.ts +1 -1
- package/dist/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/auth/JwtAuth.d.ts.map +1 -1
- package/dist/auth/SessionAuthService.d.ts +6 -5
- package/dist/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/auth/SignatureAuth.d.ts +1 -1
- package/dist/auth/SignatureAuth.d.ts.map +1 -1
- package/dist/auth/storage.d.ts.map +1 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/bridge/BridgeService.d.ts +1 -1
- package/dist/bridge/BridgeService.d.ts.map +1 -1
- package/dist/bridge/GalaConnectClient.d.ts +1 -1
- package/dist/bridge/GalaConnectClient.d.ts.map +1 -1
- package/dist/bridge/constants/tokens.d.ts +1 -1
- package/dist/bridge/constants/tokens.d.ts.map +1 -1
- package/dist/bridge/index.d.ts +10 -10
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/strategies/BridgeStrategy.d.ts.map +1 -1
- package/dist/bridge/strategies/EthereumBridgeStrategy.d.ts +1 -1
- package/dist/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -1
- package/dist/bridge/strategies/SolanaBridgeStrategy.d.ts +1 -1
- package/dist/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -1
- package/dist/bridge/utils/addressValidation.d.ts.map +1 -1
- package/dist/bridge/utils/balanceHelpers.d.ts +1 -1
- package/dist/bridge/utils/balanceHelpers.d.ts.map +1 -1
- package/dist/bridge/utils/bridgeErrors.d.ts.map +1 -1
- package/dist/bridge/utils/bridgeOutHelpers.d.ts +1 -1
- package/dist/bridge/utils/bridgeOutHelpers.d.ts.map +1 -1
- package/dist/bridge/utils/bridgePayload.d.ts +2 -11
- package/dist/bridge/utils/bridgePayload.d.ts.map +1 -1
- package/dist/bridge/utils/bridgeStatusParser.d.ts.map +1 -1
- package/dist/bridge/utils/eip712Helpers.d.ts.map +1 -1
- package/dist/bridge/utils/index.d.ts +9 -9
- package/dist/bridge/utils/index.d.ts.map +1 -1
- package/dist/bridge/utils/tokenIdUtils.d.ts +1 -1
- package/dist/bridge/utils/tokenIdUtils.d.ts.map +1 -1
- package/dist/bridge/utils/tokenMetadataResolver.d.ts +1 -1
- package/dist/bridge/utils/tokenMetadataResolver.d.ts.map +1 -1
- package/dist/constants/endpoints.d.ts +33 -2
- package/dist/constants/endpoints.d.ts.map +1 -1
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/examples/analytics/index.d.ts +1 -1
- package/dist/examples/analytics/index.d.ts.map +1 -1
- package/dist/examples/api-keys/crud.d.ts.map +1 -1
- package/dist/examples/auth/auth-permissions-checking.d.ts.map +1 -1
- package/dist/examples/auth/auth-token-management.d.ts.map +1 -1
- package/dist/examples/auth/auth-validation-workflows.d.ts.map +1 -1
- package/dist/examples/bonding-curve/graduation-workflow.d.ts.map +1 -1
- package/dist/examples/bonding-curve/pool-analysis.d.ts.map +1 -1
- package/dist/examples/bonding-curve/token-launch.d.ts.map +1 -1
- package/dist/examples/bridge/bridge-multi-chain-routing.d.ts.map +1 -1
- package/dist/examples/bridge/bridge-operations.d.ts.map +1 -1
- package/dist/examples/bridge/bridge-status-monitoring.d.ts.map +1 -1
- package/dist/examples/bridge/external-balances.d.ts.map +1 -1
- package/dist/examples/bridge/solana-roundtrip.d.ts.map +1 -1
- package/dist/examples/bridge/status-tracking.d.ts.map +1 -1
- package/dist/examples/bridge/transaction-status.d.ts.map +1 -1
- package/dist/examples/bridge/wallet-balances.d.ts.map +1 -1
- package/dist/examples/chat/chat-lifecycle.d.ts.map +1 -1
- package/dist/examples/chat/chat-message-management.d.ts.map +1 -1
- package/dist/examples/content-reactions/comprehensive-reactions-workflow.d.ts.map +1 -1
- package/dist/examples/core/complete-sdk-demo.d.ts.map +1 -1
- package/dist/examples/core/wallet-management.d.ts.map +1 -1
- package/dist/examples/debug/check-recorded-bridge-tx.d.ts.map +1 -1
- package/dist/examples/debug-single-trade.d.ts.map +1 -1
- package/dist/examples/dex/dex-impermanent-loss-analysis.d.ts.map +1 -1
- package/dist/examples/dex/dex-multi-hop-swaps.d.ts.map +1 -1
- package/dist/examples/dex/dex-slippage-protection.d.ts.map +1 -1
- package/dist/examples/error-handling/timeout-management.d.ts.map +1 -1
- package/dist/examples/fees/complete-fee-test.d.ts.map +1 -1
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts.map +1 -1
- package/dist/examples/liquidity/positions-cli.d.ts.map +1 -1
- package/dist/examples/liquidity/ticks.d.ts.map +1 -1
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts.map +1 -1
- package/dist/examples/overseers/direct-promotion.d.ts.map +1 -1
- package/dist/examples/persistence/data-backup-recovery.d.ts +2 -2
- package/dist/examples/persistence/data-backup-recovery.d.ts.map +1 -1
- package/dist/examples/persistence/local-storage-patterns.d.ts +2 -2
- package/dist/examples/persistence/local-storage-patterns.d.ts.map +1 -1
- package/dist/examples/security/security-audit-trail.d.ts.map +1 -1
- package/dist/examples/streaming/stream-access-control.d.ts.map +1 -1
- package/dist/examples/streaming/stream-recording-management.d.ts.map +1 -1
- package/dist/examples/streaming/stream-simulcast-multi-platform.d.ts.map +1 -1
- package/dist/examples/streaming/streaming-lifecycle.d.ts.map +1 -1
- package/dist/examples/streaming-premium/stream-revenue-analytics.d.ts.map +1 -1
- package/dist/examples/streaming-premium/stream-vip-management.d.ts.map +1 -1
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts.map +1 -1
- package/dist/examples/testing/demo-test-runner.d.ts +1 -1
- package/dist/examples/testing/demo-test-runner.d.ts.map +1 -1
- package/dist/examples/testing/memory-manager.d.ts.map +1 -1
- package/dist/examples/trading-advanced/limit-orders-advanced.d.ts.map +1 -1
- package/dist/examples/trading-advanced/stop-loss-orders.d.ts.map +1 -1
- package/dist/examples/trading-advanced/trading-history-analysis.d.ts.map +1 -1
- package/dist/examples/users/balance-queries.d.ts.map +1 -1
- package/dist/examples/users/fetch-user-balances.d.ts.map +1 -1
- package/dist/examples/users/fetch-user-report.d.ts.map +1 -1
- package/dist/examples/users/profile-images.d.ts.map +1 -1
- package/dist/examples/utilities/account.d.ts +1 -2
- package/dist/examples/utilities/account.d.ts.map +1 -1
- package/dist/examples/utilities/demo-cache.d.ts.map +1 -1
- package/dist/examples/utilities/token-classification.d.ts.map +1 -1
- package/dist/examples/utilities/token-validation-complete.d.ts.map +1 -1
- package/dist/examples/utilities/validation-and-error-handling.d.ts.map +1 -1
- package/dist/examples/utils/bridge-formatters.d.ts +1 -1
- package/dist/examples/utils/bridge-formatters.d.ts.map +1 -1
- package/dist/examples/utils/bridge-setup.d.ts +1 -1
- package/dist/examples/utils/bridge-setup.d.ts.map +1 -1
- package/dist/examples/utils/demo-config.d.ts.map +1 -1
- package/dist/examples/utils/index.d.ts +13 -13
- package/dist/examples/utils/index.d.ts.map +1 -1
- package/dist/examples/utils/punchlist.d.ts.map +1 -1
- package/dist/examples/utils/sdk-setup.d.ts.map +1 -1
- package/dist/examples/wallet-tracking/wallet-portfolio-alerts.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-chat-events.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-interactions.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-moderation-events.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-recording-events.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-room-events.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-stream-events.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-subscription-management.d.ts.map +1 -1
- package/dist/examples/websocket/websocket-token-events.d.ts.map +1 -1
- package/dist/helpers/sdk.d.ts.map +1 -1
- package/dist/helpers/wallet.d.ts.map +1 -1
- package/dist/index.browser.d.ts +96 -95
- 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/index.node.d.ts +1 -1
- package/dist/index.node.d.ts.map +1 -1
- package/dist/react/WalletContext.d.ts +2 -2
- package/dist/react/WalletContext.d.ts.map +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/types.d.ts +1 -1
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/useWallet.d.ts +2 -1
- package/dist/react/useWallet.d.ts.map +1 -1
- package/dist/react/useWalletConnection.d.ts +1 -1
- package/dist/react/useWalletConnection.d.ts.map +1 -1
- package/dist/react/useWalletDetection.d.ts.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.esm.js +1 -1
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/launchpad.d.ts.map +1 -1
- package/dist/schemas/pagination.d.ts +1 -4
- package/dist/schemas/pagination.d.ts.map +1 -1
- package/dist/schemas/primitives.d.ts.map +1 -1
- package/dist/schemas/trade.d.ts.map +1 -1
- package/dist/schemas/user.d.ts.map +1 -1
- package/dist/schemas/validators.d.ts.map +1 -1
- package/dist/services/AIModerationService.d.ts +2 -2
- package/dist/services/AIModerationService.d.ts.map +1 -1
- package/dist/services/AbstractTokenFetchService.d.ts +1 -1
- package/dist/services/AbstractTokenFetchService.d.ts.map +1 -1
- package/dist/services/ApiKeyService.d.ts +2 -2
- package/dist/services/ApiKeyService.d.ts.map +1 -1
- package/dist/services/BanService.d.ts +2 -2
- package/dist/services/BanService.d.ts.map +1 -1
- package/dist/services/BaseService.d.ts +1 -1
- package/dist/services/BaseService.d.ts.map +1 -1
- package/dist/services/BatchedCacheService.d.ts.map +1 -1
- package/dist/services/BridgeableTokenCache.d.ts +1 -1
- package/dist/services/BridgeableTokenCache.d.ts.map +1 -1
- package/dist/services/BridgeableTokenService.d.ts +3 -3
- package/dist/services/BridgeableTokenService.d.ts.map +1 -1
- package/dist/services/BundleService.d.ts +5 -5
- package/dist/services/BundleService.d.ts.map +1 -1
- package/dist/services/BundlerClientFactory.d.ts.map +1 -1
- package/dist/services/ChartService.d.ts.map +1 -1
- package/dist/services/ContentFlagService.d.ts +2 -2
- package/dist/services/ContentFlagService.d.ts.map +1 -1
- package/dist/services/ContentReactionService.d.ts +2 -2
- package/dist/services/ContentReactionService.d.ts.map +1 -1
- package/dist/services/DexBackendClient.d.ts +1 -1
- package/dist/services/DexBackendClient.d.ts.map +1 -1
- package/dist/services/DexPoolService.d.ts +2 -2
- package/dist/services/DexPoolService.d.ts.map +1 -1
- package/dist/services/DexQuoteService.d.ts +3 -4
- package/dist/services/DexQuoteService.d.ts.map +1 -1
- package/dist/services/DexService.d.ts +5 -5
- package/dist/services/DexService.d.ts.map +1 -1
- package/dist/services/EventsBatcherService.d.ts +1 -1
- package/dist/services/EventsBatcherService.d.ts.map +1 -1
- package/dist/services/GSwapAssetService.d.ts +1 -2
- package/dist/services/GSwapAssetService.d.ts.map +1 -1
- package/dist/services/GSwapLiquidityMutationService.d.ts +4 -6
- package/dist/services/GSwapLiquidityMutationService.d.ts.map +1 -1
- package/dist/services/GSwapLiquidityQueryService.d.ts +2 -14
- package/dist/services/GSwapLiquidityQueryService.d.ts.map +1 -1
- package/dist/services/GSwapPoolCalculationService.d.ts +0 -13
- package/dist/services/GSwapPoolCalculationService.d.ts.map +1 -1
- package/dist/services/GSwapPoolQueryService.d.ts +2 -3
- package/dist/services/GSwapPoolQueryService.d.ts.map +1 -1
- package/dist/services/GSwapService.d.ts +10 -10
- package/dist/services/GSwapService.d.ts.map +1 -1
- package/dist/services/GSwapSwapService.d.ts +2 -2
- package/dist/services/GSwapSwapService.d.ts.map +1 -1
- package/dist/services/GalaChainBalanceService.d.ts +2 -2
- package/dist/services/GalaChainBalanceService.d.ts.map +1 -1
- package/dist/services/GalaChainGatewayClient.d.ts +1 -1
- package/dist/services/GalaChainGatewayClient.d.ts.map +1 -1
- package/dist/services/GalaChainLockService.d.ts +3 -3
- package/dist/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/services/GalaChainService.d.ts +10 -13
- package/dist/services/GalaChainService.d.ts.map +1 -1
- package/dist/services/GalaChainTokenService.d.ts +3 -3
- package/dist/services/GalaChainTokenService.d.ts.map +1 -1
- package/dist/services/GalaChainTransferService.d.ts +4 -4
- package/dist/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/services/HolderService.d.ts +2 -2
- package/dist/services/HolderService.d.ts.map +1 -1
- package/dist/services/ImageService.d.ts +2 -2
- package/dist/services/ImageService.d.ts.map +1 -1
- package/dist/services/LaunchpadService.d.ts +7 -7
- package/dist/services/LaunchpadService.d.ts.map +1 -1
- package/dist/services/MessagesService.d.ts +2 -2
- package/dist/services/MessagesService.d.ts.map +1 -1
- package/dist/services/ModeratorService.d.ts +30 -2
- package/dist/services/ModeratorService.d.ts.map +1 -1
- package/dist/services/MultiPoolStateManager.d.ts +17 -10
- package/dist/services/MultiPoolStateManager.d.ts.map +1 -1
- package/dist/services/NetworkKeyedCacheService.d.ts.map +1 -1
- package/dist/services/NftCollectionService.d.ts +3 -5
- package/dist/services/NftCollectionService.d.ts.map +1 -1
- package/dist/services/OEmbedService.d.ts +1 -1
- package/dist/services/OEmbedService.d.ts.map +1 -1
- package/dist/services/OverseerService.d.ts +31 -3
- package/dist/services/OverseerService.d.ts.map +1 -1
- package/dist/services/PlatformConfigService.d.ts +2 -2
- package/dist/services/PlatformConfigService.d.ts.map +1 -1
- package/dist/services/PlatformStatsService.d.ts +1 -1
- package/dist/services/PlatformStatsService.d.ts.map +1 -1
- package/dist/services/PoolCacheManager.d.ts +3 -10
- package/dist/services/PoolCacheManager.d.ts.map +1 -1
- package/dist/services/PoolService.d.ts +4 -4
- package/dist/services/PoolService.d.ts.map +1 -1
- package/dist/services/PoolStateManager.d.ts +2 -2
- package/dist/services/PoolStateManager.d.ts.map +1 -1
- package/dist/services/PriceHistoryService.d.ts +1 -1
- package/dist/services/PriceHistoryService.d.ts.map +1 -1
- package/dist/services/RestrictedNamesService.d.ts +2 -2
- package/dist/services/RestrictedNamesService.d.ts.map +1 -1
- package/dist/services/SignatureService.d.ts.map +1 -1
- package/dist/services/StreamChatService.d.ts +2 -2
- package/dist/services/StreamChatService.d.ts.map +1 -1
- package/dist/services/StreamTokenServiceBase.d.ts +2 -2
- package/dist/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/services/StreamWebSocketService.d.ts +16 -4
- package/dist/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/services/StreamingEventService.d.ts +4 -6
- package/dist/services/StreamingEventService.d.ts.map +1 -1
- package/dist/services/StreamingService.d.ts +2 -2
- package/dist/services/StreamingService.d.ts.map +1 -1
- package/dist/services/SwapEventQueue.d.ts +1 -1
- package/dist/services/SwapEventQueue.d.ts.map +1 -1
- package/dist/services/TokenBanService.d.ts +2 -2
- package/dist/services/TokenBanService.d.ts.map +1 -1
- package/dist/services/TokenClassKeyService.d.ts.map +1 -1
- package/dist/services/TokenMetadataCache.d.ts.map +1 -1
- package/dist/services/TokenMetadataService.d.ts +4 -4
- package/dist/services/TokenMetadataService.d.ts.map +1 -1
- package/dist/services/TokenResolverService.d.ts +1 -1
- package/dist/services/TokenResolverService.d.ts.map +1 -1
- package/dist/services/TradeService.d.ts +3 -3
- package/dist/services/TradeService.d.ts.map +1 -1
- package/dist/services/TradingQuotesService.d.ts +162 -0
- package/dist/services/TradingQuotesService.d.ts.map +1 -0
- package/dist/services/UserService.d.ts +2 -2
- package/dist/services/UserService.d.ts.map +1 -1
- package/dist/services/WebSocketAdminService.d.ts +2 -2
- package/dist/services/WebSocketAdminService.d.ts.map +1 -1
- package/dist/services/WebSocketService.d.ts +1 -1
- package/dist/services/WebSocketService.d.ts.map +1 -1
- package/dist/services/WeeklyChallengeService.d.ts +1 -1
- package/dist/services/WeeklyChallengeService.d.ts.map +1 -1
- package/dist/services/WrapService.d.ts +5 -5
- package/dist/services/WrapService.d.ts.map +1 -1
- package/dist/services/WrappableTokenService.d.ts +2 -2
- package/dist/services/WrappableTokenService.d.ts.map +1 -1
- package/dist/services/__mocks__/logger.mock.d.ts.map +1 -1
- package/dist/services/shared/cache-helpers.d.ts.map +1 -1
- package/dist/services/shared/http-helpers.d.ts.map +1 -1
- package/dist/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/services/shared/service-validators.d.ts +1 -1
- package/dist/services/shared/service-validators.d.ts.map +1 -1
- package/dist/src/LaunchpadSDK.d.ts +422 -137
- package/dist/src/LaunchpadSDK.d.ts.map +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +13 -6
- package/dist/src/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/src/api/dto/BondingCurveDTOs.d.ts.map +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/src/auth/JwtAuth.d.ts.map +1 -1
- package/dist/src/auth/SessionAuthService.d.ts +6 -5
- package/dist/src/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/src/auth/SignatureAuth.d.ts +1 -1
- package/dist/src/auth/SignatureAuth.d.ts.map +1 -1
- package/dist/src/auth/storage.d.ts.map +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/GalaConnectClient.d.ts +1 -1
- package/dist/src/bridge/GalaConnectClient.d.ts.map +1 -1
- package/dist/src/bridge/constants/tokens.d.ts +1 -1
- package/dist/src/bridge/constants/tokens.d.ts.map +1 -1
- package/dist/src/bridge/index.d.ts +10 -10
- package/dist/src/bridge/index.d.ts.map +1 -1
- package/dist/src/bridge/strategies/BridgeStrategy.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/utils/addressValidation.d.ts.map +1 -1
- package/dist/src/bridge/utils/balanceHelpers.d.ts +1 -1
- package/dist/src/bridge/utils/balanceHelpers.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgeErrors.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts +1 -1
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgePayload.d.ts +2 -11
- package/dist/src/bridge/utils/bridgePayload.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgeStatusParser.d.ts.map +1 -1
- package/dist/src/bridge/utils/eip712Helpers.d.ts.map +1 -1
- package/dist/src/bridge/utils/index.d.ts +9 -9
- package/dist/src/bridge/utils/index.d.ts.map +1 -1
- package/dist/src/bridge/utils/tokenIdUtils.d.ts +1 -1
- package/dist/src/bridge/utils/tokenIdUtils.d.ts.map +1 -1
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts +1 -1
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts.map +1 -1
- package/dist/src/constants/endpoints.d.ts +33 -2
- package/dist/src/constants/endpoints.d.ts.map +1 -1
- package/dist/src/constants/version.generated.d.ts +1 -1
- package/dist/src/helpers/sdk.d.ts.map +1 -1
- package/dist/src/helpers/wallet.d.ts.map +1 -1
- package/dist/src/index.browser.d.ts +96 -95
- package/dist/src/index.browser.d.ts.map +1 -1
- package/dist/src/index.node.d.ts +1 -1
- package/dist/src/index.node.d.ts.map +1 -1
- package/dist/src/react/WalletContext.d.ts +2 -2
- package/dist/src/react/WalletContext.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +5 -5
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/types.d.ts +1 -1
- package/dist/src/react/types.d.ts.map +1 -1
- package/dist/src/react/useWallet.d.ts +2 -1
- package/dist/src/react/useWallet.d.ts.map +1 -1
- package/dist/src/react/useWalletConnection.d.ts +1 -1
- package/dist/src/react/useWalletConnection.d.ts.map +1 -1
- package/dist/src/react/useWalletDetection.d.ts.map +1 -1
- package/dist/src/schemas/files.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +2 -2
- package/dist/src/schemas/index.d.ts.map +1 -1
- package/dist/src/schemas/launchpad.d.ts.map +1 -1
- package/dist/src/schemas/pagination.d.ts +1 -4
- package/dist/src/schemas/pagination.d.ts.map +1 -1
- package/dist/src/schemas/primitives.d.ts.map +1 -1
- package/dist/src/schemas/trade.d.ts.map +1 -1
- package/dist/src/schemas/user.d.ts.map +1 -1
- package/dist/src/schemas/validators.d.ts.map +1 -1
- package/dist/src/services/AIModerationService.d.ts +2 -2
- package/dist/src/services/AIModerationService.d.ts.map +1 -1
- 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 +2 -2
- package/dist/src/services/ApiKeyService.d.ts.map +1 -1
- package/dist/src/services/BanService.d.ts +2 -2
- 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.map +1 -1
- package/dist/src/services/BridgeableTokenCache.d.ts +1 -1
- package/dist/src/services/BridgeableTokenCache.d.ts.map +1 -1
- package/dist/src/services/BridgeableTokenService.d.ts +3 -3
- package/dist/src/services/BridgeableTokenService.d.ts.map +1 -1
- package/dist/src/services/BundleService.d.ts +5 -5
- package/dist/src/services/BundleService.d.ts.map +1 -1
- package/dist/src/services/BundlerClientFactory.d.ts.map +1 -1
- package/dist/src/services/ChartService.d.ts.map +1 -1
- package/dist/src/services/ContentFlagService.d.ts +2 -2
- 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 +1 -1
- package/dist/src/services/DexBackendClient.d.ts.map +1 -1
- package/dist/src/services/DexPoolService.d.ts +2 -2
- package/dist/src/services/DexPoolService.d.ts.map +1 -1
- package/dist/src/services/DexQuoteService.d.ts +3 -4
- package/dist/src/services/DexQuoteService.d.ts.map +1 -1
- package/dist/src/services/DexService.d.ts +5 -5
- package/dist/src/services/DexService.d.ts.map +1 -1
- package/dist/src/services/EventsBatcherService.d.ts +1 -1
- package/dist/src/services/EventsBatcherService.d.ts.map +1 -1
- package/dist/src/services/GSwapAssetService.d.ts +1 -2
- package/dist/src/services/GSwapAssetService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityMutationService.d.ts +4 -6
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +2 -14
- package/dist/src/services/GSwapLiquidityQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts +0 -13
- package/dist/src/services/GSwapPoolCalculationService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolQueryService.d.ts +2 -3
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapService.d.ts +10 -10
- 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 +3 -3
- package/dist/src/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/src/services/GalaChainService.d.ts +10 -13
- 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 +4 -4
- package/dist/src/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/src/services/HolderService.d.ts +2 -2
- package/dist/src/services/HolderService.d.ts.map +1 -1
- package/dist/src/services/ImageService.d.ts +2 -2
- package/dist/src/services/ImageService.d.ts.map +1 -1
- package/dist/src/services/LaunchpadService.d.ts +7 -7
- package/dist/src/services/LaunchpadService.d.ts.map +1 -1
- package/dist/src/services/MessagesService.d.ts +2 -2
- package/dist/src/services/MessagesService.d.ts.map +1 -1
- package/dist/src/services/ModeratorService.d.ts +30 -2
- package/dist/src/services/ModeratorService.d.ts.map +1 -1
- package/dist/src/services/MultiPoolStateManager.d.ts +17 -10
- package/dist/src/services/MultiPoolStateManager.d.ts.map +1 -1
- package/dist/src/services/NetworkKeyedCacheService.d.ts.map +1 -1
- package/dist/src/services/NftCollectionService.d.ts +3 -5
- package/dist/src/services/NftCollectionService.d.ts.map +1 -1
- package/dist/src/services/OEmbedService.d.ts +1 -1
- package/dist/src/services/OEmbedService.d.ts.map +1 -1
- package/dist/src/services/OverseerService.d.ts +31 -3
- package/dist/src/services/OverseerService.d.ts.map +1 -1
- package/dist/src/services/PlatformConfigService.d.ts +2 -2
- package/dist/src/services/PlatformConfigService.d.ts.map +1 -1
- package/dist/src/services/PlatformStatsService.d.ts +1 -1
- package/dist/src/services/PlatformStatsService.d.ts.map +1 -1
- package/dist/src/services/PoolCacheManager.d.ts +3 -10
- package/dist/src/services/PoolCacheManager.d.ts.map +1 -1
- package/dist/src/services/PoolService.d.ts +4 -4
- package/dist/src/services/PoolService.d.ts.map +1 -1
- package/dist/src/services/PoolStateManager.d.ts +2 -2
- package/dist/src/services/PoolStateManager.d.ts.map +1 -1
- package/dist/src/services/PriceHistoryService.d.ts +1 -1
- package/dist/src/services/PriceHistoryService.d.ts.map +1 -1
- package/dist/src/services/RestrictedNamesService.d.ts +2 -2
- package/dist/src/services/RestrictedNamesService.d.ts.map +1 -1
- package/dist/src/services/SignatureService.d.ts.map +1 -1
- package/dist/src/services/StreamChatService.d.ts +2 -2
- package/dist/src/services/StreamChatService.d.ts.map +1 -1
- package/dist/src/services/StreamTokenServiceBase.d.ts +2 -2
- package/dist/src/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/src/services/StreamWebSocketService.d.ts +16 -4
- package/dist/src/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/src/services/StreamingEventService.d.ts +4 -6
- package/dist/src/services/StreamingEventService.d.ts.map +1 -1
- package/dist/src/services/StreamingService.d.ts +2 -2
- package/dist/src/services/StreamingService.d.ts.map +1 -1
- package/dist/src/services/SwapEventQueue.d.ts +1 -1
- package/dist/src/services/SwapEventQueue.d.ts.map +1 -1
- package/dist/src/services/TokenBanService.d.ts +2 -2
- package/dist/src/services/TokenBanService.d.ts.map +1 -1
- package/dist/src/services/TokenClassKeyService.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataCache.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataService.d.ts +4 -4
- 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 +3 -3
- package/dist/src/services/TradeService.d.ts.map +1 -1
- package/dist/src/services/TradingQuotesService.d.ts +162 -0
- package/dist/src/services/TradingQuotesService.d.ts.map +1 -0
- package/dist/src/services/UserService.d.ts +2 -2
- package/dist/src/services/UserService.d.ts.map +1 -1
- package/dist/src/services/WebSocketAdminService.d.ts +2 -2
- package/dist/src/services/WebSocketAdminService.d.ts.map +1 -1
- package/dist/src/services/WebSocketService.d.ts +1 -1
- package/dist/src/services/WebSocketService.d.ts.map +1 -1
- package/dist/src/services/WeeklyChallengeService.d.ts +1 -1
- package/dist/src/services/WeeklyChallengeService.d.ts.map +1 -1
- package/dist/src/services/WrapService.d.ts +5 -5
- package/dist/src/services/WrapService.d.ts.map +1 -1
- package/dist/src/services/WrappableTokenService.d.ts +2 -2
- package/dist/src/services/WrappableTokenService.d.ts.map +1 -1
- 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/http-helpers.d.ts.map +1 -1
- package/dist/src/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/src/services/shared/service-validators.d.ts +1 -1
- package/dist/src/services/shared/service-validators.d.ts.map +1 -1
- package/dist/src/types/ai-moderation.dto.d.ts.map +1 -1
- package/dist/src/types/api-key.dto.d.ts.map +1 -1
- package/dist/src/types/ban.dto.d.ts +1 -1
- package/dist/src/types/ban.dto.d.ts.map +1 -1
- package/dist/src/types/chat-messages.dto.d.ts +1 -1
- package/dist/src/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/src/types/comment.dto.d.ts +1 -1
- package/dist/src/types/comment.dto.d.ts.map +1 -1
- package/dist/src/types/comments.dto.d.ts +1 -1
- package/dist/src/types/comments.dto.d.ts.map +1 -1
- package/dist/src/types/common.d.ts +1 -1
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/composite-pool.dto.d.ts +1 -1
- package/dist/src/types/composite-pool.dto.d.ts.map +1 -1
- package/dist/src/types/content-flag.dto.d.ts +1 -1
- package/dist/src/types/content-flag.dto.d.ts.map +1 -1
- package/dist/src/types/dex-pool.dto.d.ts +1 -1
- 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/global-feed.dto.d.ts +1 -1
- package/dist/src/types/global-feed.dto.d.ts.map +1 -1
- package/dist/src/types/gswap-responses.types.d.ts.map +1 -1
- package/dist/src/types/gswap.dto.d.ts +1 -1
- package/dist/src/types/gswap.dto.d.ts.map +1 -1
- package/dist/src/types/launchpad.dto.d.ts +36 -2
- package/dist/src/types/launchpad.dto.d.ts.map +1 -1
- package/dist/src/types/launchpad.validation.d.ts.map +1 -1
- package/dist/src/types/lock.dto.d.ts +1 -1
- package/dist/src/types/lock.dto.d.ts.map +1 -1
- package/dist/src/types/messages.dto.d.ts +1 -1
- package/dist/src/types/messages.dto.d.ts.map +1 -1
- package/dist/src/types/moderator.dto.d.ts +34 -1
- package/dist/src/types/moderator.dto.d.ts.map +1 -1
- package/dist/src/types/options.dto.d.ts +1 -1
- package/dist/src/types/options.dto.d.ts.map +1 -1
- package/dist/src/types/overseer.dto.d.ts +1 -1
- package/dist/src/types/overseer.dto.d.ts.map +1 -1
- package/dist/src/types/pool-state-delta.dto.d.ts.map +1 -1
- package/dist/src/types/stream-chat.dto.d.ts +1 -1
- package/dist/src/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/src/types/streaming.dto.d.ts +4 -4
- package/dist/src/types/streaming.dto.d.ts.map +1 -1
- package/dist/src/types/token-ban.dto.d.ts +1 -1
- package/dist/src/types/token-ban.dto.d.ts.map +1 -1
- package/dist/src/types/trade.dto.d.ts +1 -1
- package/dist/src/types/trade.dto.d.ts.map +1 -1
- package/dist/src/types/trades-query.dto.d.ts +1 -1
- package/dist/src/types/trades-query.dto.d.ts.map +1 -1
- package/dist/src/types/transfer.dto.d.ts.map +1 -1
- package/dist/src/types/user.dto.d.ts +1 -28
- package/dist/src/types/user.dto.d.ts.map +1 -1
- package/dist/src/types/websocket-events.dto.d.ts +27 -0
- package/dist/src/types/websocket-events.dto.d.ts.map +1 -1
- package/dist/src/types/wrappable-token.dto.d.ts +1 -1
- package/dist/src/types/wrappable-token.dto.d.ts.map +1 -1
- package/dist/src/utils/LiquidityEventExtractor.d.ts.map +1 -1
- package/dist/src/utils/Logger.d.ts.map +1 -1
- package/dist/src/utils/MonitoringMetrics.d.ts +0 -1
- package/dist/src/utils/MonitoringMetrics.d.ts.map +1 -1
- package/dist/src/utils/SignatureHelper.d.ts.map +1 -1
- package/dist/src/utils/SwapEventExtractor.d.ts.map +1 -1
- package/dist/src/utils/adapters.d.ts.map +1 -1
- package/dist/src/utils/address-formatter.d.ts +1 -1
- package/dist/src/utils/address-formatter.d.ts.map +1 -1
- package/dist/src/utils/agent-config.d.ts.map +1 -1
- package/dist/src/utils/amount-validator.d.ts.map +1 -1
- package/dist/src/utils/api-patterns.d.ts.map +1 -1
- package/dist/src/utils/auto-pagination.d.ts +1 -1
- package/dist/src/utils/auto-pagination.d.ts.map +1 -1
- package/dist/src/utils/bignumber-helpers.d.ts.map +1 -1
- package/dist/src/utils/bignumber-pool-cache.d.ts.map +1 -1
- package/dist/src/utils/composite-pool-converter.d.ts +1 -1
- package/dist/src/utils/composite-pool-converter.d.ts.map +1 -1
- package/dist/src/utils/delimiter-parser.d.ts.map +1 -1
- package/dist/src/utils/error-factories.d.ts +1 -1
- package/dist/src/utils/error-factories.d.ts.map +1 -1
- package/dist/src/utils/error-patterns.d.ts.map +1 -1
- package/dist/src/utils/error-utils.d.ts.map +1 -1
- package/dist/src/utils/http.d.ts +1 -1
- package/dist/src/utils/http.d.ts.map +1 -1
- package/dist/src/utils/load-env.d.ts.map +1 -1
- package/dist/src/utils/multipart.d.ts.map +1 -1
- package/dist/src/utils/nft-helpers.d.ts.map +1 -1
- package/dist/src/utils/numeric-patterns.d.ts.map +1 -1
- package/dist/src/utils/numeric-wrappers.d.ts.map +1 -1
- package/dist/src/utils/pool-state-validator.d.ts +1 -1
- package/dist/src/utils/pool-state-validator.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/utils/safe-parsers.d.ts.map +1 -1
- package/dist/src/utils/service-validators.d.ts.map +1 -1
- package/dist/src/utils/slippage-utils.d.ts.map +1 -1
- package/dist/src/utils/string-patterns.d.ts +1 -1
- package/dist/src/utils/string-patterns.d.ts.map +1 -1
- package/dist/src/utils/swap-delta-calculator.d.ts +2 -2
- package/dist/src/utils/swap-delta-calculator.d.ts.map +1 -1
- package/dist/src/utils/tick-crossing-handler.d.ts.map +1 -1
- package/dist/src/utils/token-format-converter.d.ts +1 -1
- package/dist/src/utils/token-format-converter.d.ts.map +1 -1
- package/dist/src/utils/token-stringification.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 +1 -1
- package/dist/src/utils/trade-transformers.d.ts.map +1 -1
- package/dist/src/utils/validation-helpers.d.ts +1 -1
- package/dist/src/utils/validation-helpers.d.ts.map +1 -1
- package/dist/src/utils/validation-patterns.d.ts.map +1 -1
- package/dist/src/utils/validation.d.ts +1 -1
- 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-patterns.d.ts +1 -2
- package/dist/src/utils/websocket-patterns.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/dist/src/wallet/ExternalWalletProvider.d.ts +1 -1
- package/dist/src/wallet/ExternalWalletProvider.d.ts.map +1 -1
- package/dist/src/wallet/GalaChainConnectProvider.d.ts +1 -1
- package/dist/src/wallet/GalaChainConnectProvider.d.ts.map +1 -1
- package/dist/src/wallet/GalaWalletProvider.d.ts +1 -1
- package/dist/src/wallet/GalaWalletProvider.d.ts.map +1 -1
- package/dist/src/wallet/PrivateKeyProvider.d.ts +1 -1
- package/dist/src/wallet/PrivateKeyProvider.d.ts.map +1 -1
- package/dist/src/wallet/detection.d.ts.map +1 -1
- package/dist/src/wallet/index.d.ts +5 -5
- package/dist/src/wallet/index.d.ts.map +1 -1
- package/dist/src/wallet/utils.d.ts +2 -2
- package/dist/src/wallet/utils.d.ts.map +1 -1
- package/dist/types/ai-moderation.dto.d.ts.map +1 -1
- package/dist/types/api-key.dto.d.ts.map +1 -1
- package/dist/types/ban.dto.d.ts +1 -1
- package/dist/types/ban.dto.d.ts.map +1 -1
- package/dist/types/chat-messages.dto.d.ts +1 -1
- package/dist/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/types/comment.dto.d.ts +1 -1
- package/dist/types/comment.dto.d.ts.map +1 -1
- package/dist/types/comments.dto.d.ts +1 -1
- package/dist/types/comments.dto.d.ts.map +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/composite-pool.dto.d.ts +1 -1
- package/dist/types/composite-pool.dto.d.ts.map +1 -1
- package/dist/types/content-flag.dto.d.ts +1 -1
- package/dist/types/content-flag.dto.d.ts.map +1 -1
- package/dist/types/dex-pool.dto.d.ts +1 -1
- package/dist/types/dex-pool.dto.d.ts.map +1 -1
- package/dist/types/dto.d.ts +1 -1
- package/dist/types/dto.d.ts.map +1 -1
- package/dist/types/global-feed.dto.d.ts +1 -1
- package/dist/types/global-feed.dto.d.ts.map +1 -1
- package/dist/types/gswap-responses.types.d.ts.map +1 -1
- package/dist/types/gswap.dto.d.ts +1 -1
- package/dist/types/gswap.dto.d.ts.map +1 -1
- package/dist/types/launchpad.dto.d.ts +36 -2
- package/dist/types/launchpad.dto.d.ts.map +1 -1
- package/dist/types/launchpad.validation.d.ts.map +1 -1
- package/dist/types/lock.dto.d.ts +1 -1
- package/dist/types/lock.dto.d.ts.map +1 -1
- package/dist/types/messages.dto.d.ts +1 -1
- package/dist/types/messages.dto.d.ts.map +1 -1
- package/dist/types/moderator.dto.d.ts +34 -1
- package/dist/types/moderator.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/types/overseer.dto.d.ts +1 -1
- package/dist/types/overseer.dto.d.ts.map +1 -1
- package/dist/types/pool-state-delta.dto.d.ts.map +1 -1
- package/dist/types/stream-chat.dto.d.ts +1 -1
- package/dist/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/types/streaming.dto.d.ts +4 -4
- package/dist/types/streaming.dto.d.ts.map +1 -1
- package/dist/types/token-ban.dto.d.ts +1 -1
- package/dist/types/token-ban.dto.d.ts.map +1 -1
- package/dist/types/trade.dto.d.ts +1 -1
- package/dist/types/trade.dto.d.ts.map +1 -1
- package/dist/types/trades-query.dto.d.ts +1 -1
- package/dist/types/trades-query.dto.d.ts.map +1 -1
- package/dist/types/transfer.dto.d.ts.map +1 -1
- package/dist/types/user.dto.d.ts +1 -28
- package/dist/types/user.dto.d.ts.map +1 -1
- package/dist/types/websocket-events.dto.d.ts +27 -0
- package/dist/types/websocket-events.dto.d.ts.map +1 -1
- package/dist/types/wrappable-token.dto.d.ts +1 -1
- package/dist/types/wrappable-token.dto.d.ts.map +1 -1
- package/dist/utils/LiquidityEventExtractor.d.ts.map +1 -1
- package/dist/utils/Logger.d.ts.map +1 -1
- package/dist/utils/MonitoringMetrics.d.ts +0 -1
- package/dist/utils/MonitoringMetrics.d.ts.map +1 -1
- package/dist/utils/SignatureHelper.d.ts.map +1 -1
- package/dist/utils/SwapEventExtractor.d.ts.map +1 -1
- package/dist/utils/adapters.d.ts.map +1 -1
- package/dist/utils/address-formatter.d.ts +1 -1
- package/dist/utils/address-formatter.d.ts.map +1 -1
- package/dist/utils/agent-config.d.ts.map +1 -1
- package/dist/utils/amount-validator.d.ts.map +1 -1
- package/dist/utils/api-patterns.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/bignumber-helpers.d.ts.map +1 -1
- package/dist/utils/bignumber-pool-cache.d.ts.map +1 -1
- package/dist/utils/composite-pool-converter.d.ts +1 -1
- package/dist/utils/composite-pool-converter.d.ts.map +1 -1
- package/dist/utils/delimiter-parser.d.ts.map +1 -1
- package/dist/utils/error-factories.d.ts +1 -1
- package/dist/utils/error-factories.d.ts.map +1 -1
- package/dist/utils/error-patterns.d.ts.map +1 -1
- package/dist/utils/error-utils.d.ts.map +1 -1
- package/dist/utils/http.d.ts +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/load-env.d.ts.map +1 -1
- package/dist/utils/multipart.d.ts.map +1 -1
- package/dist/utils/nft-helpers.d.ts.map +1 -1
- package/dist/utils/numeric-patterns.d.ts.map +1 -1
- package/dist/utils/numeric-wrappers.d.ts.map +1 -1
- package/dist/utils/pool-state-validator.d.ts +1 -1
- package/dist/utils/pool-state-validator.d.ts.map +1 -1
- package/dist/utils/query-params.d.ts.map +1 -1
- package/dist/utils/response-handlers.d.ts.map +1 -1
- package/dist/utils/response-normalizers.d.ts.map +1 -1
- package/dist/utils/safe-parsers.d.ts.map +1 -1
- package/dist/utils/service-validators.d.ts.map +1 -1
- package/dist/utils/slippage-utils.d.ts.map +1 -1
- package/dist/utils/string-patterns.d.ts +1 -1
- package/dist/utils/string-patterns.d.ts.map +1 -1
- package/dist/utils/swap-delta-calculator.d.ts +2 -2
- package/dist/utils/swap-delta-calculator.d.ts.map +1 -1
- package/dist/utils/tick-crossing-handler.d.ts.map +1 -1
- package/dist/utils/token-format-converter.d.ts +1 -1
- package/dist/utils/token-format-converter.d.ts.map +1 -1
- package/dist/utils/token-stringification.d.ts.map +1 -1
- package/dist/utils/tokenNormalizer.d.ts +1 -1
- package/dist/utils/tokenNormalizer.d.ts.map +1 -1
- package/dist/utils/trade-transformers.d.ts +1 -1
- package/dist/utils/trade-transformers.d.ts.map +1 -1
- package/dist/utils/validation-helpers.d.ts +1 -1
- package/dist/utils/validation-helpers.d.ts.map +1 -1
- package/dist/utils/validation-patterns.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/wallet.d.ts.map +1 -1
- package/dist/utils/websocket-patterns.d.ts +1 -2
- package/dist/utils/websocket-patterns.d.ts.map +1 -1
- package/dist/utils/websocket-validators.d.ts +1 -1
- package/dist/utils/websocket-validators.d.ts.map +1 -1
- package/dist/wallet/ExternalWalletProvider.d.ts +1 -1
- package/dist/wallet/ExternalWalletProvider.d.ts.map +1 -1
- package/dist/wallet/GalaChainConnectProvider.d.ts +1 -1
- package/dist/wallet/GalaChainConnectProvider.d.ts.map +1 -1
- package/dist/wallet/GalaWalletProvider.d.ts +1 -1
- package/dist/wallet/GalaWalletProvider.d.ts.map +1 -1
- package/dist/wallet/PrivateKeyProvider.d.ts +1 -1
- package/dist/wallet/PrivateKeyProvider.d.ts.map +1 -1
- package/dist/wallet/detection.d.ts.map +1 -1
- package/dist/wallet/index.d.ts +5 -5
- package/dist/wallet/index.d.ts.map +1 -1
- package/dist/wallet/utils.d.ts +2 -2
- package/dist/wallet/utils.d.ts.map +1 -1
- package/dist/wallet.cjs +1 -1
- package/dist/wallet.esm.js +1 -1
- package/package.json +6 -6
- package/dist/examples/users/account-registration.d.ts +0 -20
- package/dist/examples/users/account-registration.d.ts.map +0 -1
package/dist/LaunchpadSDK.d.ts
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
1
|
import { Wallet } from 'ethers';
|
|
2
|
-
import type {
|
|
3
|
-
import type { SDKConfig, AddressFormat, TokenClassKey, TokenId } from './types/common';
|
|
4
|
-
import type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
5
|
-
import { EventsBatcherService } from './services/EventsBatcherService';
|
|
6
|
-
import type { EthereumWalletBalanceResult, SolanaWalletBalanceResult, ExternalChainBalance, EstimateBridgeFeeParams, BridgeFeeEstimate, BridgeOutParams, BridgeInParams, BridgeTransaction, BridgeStatus, BridgeToken, EthereumTransactionStatus, SolanaTransactionStatus } from './bridge/types/bridge.dto';
|
|
2
|
+
import type { BridgeFeeEstimate, BridgeInParams, BridgeOutParams, BridgeStatus, BridgeToken, BridgeTransaction, EstimateBridgeFeeParams, EthereumTransactionStatus, EthereumWalletBalanceResult, ExternalChainBalance, SolanaTransactionStatus, SolanaWalletBalanceResult } from './bridge/types/bridge.dto';
|
|
7
3
|
import type { BridgeableNetwork, FetchBridgeableTokensOptions, FetchBridgeableTokensResult, IsTokenBridgeableOptions, IsTokenBridgeableResult } from './bridge/types/bridgeable-token.dto';
|
|
8
|
-
import
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type { GetWeeklyChallengeOptions, GetWeeklyChallengeResult, GetTokenWeeklyHistoryOptions, GetTokenWeeklyHistoryResult } from './types/weekly-challenge.dto';
|
|
15
|
-
import type { GetPoolOEmbedOptions, GetProfileOEmbedOptions, GetHomeOEmbedOptions, GetPoolOEmbedJsonResult, GetProfileOEmbedJsonResult, GetHomeOEmbedJsonResult } from './types/oembed.dto';
|
|
16
|
-
import type { GetPlatformStatsResult } from './types/platform-stats.dto';
|
|
17
|
-
import type { CreateApiKeyOptions, UpdateApiKeyOptions, ListApiKeysOptions, CreateApiKeyResponse, ApiKeyData, ApiKeyListResponse } from './types/api-key.dto';
|
|
18
|
-
import type { CreateModeratorInviteOptions, ClaimModeratorInviteOptions, ListModeratorInvitesOptions, GetModeratedTokensOptions, UpdateInviteRoleOptions, CreateModeratorInviteResult, ClaimModeratorInviteResult, ModeratorInviteListResult, ModeratedTokensResult, UpdateInviteRoleResult, PublicInviteInfo } from './types/moderator.dto';
|
|
19
|
-
import type { LoginResponse, SessionInfo, RefreshResponse } from './types/session-auth.dto';
|
|
20
|
-
import type { CreateFlagOptions, CreateFlagResult, ListFlagsOptions, ListGlobalFlagsOptions, FlagListResult, DismissFlagOptions, DismissFlagResult, ActionFlagOptions, ActionFlagResult } from './types/content-flag.dto';
|
|
21
|
-
import type { CreateOverseerInviteOptions, CreateOverseerDirectOptions, ListOverseerInvitesOptions, ListOverseersOptions, OverseerInviteWithUrl, Overseer, PublicOverseerInviteInfo, PaginatedOverseerInvites, PaginatedOverseers, OverseerStatusResponse, OverseerSummaryResponse, BanStatsResponse, TokenBanStatsResponse, UserStatsResponse, InviteStatsResponse, FlagStatsResponse, ListUsersOptions, UsersListResponse, UserSummaryResponse } from './types/overseer.dto';
|
|
4
|
+
import { EventsBatcherService } from './services/EventsBatcherService';
|
|
5
|
+
import type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
6
|
+
import type { GetAIModerationOptions, GetAIModerationResult, GetAIModerationSettingsResult, GetAIModerationStatusResult, TriggerAIModerationOptions, TriggerAIModerationResult, UpdateAIModerationSettingsOptions, UpdateAIModerationSettingsResult } from './types/ai-moderation.dto';
|
|
7
|
+
import type { ApiKeyData, ApiKeyListResponse, CreateApiKeyOptions, CreateApiKeyResponse, ListApiKeysOptions, UpdateApiKeyOptions } from './types/api-key.dto';
|
|
8
|
+
import type { ActiveUsersResult, BanListResult, BanStatusResult, CreateBanOptions, CreateBanResult, CreateGlobalBanOptions, CreateGlobalBanResult, GetActiveUsersOptions, GetBanStatusOptions, GetGlobalBanOptions, GlobalBanListResult, GlobalBanStatusResult, ListBansOptions, ListGlobalBansOptions, RemoveBanOptions, RemoveBanResult, RemoveGlobalBanOptions, RemoveGlobalBanResult } from './types/ban.dto';
|
|
9
|
+
import type { BurnTokensData, BurnTokensResult } from './types/burn.dto';
|
|
22
10
|
import type { FlushResult } from './types/cache-management.dto';
|
|
23
|
-
import type {
|
|
24
|
-
import type {
|
|
25
|
-
import type {
|
|
26
|
-
import type {
|
|
27
|
-
import type {
|
|
28
|
-
import type { PlatformConfig, UpdatePlatformConfigOptions } from './types/platform-config.dto';
|
|
29
|
-
import type { TradeExecutedPayload, BalanceUpdatedPayload, StreamStatusPayload, ViewerCountPayload, StreamCountdownPayload, ChatMessagePayload, ChatStatusPayload, TypingIndicatorPayload, TokenBannedPayload, TokenUnbannedPayload, ModeratorAddedPayload, ModeratorRemovedPayload, UserProfileUpdatedPayload, SiteConfigChangedPayload, FeatureStatusPayload, ConnectedClient, ConnectedClientsResponse, GetConnectedClientsOptions, RecordingStatusPayload, RecordingsCountUpdatedPayload, DownloadReadyPayload } from './types/websocket-admin.dto';
|
|
30
|
-
import type { ClaimCollectionParams, ClaimCollectionResult, CreateTokenClassParams, CreateTokenClassResult, MintNftParams, MintNftResult, NftBalance, NftCollectionAuthorization, NftTokenClassWithSupply, EstimateMintFeeParams, EstimateNftFeesParams, NftFeeEstimate, FetchTokenClassesParams } from './types/nft.dto';
|
|
31
|
-
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
32
|
-
import type { PoolDetailsData } from './types/trade.dto';
|
|
33
|
-
import type { LaunchTokenData, TokenSpotPrice, FetchPoolsOptions, PoolsResult, GalaChainTokenDetails, PoolData, TokenClassWithSupply, DexSeason, LeaderboardResult, DexAggregatedVolumeSummary } from './types/launchpad.dto';
|
|
34
|
-
import type { UpdateProfileData, UploadProfileImageOptions, FetchTokenBalanceOptions, LockedBalanceResult, AvailableBalanceResult, ReferralUrlResult, FetchReferralsOptions, ReferralsResult, AllReferralsResult, FetchReferralsSummaryOptions, ReferralsSummaryResult, RegisterAccountOptions, RegisterAccountResult, GetManagedTokensOptions, ManagedTokensResult, TokenBalanceResult, FetchUserBalancesOptions, FetchUserBalancesResult, FetchUserReportOptions, FetchUserReportResult } from './types/user.dto';
|
|
11
|
+
import type { CreateChatMessageOptions, CreateChatMessageResult, GetChatMessagesOptions, GetChatMessagesResult, UpdateChatMessageOptions, UpdateChatMessageResult } from './types/chat-messages.dto';
|
|
12
|
+
import type { CommentsResult, CreateCommentOptions, CreateCommentResult, DeleteCommentResult, GetCommentsOptions, UpdateCommentOptions, UpdateCommentResult } from './types/comments.dto';
|
|
13
|
+
import type { AddressFormat, ApiResponse, SDKConfig, TokenClassKey, TokenId } from './types/common';
|
|
14
|
+
import type { ActionFlagOptions, ActionFlagResult, CreateFlagOptions, CreateFlagResult, DismissFlagOptions, DismissFlagResult, FlagListResult, ListFlagsOptions, ListGlobalFlagsOptions } from './types/content-flag.dto';
|
|
15
|
+
import type { AddContentReactionOptions, AddContentReactionResult, RemoveContentReactionOptions, RemoveContentReactionResult } from './types/content-reactions.dto';
|
|
35
16
|
import type { FetchTokenStatsResult } from './types/engagement-stats.dto';
|
|
36
|
-
import type {
|
|
17
|
+
import type { AmountCalculationResult, DexAggregatedVolumeSummary, DexSeason, FetchPoolsOptions, GalaChainTokenDetails, GraduationCalculationResult, GraphDataResult, LaunchTokenData, LeaderboardResult, PoolData, PoolsResult, SaleDetailsResult, TokenBadgesResult, TokenClassWithSupply, TokenDistributionResult, TokenHolder, TokenSpotPrice, TradeQuoteParams, UserHolderContext, ValidateTokenResponse } from './types/launchpad.dto';
|
|
37
18
|
import type { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
38
|
-
import type {
|
|
19
|
+
import type { CreateMessageOptions, CreateMessageResult, DeleteMessageResult, FetchMessagesOptions, FetchMessagesResult, GetPinnedMessageResult, MessageStats, PinMessageResult, UpdateMessageOptions, UpdateMessageResult, UpdateTokenConfigOptions } from './types/messages.dto';
|
|
20
|
+
import type { ClaimModeratorInviteOptions, ClaimModeratorInviteResult, CreateModeratorInviteOptions, CreateModeratorInviteResult, GetModeratedTokensOptions, ListModeratorInvitesOptions, ModeratedTokensResult, ModeratorInviteListResult, PublicInviteInfo, UpdateInviteRoleOptions, UpdateInviteRoleResult, UpdateModeratorInviteOptions, UpdateModeratorInviteResult } from './types/moderator.dto';
|
|
21
|
+
import type { ClaimCollectionParams, ClaimCollectionResult, CreateTokenClassParams, CreateTokenClassResult, EstimateMintFeeParams, EstimateNftFeesParams, FetchTokenClassesParams, MintNftParams, MintNftResult, NftBalance, NftCollectionAuthorization, NftFeeEstimate, NftTokenClassWithSupply } from './types/nft.dto';
|
|
22
|
+
import type { GetHomeOEmbedJsonResult, GetHomeOEmbedOptions, GetPoolOEmbedJsonResult, GetPoolOEmbedOptions, GetProfileOEmbedJsonResult, GetProfileOEmbedOptions } from './types/oembed.dto';
|
|
23
|
+
import type { BanStatsResponse, CreateOverseerDirectOptions, CreateOverseerInviteOptions, FlagStatsResponse, InviteStatsResponse, ListOverseerInvitesOptions, ListOverseersOptions, ListUsersOptions, Overseer, OverseerInviteWithUrl, OverseerStatusResponse, OverseerSummaryResponse, PaginatedOverseerInvites, PaginatedOverseers, PublicOverseerInviteInfo, TokenBanStatsResponse, UsersListResponse, UserStatsResponse, UserSummaryResponse } from './types/overseer.dto';
|
|
24
|
+
import type { PlatformConfig, UpdatePlatformConfigOptions } from './types/platform-config.dto';
|
|
25
|
+
import type { GetPlatformStatsResult } from './types/platform-stats.dto';
|
|
26
|
+
import type { GetRestrictedNamesResult, UpdateRestrictedNamesRequest, UpdateRestrictedNamesResult } from './types/restricted-names.dto';
|
|
39
27
|
import type { TokenLaunchResult, TradeResult } from './types/result.types';
|
|
40
|
-
import {
|
|
41
|
-
|
|
42
|
-
import type {
|
|
43
|
-
import type {
|
|
44
|
-
import type {
|
|
45
|
-
import type {
|
|
46
|
-
import type {
|
|
47
|
-
import type {
|
|
28
|
+
import type { LoginResponse, RefreshResponse, SessionInfo } from './types/session-auth.dto';
|
|
29
|
+
import type { EngagementStatsResult, GetEngagementStatsOptions, GlobalChatStatus } from './types/stream-chat.dto';
|
|
30
|
+
import type { AddSimulcastTargetOptions, AddSimulcastTargetResult, FetchRecordingsOptions, GetStreamRoleOptions, GetTokenAccessOptions, GlobalStreamingStatus, RecordingDownloadResult, RecordingsResult, ResetStreamKeyResult, SimulcastTargetsResult, StartStreamResult, StreamCredentialsResult, StreamRoleResponse, StreamSubscribedEvent, TokenAccessResult } from './types/streaming.dto';
|
|
31
|
+
import type { BanTokenOptions, BanTokenResult, GetTokenBanOptions, ListTokenBansOptions, TokenBanListResult, TokenBanStatusResult, UnbanTokenOptions, UnbanTokenResult } from './types/token-ban.dto';
|
|
32
|
+
import type { PoolDetailsData, TradesResult } from './types/trade.dto';
|
|
33
|
+
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
34
|
+
import type { TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
35
|
+
import type { AllReferralsResult, AvailableBalanceResult, FetchReferralsOptions, FetchReferralsSummaryOptions, FetchTokenBalanceOptions, FetchUserBalancesOptions, FetchUserBalancesResult, FetchUserReportOptions, FetchUserReportResult, GetManagedTokensOptions, LockedBalanceResult, ManagedTokensResult, ReferralsResult, ReferralsSummaryResult, ReferralUrlResult, TokenBalanceResult, UpdateProfileData, UploadProfileImageOptions, UserTokenListResult } from './types/user.dto';
|
|
36
|
+
import type { BalanceUpdatedPayload, ChatMessagePayload, ChatStatusPayload, ConnectedClient, ConnectedClientsResponse, DownloadReadyPayload, FeatureStatusPayload, GetConnectedClientsOptions, ModeratorAddedPayload, ModeratorRemovedPayload, RecordingsCountUpdatedPayload, RecordingStatusPayload, SiteConfigChangedPayload, StreamCountdownPayload, StreamStatusPayload, TokenBannedPayload, TokenUnbannedPayload, TradeExecutedPayload, TypingIndicatorPayload, UserProfileUpdatedPayload, ViewerCountPayload } from './types/websocket-admin.dto';
|
|
37
|
+
import type { EngagementStatsUpdatedEvent } from './types/websocket-events.dto';
|
|
38
|
+
import type { GetTokenWeeklyHistoryOptions, GetTokenWeeklyHistoryResult, GetWeeklyChallengeOptions, GetWeeklyChallengeResult } from './types/weekly-challenge.dto';
|
|
39
|
+
import type { FetchWrappableTokensOptions, FetchWrappableTokensResult, IsTokenWrappableResult, UnwrapTokenOptions, WrappableToken, WrapTokenOptions, WrapUnwrapFeeEstimate, WrapUnwrapResult, WrapUnwrapStatusResult } from './types/wrappable-token.dto';
|
|
40
|
+
import { TransactionFailedError, WebSocketError, WebSocketTimeoutError } from './utils/websocket-errors';
|
|
41
|
+
import type { WalletProvider } from './wallet/types';
|
|
42
|
+
export { TransactionFailedError, WebSocketError, WebSocketTimeoutError, };
|
|
43
|
+
import type { CalculateDexPoolQuoteOptions, CompositePoolDataResult, DexPoolQuoteResult, FetchCompositePoolDataOptions } from './types/composite-pool.dto';
|
|
44
|
+
import type { DexPoolData, DexPoolsResult, FetchDexPoolsOptions } from './types/dex-pool.dto';
|
|
45
|
+
import type { AddLiquidityByPriceArgs, AddLiquidityByTicksArgs, AvailableDexTokensResult, CollectFeesArgs, DexToken, ExecuteSwapResult, FetchAvailableDexTokensOptions, GetLiquidityPositionsOptions, GetLiquidityPositionsResult, GSwapPosition, PoolInfo, PoolPriceData, RemoveLiquidityArgs, SwapQuoteResult, UserAsset } from './types/gswap.dto';
|
|
46
|
+
import type { GSwapAddLiquidityResult, GSwapEstimateRemoveLiquidityResult } from './types/gswap-responses.types';
|
|
48
47
|
import type { LiquidityChangedCallback, LiquidityCleanupFunction, SubscribeLiquidityOptions } from './types/liquidity-monitor.dto';
|
|
49
|
-
import type {
|
|
48
|
+
import type { BuyTokenOptions, CalculateBuyAmountForGraduationOptions, CalculateBuyAmountLocalOptions, CalculateBuyAmountOptions, CalculateSellAmountLocalOptions, CalculateSellAmountOptions, FetchTokensCreatedOptions, FetchTokensHeldOptions, FetchTokenSpotPriceParams, FetchTradesOptions, FetchVolumeDataOptions, GraduateTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions } from './types/options.dto';
|
|
49
|
+
import type { FetchPriceHistoryOptions, PriceHistoryResult } from './types/priceHistory.dto';
|
|
50
50
|
import type { GetPinnedMessageResult as LegacyGetPinnedMessageResult, PinMessageResult as LegacyPinMessageResult, UnpinMessageResult as LegacyUnpinMessageResult } from './types/stream-chat.dto';
|
|
51
|
-
import type {
|
|
51
|
+
import type { AvailableRolesResponse } from './types/streaming.dto';
|
|
52
|
+
import type { AuthenticatedEvent, BanEnforcementEvent, ChatStatusChangedEvent, ConnectionEvent, ContentFlaggedEvent, ContentReactionAddedEvent, ContentReactionRemovedEvent, DownloadReadyEvent, FlagResolvedEvent, RecordingsCountUpdatedEvent, RecordingStatusChangedEvent, RoomLeftEvent, RoomSubscribedEvent, SimulcastStatusChangedEvent, StreamChatDeletedEvent, StreamChatMessageEvent, StreamChatPinnedEvent, StreamChatUnpinnedEvent, StreamChatUpdatedEvent, StreamControlStatusChangedEvent, StreamCountdownUpdatedEvent, StreamLanguageUpdatedEvent, StreamReactionEvent, StreamStatusChangedEvent, TokenSubscribedEvent, TokenUnsubscribedEvent, UserBannedEvent, UserTypingEvent, UserUnbannedEvent, ViewerCountChangedEvent } from './types/streaming-events.dto';
|
|
53
|
+
import type { CleanupFunction, SubscribeSwapOptions, SwapEventCallback, SwapMonitorConfig } from './types/swap-monitor.dto';
|
|
52
54
|
/**
|
|
53
55
|
* Configuration for initializing the Launchpad SDK
|
|
54
56
|
*
|
|
@@ -84,11 +86,19 @@ import type { StreamStatusChangedEvent, UserBannedEvent, UserUnbannedEvent, BanE
|
|
|
84
86
|
* Contains configuration values excluding sensitive wallet data
|
|
85
87
|
* @since 4.0.20
|
|
86
88
|
*/
|
|
87
|
-
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet'> & {
|
|
89
|
+
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet' | 'walletProvider' | 'streamAdminApiKey' | 'userApiKey' | 'accessToken' | 'headers'> & {
|
|
88
90
|
/** Current environment (STAGE or PROD) */
|
|
89
91
|
environment: 'STAGE' | 'PROD';
|
|
90
92
|
/** GalaChain gas fee in GALA (fixed at "1" GALA) */
|
|
91
93
|
gasFee: string;
|
|
94
|
+
/** Stream admin API key presence indicator — always '[REDACTED]' if configured */
|
|
95
|
+
streamAdminApiKey?: '[REDACTED]';
|
|
96
|
+
/** User API key presence indicator — always '[REDACTED]' if configured */
|
|
97
|
+
userApiKey?: '[REDACTED]';
|
|
98
|
+
/** Access token presence indicator — always '[REDACTED]' if configured */
|
|
99
|
+
accessToken?: '[REDACTED]';
|
|
100
|
+
/** Custom header keys with values always '[REDACTED]' */
|
|
101
|
+
headers?: Record<string, '[REDACTED]'>;
|
|
92
102
|
};
|
|
93
103
|
export interface LaunchpadSDKConfig extends SDKConfig {
|
|
94
104
|
/**
|
|
@@ -384,8 +394,8 @@ export declare class LaunchpadSDK {
|
|
|
384
394
|
private _weeklyChallengeService;
|
|
385
395
|
private _oembedService;
|
|
386
396
|
private _platformStatsService;
|
|
387
|
-
private readonly galaChainClient;
|
|
388
397
|
private readonly nftCollectionService;
|
|
398
|
+
private readonly tradingQuotesService;
|
|
389
399
|
private readonly launchpadAPI;
|
|
390
400
|
constructor(config: LaunchpadSDKConfig);
|
|
391
401
|
/**
|
|
@@ -1146,7 +1156,126 @@ export declare class LaunchpadSDK {
|
|
|
1146
1156
|
* console.log(`Found ${whales.length} whales with >5% ownership`);
|
|
1147
1157
|
* ```
|
|
1148
1158
|
*/
|
|
1149
|
-
fetchTokenDistribution(tokenName: string): Promise<
|
|
1159
|
+
fetchTokenDistribution(tokenName: string): Promise<TokenDistributionResult>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Get the top N token holders by balance
|
|
1162
|
+
*
|
|
1163
|
+
* Convenience wrapper around `fetchTokenDistribution()` that returns the top
|
|
1164
|
+
* holders sorted by balance descending, each enriched with their rank.
|
|
1165
|
+
*
|
|
1166
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1167
|
+
* @param limit - Number of top holders to return (default: 10, max: 100)
|
|
1168
|
+
* @returns Array of top holders with address, balance, percentage, and rank
|
|
1169
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1170
|
+
* @since 9.2.0
|
|
1171
|
+
* @category Token Information
|
|
1172
|
+
*
|
|
1173
|
+
* @example
|
|
1174
|
+
* ```typescript
|
|
1175
|
+
* const topHolders = await sdk.getTopHolders('anime', 5);
|
|
1176
|
+
* topHolders.forEach(h => console.log(`#${h.rank} ${h.address}: ${h.balance} (${h.percentage}%)`));
|
|
1177
|
+
* ```
|
|
1178
|
+
*/
|
|
1179
|
+
getTopHolders(tokenName: string, limit?: number): Promise<Array<TokenHolder & {
|
|
1180
|
+
rank: number;
|
|
1181
|
+
}>>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Get the total holder count and combined balance for a token
|
|
1184
|
+
*
|
|
1185
|
+
* Convenience wrapper around `fetchTokenDistribution()`.
|
|
1186
|
+
*
|
|
1187
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1188
|
+
* @returns Object with count (number of holders) and totalBalance (total supply across all holders)
|
|
1189
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1190
|
+
* @since 9.2.0
|
|
1191
|
+
* @category Token Information
|
|
1192
|
+
*
|
|
1193
|
+
* @example
|
|
1194
|
+
* ```typescript
|
|
1195
|
+
* const { count, totalBalance } = await sdk.getHolderCount('anime');
|
|
1196
|
+
* console.log(`${count} holders, total supply: ${totalBalance}`);
|
|
1197
|
+
* ```
|
|
1198
|
+
*/
|
|
1199
|
+
getHolderCount(tokenName: string): Promise<{
|
|
1200
|
+
count: number;
|
|
1201
|
+
totalBalance: string;
|
|
1202
|
+
}>;
|
|
1203
|
+
/**
|
|
1204
|
+
* Get a user's holder rank and balance for a token
|
|
1205
|
+
*
|
|
1206
|
+
* Returns the user's position in the holder distribution (rank 1 = largest holder),
|
|
1207
|
+
* their balance, and the total holder count. Returns null if the user holds no tokens.
|
|
1208
|
+
*
|
|
1209
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1210
|
+
* @param userAddress - User's wallet address (eth|... format)
|
|
1211
|
+
* @returns Rank info or null if user is not a holder
|
|
1212
|
+
* @throws {ValidationError} If tokenName or userAddress is invalid
|
|
1213
|
+
* @since 9.2.0
|
|
1214
|
+
* @category Token Information
|
|
1215
|
+
*
|
|
1216
|
+
* @example
|
|
1217
|
+
* ```typescript
|
|
1218
|
+
* const rank = await sdk.getHolderRank('anime', 'eth|0x1234...');
|
|
1219
|
+
* if (rank) {
|
|
1220
|
+
* console.log(`Rank #${rank.rank} of ${rank.holderCount} holders, balance: ${rank.balance}`);
|
|
1221
|
+
* }
|
|
1222
|
+
* ```
|
|
1223
|
+
*/
|
|
1224
|
+
getHolderRank(tokenName: string, userAddress: string): Promise<{
|
|
1225
|
+
rank: number;
|
|
1226
|
+
balance: string;
|
|
1227
|
+
holderCount: number;
|
|
1228
|
+
} | null>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Get holders within a specific balance range
|
|
1231
|
+
*
|
|
1232
|
+
* Convenience wrapper around `fetchTokenDistribution()` that filters holders
|
|
1233
|
+
* by balance and returns them enriched with their rank.
|
|
1234
|
+
*
|
|
1235
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1236
|
+
* @param options - Filter options
|
|
1237
|
+
* @param options.minBalance - Minimum balance (no floor if omitted)
|
|
1238
|
+
* @param options.maxBalance - Maximum balance (no ceiling if omitted)
|
|
1239
|
+
* @param options.limit - Maximum results to return (default: 100, max: 1000)
|
|
1240
|
+
* @returns Filtered holders with rank
|
|
1241
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1242
|
+
* @since 9.2.0
|
|
1243
|
+
* @category Token Information
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```typescript
|
|
1247
|
+
* const whales = await sdk.getHoldersByBalance('anime', { minBalance: 10000 });
|
|
1248
|
+
* console.log(`${whales.length} whales hold ≥10,000 tokens`);
|
|
1249
|
+
* ```
|
|
1250
|
+
*/
|
|
1251
|
+
getHoldersByBalance(tokenName: string, options?: {
|
|
1252
|
+
minBalance?: number;
|
|
1253
|
+
maxBalance?: number;
|
|
1254
|
+
limit?: number;
|
|
1255
|
+
}): Promise<Array<TokenHolder & {
|
|
1256
|
+
rank: number;
|
|
1257
|
+
}>>;
|
|
1258
|
+
/**
|
|
1259
|
+
* Get recent trade history for a specific holder
|
|
1260
|
+
*
|
|
1261
|
+
* Returns trades that affected a user's holdings for a token, delegating to
|
|
1262
|
+
* `getTrades()` with userAddress and tokenName filters.
|
|
1263
|
+
*
|
|
1264
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1265
|
+
* @param userAddress - Holder's wallet address
|
|
1266
|
+
* @param limit - Number of recent trades to return (default: 20, max: 100)
|
|
1267
|
+
* @returns Paginated trade history result
|
|
1268
|
+
* @throws {ValidationError} If tokenName or userAddress is invalid
|
|
1269
|
+
* @since 9.2.0
|
|
1270
|
+
* @category Trades
|
|
1271
|
+
*
|
|
1272
|
+
* @example
|
|
1273
|
+
* ```typescript
|
|
1274
|
+
* const history = await sdk.getHolderHistory('anime', 'eth|0x1234...', 10);
|
|
1275
|
+
* history.trades.forEach(t => console.log(`${t.txnType}: ${t.inputAmount} → ${t.outputAmount}`));
|
|
1276
|
+
* ```
|
|
1277
|
+
*/
|
|
1278
|
+
getHolderHistory(tokenName: string, userAddress: string, limit?: number): Promise<TradesQueryResult>;
|
|
1150
1279
|
/**
|
|
1151
1280
|
* Fetch a user's holder context for a specific token
|
|
1152
1281
|
*
|
|
@@ -1173,7 +1302,7 @@ export declare class LaunchpadSDK {
|
|
|
1173
1302
|
* }
|
|
1174
1303
|
* ```
|
|
1175
1304
|
*/
|
|
1176
|
-
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<
|
|
1305
|
+
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<UserHolderContext>;
|
|
1177
1306
|
/**
|
|
1178
1307
|
* Fetch token achievement badges and metadata
|
|
1179
1308
|
*
|
|
@@ -1197,7 +1326,7 @@ export declare class LaunchpadSDK {
|
|
|
1197
1326
|
* });
|
|
1198
1327
|
* ```
|
|
1199
1328
|
*/
|
|
1200
|
-
fetchTokenBadges(tokenName: string): Promise<
|
|
1329
|
+
fetchTokenBadges(tokenName: string): Promise<TokenBadgesResult>;
|
|
1201
1330
|
/**
|
|
1202
1331
|
* Fetch USD spot price for any token with smart routing
|
|
1203
1332
|
*
|
|
@@ -1658,7 +1787,7 @@ export declare class LaunchpadSDK {
|
|
|
1658
1787
|
* console.log(`January volume: ${volumeData.reduce((sum, p) => sum + p.volume, 0)}`);
|
|
1659
1788
|
* ```
|
|
1660
1789
|
*/
|
|
1661
|
-
fetchVolumeData(options: FetchVolumeDataOptions): Promise<
|
|
1790
|
+
fetchVolumeData(options: FetchVolumeDataOptions): Promise<GraphDataResult>;
|
|
1662
1791
|
/**
|
|
1663
1792
|
* Fetch trade history with optional filters and pagination
|
|
1664
1793
|
*
|
|
@@ -1712,7 +1841,7 @@ export declare class LaunchpadSDK {
|
|
|
1712
1841
|
* console.log(`My January trades: ${myTrades.total}`);
|
|
1713
1842
|
* ```
|
|
1714
1843
|
*/
|
|
1715
|
-
fetchTrades(options: FetchTradesOptions): Promise<
|
|
1844
|
+
fetchTrades(options: FetchTradesOptions): Promise<TradesResult>;
|
|
1716
1845
|
/**
|
|
1717
1846
|
* Fetch GALA token balance for a wallet address
|
|
1718
1847
|
*
|
|
@@ -2733,21 +2862,21 @@ export declare class LaunchpadSDK {
|
|
|
2733
2862
|
* of a cross-channel wrap or unwrap operation.
|
|
2734
2863
|
*
|
|
2735
2864
|
* @param transactionId - Transaction ID from wrap/unwrap result
|
|
2736
|
-
* @returns
|
|
2865
|
+
* @returns Transaction status
|
|
2737
2866
|
*
|
|
2738
2867
|
* @since 4.0.18
|
|
2739
2868
|
* @category Wrap/Unwrap
|
|
2740
2869
|
*
|
|
2741
2870
|
* @example Check wrap status
|
|
2742
2871
|
* ```typescript
|
|
2743
|
-
* const status =
|
|
2872
|
+
* const status = sdk.getWrapStatus(result.transactionId);
|
|
2744
2873
|
* console.log(`Status: ${status.status}`);
|
|
2745
2874
|
* if (status.status === 'completed') {
|
|
2746
2875
|
* console.log(`Completed at: ${new Date(status.completedAt)}`);
|
|
2747
2876
|
* }
|
|
2748
2877
|
* ```
|
|
2749
2878
|
*/
|
|
2750
|
-
getWrapStatus(transactionId: string):
|
|
2879
|
+
getWrapStatus(transactionId: string): WrapUnwrapStatusResult;
|
|
2751
2880
|
/**
|
|
2752
2881
|
* Login with wallet signature to get JWT token.
|
|
2753
2882
|
*
|
|
@@ -2811,8 +2940,12 @@ export declare class LaunchpadSDK {
|
|
|
2811
2940
|
/**
|
|
2812
2941
|
* Logout and clear the JWT token.
|
|
2813
2942
|
*
|
|
2814
|
-
*
|
|
2815
|
-
* endpoints will fail until login() is called again.
|
|
2943
|
+
* Clears the client-side JWT and optionally revokes all active sessions on the server.
|
|
2944
|
+
* Future calls to JWT-protected endpoints will fail until login() is called again.
|
|
2945
|
+
*
|
|
2946
|
+
* @param options - Optional logout configuration
|
|
2947
|
+
* @param options.allDevices - If true, revokes all active sessions server-side (requires valid JWT)
|
|
2948
|
+
* @returns Promise that resolves when logout is complete
|
|
2816
2949
|
*
|
|
2817
2950
|
* @since 5.2.0
|
|
2818
2951
|
* @category Authentication
|
|
@@ -2820,11 +2953,19 @@ export declare class LaunchpadSDK {
|
|
|
2820
2953
|
* @example Clean logout
|
|
2821
2954
|
* ```typescript
|
|
2822
2955
|
* // ... do work ...
|
|
2823
|
-
* sdk.logout();
|
|
2956
|
+
* await sdk.logout();
|
|
2824
2957
|
* console.log('Logged out');
|
|
2825
2958
|
* ```
|
|
2959
|
+
*
|
|
2960
|
+
* @example Logout from all devices
|
|
2961
|
+
* ```typescript
|
|
2962
|
+
* await sdk.logout({ allDevices: true });
|
|
2963
|
+
* console.log('Logged out from all devices');
|
|
2964
|
+
* ```
|
|
2826
2965
|
*/
|
|
2827
|
-
logout(
|
|
2966
|
+
logout(options?: {
|
|
2967
|
+
allDevices?: boolean;
|
|
2968
|
+
}): Promise<void>;
|
|
2828
2969
|
/**
|
|
2829
2970
|
* Check if user is authenticated with valid JWT.
|
|
2830
2971
|
*
|
|
@@ -4164,6 +4305,24 @@ export declare class LaunchpadSDK {
|
|
|
4164
4305
|
* @since 5.7.0
|
|
4165
4306
|
*/
|
|
4166
4307
|
updateModeratorInviteRole(options: UpdateInviteRoleOptions): Promise<UpdateInviteRoleResult>;
|
|
4308
|
+
/**
|
|
4309
|
+
* Update a moderator invite's role and/or description (owner only).
|
|
4310
|
+
*
|
|
4311
|
+
* @param options - Update options including inviteId, optional role, and optional description
|
|
4312
|
+
* @returns The updated invite
|
|
4313
|
+
*
|
|
4314
|
+
* @example
|
|
4315
|
+
* ```typescript
|
|
4316
|
+
* const result = await sdk.updateModeratorInvite({
|
|
4317
|
+
* inviteId: 123,
|
|
4318
|
+
* description: 'John - handles Friday evening streams'
|
|
4319
|
+
* });
|
|
4320
|
+
* console.log('Updated description:', result.invite.description);
|
|
4321
|
+
* ```
|
|
4322
|
+
*
|
|
4323
|
+
* @since 5.0.4-beta.60
|
|
4324
|
+
*/
|
|
4325
|
+
updateModeratorInvite(options: UpdateModeratorInviteOptions): Promise<UpdateModeratorInviteResult>;
|
|
4167
4326
|
/**
|
|
4168
4327
|
* Get invite details by code (public endpoint).
|
|
4169
4328
|
*
|
|
@@ -4766,6 +4925,39 @@ export declare class LaunchpadSDK {
|
|
|
4766
4925
|
* ```
|
|
4767
4926
|
*/
|
|
4768
4927
|
flushAllCache(confirm: true): Promise<FlushResult>;
|
|
4928
|
+
/**
|
|
4929
|
+
* Flush wallet-alias cache entries.
|
|
4930
|
+
*
|
|
4931
|
+
* Clears the cached eth| → client| alias resolution for the given address,
|
|
4932
|
+
* or ALL wallet-alias entries if no address is provided.
|
|
4933
|
+
*
|
|
4934
|
+
* Use this when a user's login returns a stale `eth|` address even though
|
|
4935
|
+
* they have a `client|` alias on GalaChain. After flushing, the next login
|
|
4936
|
+
* will re-resolve the alias from the GalaChain public-key contract.
|
|
4937
|
+
*
|
|
4938
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4939
|
+
*
|
|
4940
|
+
* @param address - Optional. Wallet address (eth| or 0x format) to flush.
|
|
4941
|
+
* If omitted, ALL wallet-alias entries are flushed.
|
|
4942
|
+
* @returns Flush result with count and duration
|
|
4943
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4944
|
+
*
|
|
4945
|
+
* @since 8.x.0
|
|
4946
|
+
* @category Cache Management
|
|
4947
|
+
*
|
|
4948
|
+
* @example Flush alias for a single address
|
|
4949
|
+
* ```typescript
|
|
4950
|
+
* const result = await sdk.flushWalletAliasCache('eth|dc1783...');
|
|
4951
|
+
* console.log(`Flushed ${result.flushedCount} alias entries in ${result.duration}ms`);
|
|
4952
|
+
* ```
|
|
4953
|
+
*
|
|
4954
|
+
* @example Flush all wallet alias entries
|
|
4955
|
+
* ```typescript
|
|
4956
|
+
* const result = await sdk.flushWalletAliasCache();
|
|
4957
|
+
* console.log(`Flushed ${result.flushedCount} alias entries in ${result.duration}ms`);
|
|
4958
|
+
* ```
|
|
4959
|
+
*/
|
|
4960
|
+
flushWalletAliasCache(address?: string): Promise<FlushResult>;
|
|
4769
4961
|
/**
|
|
4770
4962
|
* Emit a trade execution event to token subscribers (admin/overseer only)
|
|
4771
4963
|
*
|
|
@@ -6164,6 +6356,118 @@ export declare class LaunchpadSDK {
|
|
|
6164
6356
|
* ```
|
|
6165
6357
|
*/
|
|
6166
6358
|
getTrades(options: GetTradesOptions): Promise<TradesQueryResult>;
|
|
6359
|
+
/**
|
|
6360
|
+
* Get the most recently executed trades with optional filtering
|
|
6361
|
+
*
|
|
6362
|
+
* Convenience wrapper around `getTrades()` for quick access to recent market
|
|
6363
|
+
* activity. Returns trades sorted by newest first.
|
|
6364
|
+
*
|
|
6365
|
+
* @param tokenName - Filter by token name (optional)
|
|
6366
|
+
* @param limit - Number of recent trades to return (default: 50, max: 500)
|
|
6367
|
+
* @returns Paginated list of recent trades
|
|
6368
|
+
* @throws {NetworkError} If API request fails
|
|
6369
|
+
* @since 9.2.0
|
|
6370
|
+
* @category Trades
|
|
6371
|
+
*
|
|
6372
|
+
* @example Get recent trades across all tokens
|
|
6373
|
+
* ```typescript
|
|
6374
|
+
* const { trades } = await sdk.getRecentTrades();
|
|
6375
|
+
* trades.forEach(t => console.log(`${t.tokenName} ${t.txnType}: ${t.inputAmount} → ${t.outputAmount}`));
|
|
6376
|
+
* ```
|
|
6377
|
+
*
|
|
6378
|
+
* @example Get recent trades for a specific token
|
|
6379
|
+
* ```typescript
|
|
6380
|
+
* const { trades } = await sdk.getRecentTrades('anime', 10);
|
|
6381
|
+
* console.log(`Last 10 anime trades`);
|
|
6382
|
+
* ```
|
|
6383
|
+
*/
|
|
6384
|
+
getRecentTrades(tokenName?: string, limit?: number): Promise<TradesQueryResult>;
|
|
6385
|
+
/**
|
|
6386
|
+
* Fetch the current launchpad fee via backend proxy (cached 1 hour).
|
|
6387
|
+
*
|
|
6388
|
+
* **Faster alternative to `GalaChainService.fetchLaunchTokenFee()`** — no chain call.
|
|
6389
|
+
*
|
|
6390
|
+
* @returns Promise resolving to the fee amount in GALA (number)
|
|
6391
|
+
*
|
|
6392
|
+
* @category Main SDK
|
|
6393
|
+
* @since 9.1.0
|
|
6394
|
+
*
|
|
6395
|
+
* @example
|
|
6396
|
+
* ```typescript
|
|
6397
|
+
* const fee = await sdk.fetchLaunchpadFee();
|
|
6398
|
+
* console.log(`Current launchpad fee: ${fee} GALA`);
|
|
6399
|
+
* ```
|
|
6400
|
+
*/
|
|
6401
|
+
fetchLaunchpadFee(): Promise<number>;
|
|
6402
|
+
/**
|
|
6403
|
+
* Fetch sale details (supply, status) for a token via backend proxy (cached 10 seconds).
|
|
6404
|
+
*
|
|
6405
|
+
* **Simpler alternative to `GalaChainService.fetchPoolDetails()`** — uses tokenName instead
|
|
6406
|
+
* of vaultAddress. The backend resolves the vaultAddress internally.
|
|
6407
|
+
*
|
|
6408
|
+
* @param tokenName Token name (e.g. 'anime')
|
|
6409
|
+
* @returns Promise resolving to sale details including supply, quantities, and status
|
|
6410
|
+
*
|
|
6411
|
+
* @category Main SDK
|
|
6412
|
+
* @since 9.1.0
|
|
6413
|
+
*
|
|
6414
|
+
* @example
|
|
6415
|
+
* ```typescript
|
|
6416
|
+
* const details = await sdk.fetchSaleDetails('anime');
|
|
6417
|
+
* console.log(`Supply: ${details.sellingTokenQuantity} / ${details.maxSupply}`);
|
|
6418
|
+
* console.log(`Status: ${details.saleStatus}`);
|
|
6419
|
+
* ```
|
|
6420
|
+
*/
|
|
6421
|
+
fetchSaleDetails(tokenName: string): Promise<SaleDetailsResult>;
|
|
6422
|
+
/**
|
|
6423
|
+
* Calculate a trade quote via the backend using local bonding curve math (no chain call).
|
|
6424
|
+
*
|
|
6425
|
+
* **Instant alternative to `calculateBuyAmountExternal()` / `calculateSellAmountExternal()`**.
|
|
6426
|
+
* The backend uses its local bonding curve math — no GalaChain network request.
|
|
6427
|
+
*
|
|
6428
|
+
* @param params Quote parameters
|
|
6429
|
+
* @param params.tokenName Token name (e.g. 'anime')
|
|
6430
|
+
* @param params.amount Amount as a decimal string
|
|
6431
|
+
* @param params.type 'MEME' (launchpad token) or 'NATIVE' (GALA)
|
|
6432
|
+
* @param params.method 'IN' (spend this amount) or 'OUT' (receive this amount)
|
|
6433
|
+
* @returns Promise resolving to amount calculation result with fees
|
|
6434
|
+
*
|
|
6435
|
+
* @category Main SDK
|
|
6436
|
+
* @since 9.1.0
|
|
6437
|
+
*
|
|
6438
|
+
* @example Buy: how many tokens for 100 GALA?
|
|
6439
|
+
* ```typescript
|
|
6440
|
+
* const quote = await sdk.getTradeQuote({
|
|
6441
|
+
* tokenName: 'anime',
|
|
6442
|
+
* amount: '100',
|
|
6443
|
+
* type: 'NATIVE',
|
|
6444
|
+
* method: 'IN',
|
|
6445
|
+
* });
|
|
6446
|
+
* console.log(`You will receive: ${quote.amount} tokens`);
|
|
6447
|
+
* console.log(`Fee: ${quote.reverseBondingCurveFee} GALA`);
|
|
6448
|
+
* ```
|
|
6449
|
+
*/
|
|
6450
|
+
getTradeQuote(params: TradeQuoteParams): Promise<AmountCalculationResult>;
|
|
6451
|
+
/**
|
|
6452
|
+
* Calculate a pre-mint token output for a given GALA amount (supply = 0 assumed).
|
|
6453
|
+
*
|
|
6454
|
+
* Used during the token creation flow. The backend assumes supply = 0 and computes
|
|
6455
|
+
* via local bonding curve math — no chain call required.
|
|
6456
|
+
*
|
|
6457
|
+
* @param amount GALA amount to spend (as a decimal string, e.g. '100')
|
|
6458
|
+
* @returns Promise resolving to amount calculation result with fees
|
|
6459
|
+
*
|
|
6460
|
+
* @category Main SDK
|
|
6461
|
+
* @since 9.1.0
|
|
6462
|
+
*
|
|
6463
|
+
* @example
|
|
6464
|
+
* ```typescript
|
|
6465
|
+
* const quote = await sdk.getPremintQuote('500');
|
|
6466
|
+
* console.log(`Initial purchase will yield: ${quote.amount} tokens`);
|
|
6467
|
+
* console.log(`Transaction fee: ${quote.transactionFee} GALA`);
|
|
6468
|
+
* ```
|
|
6469
|
+
*/
|
|
6470
|
+
getPremintQuote(amount: string): Promise<AmountCalculationResult>;
|
|
6167
6471
|
/**
|
|
6168
6472
|
* Connect to the stream WebSocket server.
|
|
6169
6473
|
*
|
|
@@ -6236,7 +6540,7 @@ export declare class LaunchpadSDK {
|
|
|
6236
6540
|
* // Events will now fire for 'mytoken'
|
|
6237
6541
|
* ```
|
|
6238
6542
|
*/
|
|
6239
|
-
subscribeToStream(tokenName: string): Promise<StreamSubscribedEvent>;
|
|
6543
|
+
subscribeToStream(tokenName: string, callbacks?: StreamEventCallbacks): Promise<StreamSubscribedEvent>;
|
|
6240
6544
|
/**
|
|
6241
6545
|
* Unsubscribe from a stream's events.
|
|
6242
6546
|
*
|
|
@@ -6249,7 +6553,7 @@ export declare class LaunchpadSDK {
|
|
|
6249
6553
|
* @since 5.1.0
|
|
6250
6554
|
* @category WebSocket
|
|
6251
6555
|
*/
|
|
6252
|
-
unsubscribeFromStream(tokenName: string):
|
|
6556
|
+
unsubscribeFromStream(tokenName: string): void;
|
|
6253
6557
|
/**
|
|
6254
6558
|
* Send a chat message via WebSocket.
|
|
6255
6559
|
*
|
|
@@ -6272,7 +6576,7 @@ export declare class LaunchpadSDK {
|
|
|
6272
6576
|
* await sdk.sendStreamChatViaWebSocket('mytoken', 'Hello!');
|
|
6273
6577
|
* ```
|
|
6274
6578
|
*/
|
|
6275
|
-
sendStreamChatViaWebSocket(tokenName: string, content: string):
|
|
6579
|
+
sendStreamChatViaWebSocket(tokenName: string, content: string): void;
|
|
6276
6580
|
/**
|
|
6277
6581
|
* Send an ephemeral emoji reaction to a live stream.
|
|
6278
6582
|
*
|
|
@@ -6298,10 +6602,10 @@ export declare class LaunchpadSDK {
|
|
|
6298
6602
|
*
|
|
6299
6603
|
* // Send a heart reaction at current stream position
|
|
6300
6604
|
* const currentTime = player.getCurrentTime(); // from MuxPlayer
|
|
6301
|
-
*
|
|
6605
|
+
* sdk.sendStreamReaction('mytoken', '❤️', currentTime);
|
|
6302
6606
|
* ```
|
|
6303
6607
|
*/
|
|
6304
|
-
sendStreamReaction(tokenName: string, emoji: string, streamTime?: number):
|
|
6608
|
+
sendStreamReaction(tokenName: string, emoji: string, streamTime?: number): void;
|
|
6305
6609
|
/**
|
|
6306
6610
|
* Send a typing indicator start event to a stream chat.
|
|
6307
6611
|
*
|
|
@@ -6682,6 +6986,28 @@ export declare class LaunchpadSDK {
|
|
|
6682
6986
|
* @category WebSocket
|
|
6683
6987
|
*/
|
|
6684
6988
|
onRoomLeft(callback: (event: RoomLeftEvent) => void | Promise<void>): () => void;
|
|
6989
|
+
/**
|
|
6990
|
+
* Subscribe to engagement stats update events
|
|
6991
|
+
*
|
|
6992
|
+
* Fires after the chat flush job processes messages for a stream, containing
|
|
6993
|
+
* updated chat message counts and comment counts for the token.
|
|
6994
|
+
* Broadcast to the token room every ~15 seconds when chat activity occurs.
|
|
6995
|
+
*
|
|
6996
|
+
* @param callback - Handler for engagement stats updated events
|
|
6997
|
+
* @returns Unsubscribe function
|
|
6998
|
+
*
|
|
6999
|
+
* @since 8.5.0
|
|
7000
|
+
* @category WebSocket
|
|
7001
|
+
*
|
|
7002
|
+
* @example
|
|
7003
|
+
* ```typescript
|
|
7004
|
+
* const unsubscribe = sdk.onEngagementStatsUpdated((event) => {
|
|
7005
|
+
* console.log(`${event.tokenName}: ${event.chat.messageCount} chat messages`);
|
|
7006
|
+
* console.log(`Comments: ${event.comments.count} from ${event.comments.uniqueCommenters} users`);
|
|
7007
|
+
* });
|
|
7008
|
+
* ```
|
|
7009
|
+
*/
|
|
7010
|
+
onEngagementStatsUpdated(callback: (event: EngagementStatsUpdatedEvent) => void): () => void;
|
|
6685
7011
|
/**
|
|
6686
7012
|
* Estimate bridge fees for a cross-chain transfer.
|
|
6687
7013
|
*
|
|
@@ -6850,14 +7176,7 @@ export declare class LaunchpadSDK {
|
|
|
6850
7176
|
* });
|
|
6851
7177
|
* ```
|
|
6852
7178
|
*/
|
|
6853
|
-
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<TokenBalanceResult |
|
|
6854
|
-
quantity: unknown;
|
|
6855
|
-
collection: string;
|
|
6856
|
-
category: string;
|
|
6857
|
-
tokenId: string;
|
|
6858
|
-
symbol: string;
|
|
6859
|
-
name: string;
|
|
6860
|
-
} | null>;
|
|
7179
|
+
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<TokenBalanceResult | null>;
|
|
6861
7180
|
/**
|
|
6862
7181
|
* Fetch only locked balance for a token
|
|
6863
7182
|
*
|
|
@@ -6971,7 +7290,7 @@ export declare class LaunchpadSDK {
|
|
|
6971
7290
|
* });
|
|
6972
7291
|
* ```
|
|
6973
7292
|
*/
|
|
6974
|
-
calculateBuyAmount(options: CalculateBuyAmountOptions): Promise<
|
|
7293
|
+
calculateBuyAmount(options: CalculateBuyAmountOptions): Promise<AmountCalculationResult>;
|
|
6975
7294
|
/**
|
|
6976
7295
|
* Calculate sell amount for a token sale with automatic mode selection
|
|
6977
7296
|
*
|
|
@@ -7037,7 +7356,7 @@ export declare class LaunchpadSDK {
|
|
|
7037
7356
|
* // Instant local calculation - no network calls
|
|
7038
7357
|
* ```
|
|
7039
7358
|
*/
|
|
7040
|
-
calculateSellAmount(options: CalculateSellAmountOptions): Promise<
|
|
7359
|
+
calculateSellAmount(options: CalculateSellAmountOptions): Promise<AmountCalculationResult>;
|
|
7041
7360
|
/**
|
|
7042
7361
|
* Calculate buy amount locally using bonding curve formula
|
|
7043
7362
|
*
|
|
@@ -7078,7 +7397,7 @@ export declare class LaunchpadSDK {
|
|
|
7078
7397
|
* console.log('Tokens received:', result.amount);
|
|
7079
7398
|
* ```
|
|
7080
7399
|
*/
|
|
7081
|
-
calculateBuyAmountLocal(options: CalculateBuyAmountLocalOptions): Promise<
|
|
7400
|
+
calculateBuyAmountLocal(options: CalculateBuyAmountLocalOptions): Promise<AmountCalculationResult>;
|
|
7082
7401
|
/**
|
|
7083
7402
|
* Calculate sell amount locally using bonding curve formula
|
|
7084
7403
|
*
|
|
@@ -7120,7 +7439,7 @@ export declare class LaunchpadSDK {
|
|
|
7120
7439
|
* console.log('Tokens to sell:', result.amount);
|
|
7121
7440
|
* ```
|
|
7122
7441
|
*/
|
|
7123
|
-
calculateSellAmountLocal(options: CalculateSellAmountLocalOptions): Promise<
|
|
7442
|
+
calculateSellAmountLocal(options: CalculateSellAmountLocalOptions): Promise<AmountCalculationResult>;
|
|
7124
7443
|
/**
|
|
7125
7444
|
* Calculate buy amount using external GalaChain call
|
|
7126
7445
|
*
|
|
@@ -7128,6 +7447,10 @@ export declare class LaunchpadSDK {
|
|
|
7128
7447
|
* Always returns fresh calculations based on current blockchain state.
|
|
7129
7448
|
* Use when you want guaranteed accuracy but don't mind network latency.
|
|
7130
7449
|
*
|
|
7450
|
+
* @deprecated Use `getTradeQuote()` instead — it uses the backend-proxy for instant
|
|
7451
|
+
* calculations without a direct GalaChain call. The defi-backend has removed direct
|
|
7452
|
+
* chain quote endpoints in favour of the backend-proxy approach.
|
|
7453
|
+
*
|
|
7131
7454
|
* @param options Buy amount calculation options
|
|
7132
7455
|
* @returns Promise<AmountCalculationResult> Calculated amount and fees from GalaChain
|
|
7133
7456
|
* @throws NetworkError if API request fails
|
|
@@ -7138,7 +7461,7 @@ export declare class LaunchpadSDK {
|
|
|
7138
7461
|
tokenName: string;
|
|
7139
7462
|
amount: string;
|
|
7140
7463
|
type: 'native' | 'exact';
|
|
7141
|
-
}): Promise<
|
|
7464
|
+
}): Promise<AmountCalculationResult>;
|
|
7142
7465
|
/**
|
|
7143
7466
|
* Calculate sell amount using external GalaChain call
|
|
7144
7467
|
*
|
|
@@ -7146,6 +7469,10 @@ export declare class LaunchpadSDK {
|
|
|
7146
7469
|
* Always returns fresh calculations based on current blockchain state.
|
|
7147
7470
|
* Use when you want guaranteed accuracy but don't mind network latency.
|
|
7148
7471
|
*
|
|
7472
|
+
* @deprecated Use `getTradeQuote()` instead — it uses the backend-proxy for instant
|
|
7473
|
+
* calculations without a direct GalaChain call. The defi-backend has removed direct
|
|
7474
|
+
* chain quote endpoints in favour of the backend-proxy approach.
|
|
7475
|
+
*
|
|
7149
7476
|
* @param options Sell amount calculation options
|
|
7150
7477
|
* @returns Promise<AmountCalculationResult> Calculated amount and fees from GalaChain
|
|
7151
7478
|
* @throws NetworkError if API request fails
|
|
@@ -7156,7 +7483,7 @@ export declare class LaunchpadSDK {
|
|
|
7156
7483
|
tokenName: string;
|
|
7157
7484
|
amount: string;
|
|
7158
7485
|
type: 'native' | 'exact';
|
|
7159
|
-
}): Promise<
|
|
7486
|
+
}): Promise<AmountCalculationResult>;
|
|
7160
7487
|
/**
|
|
7161
7488
|
* Calculate buy amount needed to graduate a token pool
|
|
7162
7489
|
*
|
|
@@ -7189,7 +7516,7 @@ export declare class LaunchpadSDK {
|
|
|
7189
7516
|
* });
|
|
7190
7517
|
* ```
|
|
7191
7518
|
*/
|
|
7192
|
-
calculateBuyAmountForGraduation(tokenNameOrOptions: string | CalculateBuyAmountForGraduationOptions): Promise<
|
|
7519
|
+
calculateBuyAmountForGraduation(tokenNameOrOptions: string | CalculateBuyAmountForGraduationOptions): Promise<GraduationCalculationResult>;
|
|
7193
7520
|
/**
|
|
7194
7521
|
* Graduate a token pool by buying all remaining tokens
|
|
7195
7522
|
*
|
|
@@ -7268,7 +7595,7 @@ export declare class LaunchpadSDK {
|
|
|
7268
7595
|
* });
|
|
7269
7596
|
* ```
|
|
7270
7597
|
*/
|
|
7271
|
-
calculateInitialBuyAmount(nativeTokenQuantity: string): Promise<
|
|
7598
|
+
calculateInitialBuyAmount(nativeTokenQuantity: string): Promise<AmountCalculationResult>;
|
|
7272
7599
|
/**
|
|
7273
7600
|
* Buy tokens with blockchain confirmation and WebSocket monitoring
|
|
7274
7601
|
*
|
|
@@ -7452,7 +7779,7 @@ export declare class LaunchpadSDK {
|
|
|
7452
7779
|
* console.log('Method:', result.data.method); // "SellExactToken", "BuyWithNative", etc.
|
|
7453
7780
|
* ```
|
|
7454
7781
|
*/
|
|
7455
|
-
getBundlerTransactionResult(transactionId: string): Promise<
|
|
7782
|
+
getBundlerTransactionResult(transactionId: string): Promise<ApiResponse>;
|
|
7456
7783
|
/**
|
|
7457
7784
|
* Launch a new token with bonding curve trading
|
|
7458
7785
|
*
|
|
@@ -7723,7 +8050,7 @@ export declare class LaunchpadSDK {
|
|
|
7723
8050
|
validateToken(options: {
|
|
7724
8051
|
tokenName?: string;
|
|
7725
8052
|
symbol?: string;
|
|
7726
|
-
}): Promise<
|
|
8053
|
+
}): Promise<ValidateTokenResponse>;
|
|
7727
8054
|
/**
|
|
7728
8055
|
* Fetch engagement statistics for a token (v7.1.0+)
|
|
7729
8056
|
*
|
|
@@ -7983,48 +8310,6 @@ export declare class LaunchpadSDK {
|
|
|
7983
8310
|
* ```
|
|
7984
8311
|
*/
|
|
7985
8312
|
fetchReferralsSummary(options?: FetchReferralsSummaryOptions): Promise<ReferralsSummaryResult>;
|
|
7986
|
-
/**
|
|
7987
|
-
* Register an account for trading on Gala
|
|
7988
|
-
*
|
|
7989
|
-
* Ensures a wallet is registered with the DEX API platform before trading operations.
|
|
7990
|
-
* Should be called before the first purchase to ensure the account is ready.
|
|
7991
|
-
* This is idempotent - calling it multiple times is safe.
|
|
7992
|
-
*
|
|
7993
|
-
* **Return value behavior:**
|
|
7994
|
-
* - `exists: true` - Account was already registered (walletAlias from API)
|
|
7995
|
-
* - `exists: false` - Account was just created by this call (walletAlias is the input address)
|
|
7996
|
-
*
|
|
7997
|
-
* **Wallet requirement**: If no address is provided, uses the SDK wallet address.
|
|
7998
|
-
* You can optionally pass any wallet address to register.
|
|
7999
|
-
*
|
|
8000
|
-
* @category Main SDK
|
|
8001
|
-
* @param options - Optional registration parameters
|
|
8002
|
-
* @param options.address - Wallet address to register (defaults to SDK wallet)
|
|
8003
|
-
* @returns Promise<RegisterAccountResult> Registration status and wallet alias
|
|
8004
|
-
* @throws {ValidationError} If wallet not configured and no address provided
|
|
8005
|
-
* @throws {ValidationError} If address format is invalid
|
|
8006
|
-
* @throws {NetworkError} If DEX API request fails or returns unexpected format
|
|
8007
|
-
* @since 4.0.24
|
|
8008
|
-
*
|
|
8009
|
-
* @example Register current wallet
|
|
8010
|
-
* ```typescript
|
|
8011
|
-
* const result = await sdk.registerAccount();
|
|
8012
|
-
* if (result.exists) {
|
|
8013
|
-
* console.log('Account already registered');
|
|
8014
|
-
* } else {
|
|
8015
|
-
* console.log('Account newly registered');
|
|
8016
|
-
* }
|
|
8017
|
-
* console.log(`Wallet alias: ${result.walletAlias}`);
|
|
8018
|
-
* ```
|
|
8019
|
-
*
|
|
8020
|
-
* @example Register a specific address
|
|
8021
|
-
* ```typescript
|
|
8022
|
-
* const result = await sdk.registerAccount({
|
|
8023
|
-
* address: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1'
|
|
8024
|
-
* });
|
|
8025
|
-
* ```
|
|
8026
|
-
*/
|
|
8027
|
-
registerAccount(options?: RegisterAccountOptions): Promise<RegisterAccountResult>;
|
|
8028
8313
|
/**
|
|
8029
8314
|
* Update user profile information for a wallet address
|
|
8030
8315
|
*
|
|
@@ -8157,7 +8442,7 @@ export declare class LaunchpadSDK {
|
|
|
8157
8442
|
* - Both parameters use backend filtering for optimal performance
|
|
8158
8443
|
* - Passing both parameters together is discouraged (tokenName takes precedence)
|
|
8159
8444
|
*/
|
|
8160
|
-
fetchTokensHeld(options?: FetchTokensHeldOptions): Promise<
|
|
8445
|
+
fetchTokensHeld(options?: FetchTokensHeldOptions): Promise<UserTokenListResult>;
|
|
8161
8446
|
/**
|
|
8162
8447
|
* Fetch tokens created by the current user with optional filtering
|
|
8163
8448
|
*
|
|
@@ -8188,7 +8473,7 @@ export declare class LaunchpadSDK {
|
|
|
8188
8473
|
* - Both parameters use backend filtering for optimal performance
|
|
8189
8474
|
* - Passing both parameters together is discouraged (tokenName takes precedence)
|
|
8190
8475
|
*/
|
|
8191
|
-
fetchTokensCreated(options?: FetchTokensCreatedOptions): Promise<
|
|
8476
|
+
fetchTokensCreated(options?: FetchTokensCreatedOptions): Promise<UserTokenListResult>;
|
|
8192
8477
|
/**
|
|
8193
8478
|
* Get all tokens the authenticated user can manage.
|
|
8194
8479
|
*
|
|
@@ -8710,7 +8995,7 @@ export declare class LaunchpadSDK {
|
|
|
8710
8995
|
* console.log(`Price impact: ${quote.priceImpact}%`);
|
|
8711
8996
|
* ```
|
|
8712
8997
|
*/
|
|
8713
|
-
getSwapQuoteExactInput(fromToken: string, toToken: string, amount: string): Promise<
|
|
8998
|
+
getSwapQuoteExactInput(fromToken: string, toToken: string, amount: string): Promise<SwapQuoteResult>;
|
|
8714
8999
|
/**
|
|
8715
9000
|
* Get a swap quote for exact output amount
|
|
8716
9001
|
*
|
|
@@ -8751,7 +9036,7 @@ export declare class LaunchpadSDK {
|
|
|
8751
9036
|
* console.log(`Price impact: ${quote.priceImpact}%`);
|
|
8752
9037
|
* ```
|
|
8753
9038
|
*/
|
|
8754
|
-
getSwapQuoteExactOutput(fromToken: string, toToken: string, amount: string): Promise<
|
|
9039
|
+
getSwapQuoteExactOutput(fromToken: string, toToken: string, amount: string): Promise<SwapQuoteResult>;
|
|
8755
9040
|
/**
|
|
8756
9041
|
* Execute a token swap on GalaSwap DEX
|
|
8757
9042
|
*
|
|
@@ -8811,7 +9096,7 @@ export declare class LaunchpadSDK {
|
|
|
8811
9096
|
* console.log(`Transaction: ${result.transactionId}`);
|
|
8812
9097
|
* ```
|
|
8813
9098
|
*/
|
|
8814
|
-
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<
|
|
9099
|
+
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<ExecuteSwapResult>;
|
|
8815
9100
|
/**
|
|
8816
9101
|
* Get user's token assets/balances from GalaSwap
|
|
8817
9102
|
*
|
|
@@ -8830,7 +9115,7 @@ export declare class LaunchpadSDK {
|
|
|
8830
9115
|
* });
|
|
8831
9116
|
* ```
|
|
8832
9117
|
*/
|
|
8833
|
-
getSwapUserAssets(walletAddress: string): Promise<
|
|
9118
|
+
getSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
8834
9119
|
/**
|
|
8835
9120
|
* Get all user assets across all pages (auto-paginated)
|
|
8836
9121
|
*
|
|
@@ -8843,7 +9128,7 @@ export declare class LaunchpadSDK {
|
|
|
8843
9128
|
* @since 3.23.0
|
|
8844
9129
|
* @since 4.1.0 Now returns rich metadata (image, name, description, verified)
|
|
8845
9130
|
*/
|
|
8846
|
-
getAllSwapUserAssets(walletAddress: string): Promise<
|
|
9131
|
+
getAllSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
8847
9132
|
/**
|
|
8848
9133
|
* Fetch available DEX tokens (token discovery)
|
|
8849
9134
|
*
|
|
@@ -8919,7 +9204,7 @@ export declare class LaunchpadSDK {
|
|
|
8919
9204
|
* console.log(`Active swaps: ${poolInfo.swapCount}`);
|
|
8920
9205
|
* ```
|
|
8921
9206
|
*/
|
|
8922
|
-
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<
|
|
9207
|
+
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<PoolInfo>;
|
|
8923
9208
|
/**
|
|
8924
9209
|
* Get current market price for a DEX pool
|
|
8925
9210
|
*
|
|
@@ -9084,7 +9369,7 @@ export declare class LaunchpadSDK {
|
|
|
9084
9369
|
fee: number;
|
|
9085
9370
|
tickLower: number;
|
|
9086
9371
|
tickUpper: number;
|
|
9087
|
-
}): Promise<
|
|
9372
|
+
}): Promise<GSwapPosition>;
|
|
9088
9373
|
/**
|
|
9089
9374
|
* Get liquidity position by position ID
|
|
9090
9375
|
*
|
|
@@ -9116,7 +9401,7 @@ export declare class LaunchpadSDK {
|
|
|
9116
9401
|
* );
|
|
9117
9402
|
* ```
|
|
9118
9403
|
*/
|
|
9119
|
-
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string, unknown>, token1?: string | Record<string, unknown>, feeTier?: number, tickLower?: number, tickUpper?: number): Promise<
|
|
9404
|
+
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string, unknown>, token1?: string | Record<string, unknown>, feeTier?: number, tickLower?: number, tickUpper?: number): Promise<GSwapPosition>;
|
|
9120
9405
|
/**
|
|
9121
9406
|
* Fetch a single liquidity position using ONLY the compound key (most efficient)
|
|
9122
9407
|
*
|
|
@@ -9204,7 +9489,7 @@ export declare class LaunchpadSDK {
|
|
|
9204
9489
|
tickLower: number;
|
|
9205
9490
|
tickUpper: number;
|
|
9206
9491
|
owner: string;
|
|
9207
|
-
}): Promise<
|
|
9492
|
+
}): Promise<GSwapEstimateRemoveLiquidityResult>;
|
|
9208
9493
|
/**
|
|
9209
9494
|
* Add liquidity using price range
|
|
9210
9495
|
*
|
|
@@ -9253,7 +9538,7 @@ export declare class LaunchpadSDK {
|
|
|
9253
9538
|
* console.log(`Position created: ${result.positionId}`);
|
|
9254
9539
|
* ```
|
|
9255
9540
|
*/
|
|
9256
|
-
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<
|
|
9541
|
+
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<GSwapAddLiquidityResult & {
|
|
9257
9542
|
timestamp?: Date;
|
|
9258
9543
|
wait?: (timeoutMs?: number) => Promise<void>;
|
|
9259
9544
|
}>;
|
|
@@ -9290,7 +9575,7 @@ export declare class LaunchpadSDK {
|
|
|
9290
9575
|
* console.log(`Position created: ${result.positionId}`);
|
|
9291
9576
|
* ```
|
|
9292
9577
|
*/
|
|
9293
|
-
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<
|
|
9578
|
+
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<GSwapAddLiquidityResult & {
|
|
9294
9579
|
timestamp?: Date;
|
|
9295
9580
|
wait?: (timeoutMs?: number) => Promise<void>;
|
|
9296
9581
|
}>;
|
|
@@ -9345,7 +9630,7 @@ export declare class LaunchpadSDK {
|
|
|
9345
9630
|
* });
|
|
9346
9631
|
* ```
|
|
9347
9632
|
*/
|
|
9348
|
-
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<
|
|
9633
|
+
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<GSwapAddLiquidityResult>;
|
|
9349
9634
|
/**
|
|
9350
9635
|
* Collect accumulated position fees
|
|
9351
9636
|
*
|
|
@@ -9369,7 +9654,7 @@ export declare class LaunchpadSDK {
|
|
|
9369
9654
|
* console.log(`Collected: ${result.amount0} token0, ${result.amount1} token1`);
|
|
9370
9655
|
* ```
|
|
9371
9656
|
*/
|
|
9372
|
-
collectSwapPositionFees(args: CollectFeesArgs): Promise<
|
|
9657
|
+
collectSwapPositionFees(args: CollectFeesArgs): Promise<GSwapAddLiquidityResult>;
|
|
9373
9658
|
/**
|
|
9374
9659
|
* Connect to WebSocket for real-time events
|
|
9375
9660
|
*
|