@gala-chain/launchpad-sdk 5.0.4-beta.1 → 5.0.4-beta.3
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/README.md +5 -0
- package/dist/ai-docs.json +680 -329
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/LaunchpadSDK.d.ts +134 -53
- package/dist/src/LaunchpadSDK.d.ts.map +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +10 -9
- package/dist/src/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts +2 -2
- package/dist/src/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts +2 -2
- package/dist/src/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts +2 -2
- package/dist/src/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts +2 -2
- package/dist/src/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/src/auth/SessionAuthService.d.ts +3 -3
- package/dist/src/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/src/auth/SignatureAuth.d.ts +2 -2
- package/dist/src/auth/SignatureAuth.d.ts.map +1 -1
- package/dist/src/auth/types.d.ts +1 -1
- package/dist/src/auth/types.d.ts.map +1 -1
- package/dist/src/bridge/BridgeService.d.ts +1 -1
- package/dist/src/bridge/BridgeService.d.ts.map +1 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts +1 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/types/bridgeable-token.dto.d.ts +1 -1
- package/dist/src/bridge/types/bridgeable-token.dto.d.ts.map +1 -1
- package/dist/src/constants/nft-fees.d.ts +30 -0
- package/dist/src/constants/nft-fees.d.ts.map +1 -0
- package/dist/src/constants/pagination.d.ts +4 -4
- package/dist/src/constants/pagination.d.ts.map +1 -1
- package/dist/src/constants/version.generated.d.ts +1 -1
- package/dist/src/helpers/sdk.d.ts +3 -2
- package/dist/src/helpers/sdk.d.ts.map +1 -1
- package/dist/src/helpers/wallet.d.ts +1 -1
- package/dist/src/helpers/wallet.d.ts.map +1 -1
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/schemas/files.d.ts +22 -22
- package/dist/src/schemas/files.d.ts.map +1 -1
- package/dist/src/schemas/launchpad.d.ts +45 -170
- package/dist/src/schemas/launchpad.d.ts.map +1 -1
- package/dist/src/schemas/pagination.d.ts +21 -103
- package/dist/src/schemas/pagination.d.ts.map +1 -1
- package/dist/src/schemas/primitives.d.ts +13 -6
- package/dist/src/schemas/primitives.d.ts.map +1 -1
- package/dist/src/schemas/trade.d.ts +53 -105
- package/dist/src/schemas/trade.d.ts.map +1 -1
- package/dist/src/schemas/user.d.ts +26 -170
- package/dist/src/schemas/user.d.ts.map +1 -1
- package/dist/src/schemas/validators.d.ts +21 -21
- package/dist/src/services/AbstractTokenFetchService.d.ts +1 -1
- package/dist/src/services/AbstractTokenFetchService.d.ts.map +1 -1
- package/dist/src/services/ApiKeyService.d.ts +7 -6
- package/dist/src/services/ApiKeyService.d.ts.map +1 -1
- package/dist/src/services/BanService.d.ts +8 -7
- package/dist/src/services/BanService.d.ts.map +1 -1
- package/dist/src/services/BaseService.d.ts +1 -1
- package/dist/src/services/BaseService.d.ts.map +1 -1
- package/dist/src/services/BatchedCacheService.d.ts +2 -1
- package/dist/src/services/BatchedCacheService.d.ts.map +1 -1
- package/dist/src/services/BundleService.d.ts +4 -4
- package/dist/src/services/BundleService.d.ts.map +1 -1
- package/dist/src/services/ChatMessagesService.d.ts +2 -2
- package/dist/src/services/ChatMessagesService.d.ts.map +1 -1
- package/dist/src/services/CommentService.d.ts +2 -2
- package/dist/src/services/CommentService.d.ts.map +1 -1
- package/dist/src/services/CommentsService.d.ts +2 -2
- package/dist/src/services/CommentsService.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 +2 -2
- package/dist/src/services/DexBackendClient.d.ts.map +1 -1
- package/dist/src/services/DexPoolService.d.ts +7 -5
- package/dist/src/services/DexPoolService.d.ts.map +1 -1
- package/dist/src/services/DexQuoteService.d.ts.map +1 -1
- package/dist/src/services/DexService.d.ts +6 -6
- package/dist/src/services/DexService.d.ts.map +1 -1
- package/dist/src/services/GSwapAssetService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityMutationService.d.ts +4 -4
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +2 -2
- package/dist/src/services/GSwapLiquidityQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts +1 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolQueryService.d.ts +2 -2
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapService.d.ts +2 -2
- package/dist/src/services/GSwapService.d.ts.map +1 -1
- package/dist/src/services/GSwapSwapService.d.ts +2 -2
- package/dist/src/services/GSwapSwapService.d.ts.map +1 -1
- package/dist/src/services/GalaChainBalanceService.d.ts +2 -2
- package/dist/src/services/GalaChainBalanceService.d.ts.map +1 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts +1 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts.map +1 -1
- package/dist/src/services/GalaChainLockService.d.ts +4 -4
- package/dist/src/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/src/services/GalaChainService.d.ts +11 -11
- package/dist/src/services/GalaChainService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTokenService.d.ts +3 -3
- package/dist/src/services/GalaChainTokenService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTransferService.d.ts +6 -6
- package/dist/src/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/src/services/ImageService.d.ts +3 -3
- 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/ModeratorService.d.ts +20 -14
- package/dist/src/services/ModeratorService.d.ts.map +1 -1
- package/dist/src/services/MultiPoolStateManager.d.ts +1 -1
- package/dist/src/services/MultiPoolStateManager.d.ts.map +1 -1
- package/dist/src/services/NftCollectionService.d.ts +123 -0
- package/dist/src/services/NftCollectionService.d.ts.map +1 -0
- package/dist/src/services/OverseerService.d.ts +27 -20
- package/dist/src/services/OverseerService.d.ts.map +1 -1
- package/dist/src/services/PoolCacheManager.d.ts +2 -2
- package/dist/src/services/PoolCacheManager.d.ts.map +1 -1
- package/dist/src/services/PoolService.d.ts +10 -9
- package/dist/src/services/PoolService.d.ts.map +1 -1
- package/dist/src/services/PoolStateManager.d.ts +3 -3
- package/dist/src/services/PoolStateManager.d.ts.map +1 -1
- package/dist/src/services/PriceHistoryService.d.ts +11 -9
- package/dist/src/services/PriceHistoryService.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 +3 -3
- package/dist/src/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/src/services/StreamingEventService.d.ts +2 -2
- package/dist/src/services/StreamingEventService.d.ts.map +1 -1
- package/dist/src/services/StreamingService.d.ts +2 -2
- package/dist/src/services/StreamingService.d.ts.map +1 -1
- package/dist/src/services/SwapEventQueue.d.ts +2 -2
- package/dist/src/services/SwapEventQueue.d.ts.map +1 -1
- package/dist/src/services/TokenBanService.d.ts +11 -10
- package/dist/src/services/TokenBanService.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataService.d.ts.map +1 -1
- package/dist/src/services/TokenResolverService.d.ts +1 -1
- package/dist/src/services/TokenResolverService.d.ts.map +1 -1
- package/dist/src/services/TradeService.d.ts +9 -7
- package/dist/src/services/TradeService.d.ts.map +1 -1
- package/dist/src/services/UserService.d.ts +14 -10
- package/dist/src/services/UserService.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/WrapService.d.ts +1 -1
- package/dist/src/services/WrapService.d.ts.map +1 -1
- package/dist/src/services/shared/pagination-helpers.d.ts +16 -6
- package/dist/src/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/src/types/api-key.dto.d.ts +4 -4
- package/dist/src/types/api-key.dto.d.ts.map +1 -1
- package/dist/src/types/backend-responses.d.ts +7 -7
- package/dist/src/types/backend-responses.d.ts.map +1 -1
- package/dist/src/types/ban.dto.d.ts +1 -1
- package/dist/src/types/ban.dto.d.ts.map +1 -1
- package/dist/src/types/chat-messages.dto.d.ts +4 -4
- package/dist/src/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/src/types/comment.dto.d.ts +2 -2
- package/dist/src/types/comment.dto.d.ts.map +1 -1
- package/dist/src/types/comments.dto.d.ts +3 -3
- package/dist/src/types/comments.dto.d.ts.map +1 -1
- package/dist/src/types/common.d.ts +13 -13
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/constraints.d.ts +10 -10
- package/dist/src/types/constraints.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/content-reactions.dto.d.ts +1 -1
- package/dist/src/types/content-reactions.dto.d.ts.map +1 -1
- package/dist/src/types/dex-pool.dto.d.ts +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/galachain-api.types.d.ts +1 -1
- package/dist/src/types/galachain-api.types.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 +4 -5
- package/dist/src/types/gswap.dto.d.ts.map +1 -1
- package/dist/src/types/launchpad.dto.d.ts +3 -3
- package/dist/src/types/launchpad.dto.d.ts.map +1 -1
- package/dist/src/types/moderator.dto.d.ts +1 -1
- package/dist/src/types/moderator.dto.d.ts.map +1 -1
- package/dist/src/types/nft.dto.d.ts +155 -0
- package/dist/src/types/nft.dto.d.ts.map +1 -0
- package/dist/src/types/options.dto.d.ts +2 -2
- package/dist/src/types/options.dto.d.ts.map +1 -1
- package/dist/src/types/overseer.dto.d.ts +1 -1
- package/dist/src/types/overseer.dto.d.ts.map +1 -1
- package/dist/src/types/priceHistory.dto.d.ts +4 -3
- package/dist/src/types/priceHistory.dto.d.ts.map +1 -1
- package/dist/src/types/result.types.d.ts +1 -1
- package/dist/src/types/result.types.d.ts.map +1 -1
- package/dist/src/types/session-auth.dto.d.ts +1 -1
- package/dist/src/types/session-auth.dto.d.ts.map +1 -1
- package/dist/src/types/stream-chat.dto.d.ts +3 -3
- package/dist/src/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/src/types/streaming-events.dto.d.ts +1 -1
- package/dist/src/types/streaming-events.dto.d.ts.map +1 -1
- package/dist/src/types/streaming.dto.d.ts +1 -1
- 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 +3 -11
- 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 +2 -1
- package/dist/src/types/transfer.dto.d.ts.map +1 -1
- package/dist/src/types/user.dto.d.ts +6 -6
- package/dist/src/types/user.dto.d.ts.map +1 -1
- package/dist/src/utils/SignatureHelper.d.ts +1 -1
- package/dist/src/utils/SignatureHelper.d.ts.map +1 -1
- package/dist/src/utils/adapters.d.ts +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 +3 -2
- package/dist/src/utils/agent-config.d.ts.map +1 -1
- package/dist/src/utils/amount-validator.d.ts +1 -1
- package/dist/src/utils/amount-validator.d.ts.map +1 -1
- package/dist/src/utils/api-patterns.d.ts +1 -1
- package/dist/src/utils/api-patterns.d.ts.map +1 -1
- package/dist/src/utils/async-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/bondingCurveCalculations.d.ts +1 -1
- package/dist/src/utils/bondingCurveCalculations.d.ts.map +1 -1
- package/dist/src/utils/composite-pool-converter.d.ts.map +1 -1
- package/dist/src/utils/error-factories.d.ts.map +1 -1
- package/dist/src/utils/http-factory.d.ts +1 -1
- package/dist/src/utils/http-factory.d.ts.map +1 -1
- package/dist/src/utils/http.d.ts +3 -3
- package/dist/src/utils/http.d.ts.map +1 -1
- package/dist/src/utils/multipart.d.ts +1 -1
- package/dist/src/utils/multipart.d.ts.map +1 -1
- package/dist/src/utils/nft-helpers.d.ts +62 -0
- package/dist/src/utils/nft-helpers.d.ts.map +1 -0
- package/dist/src/utils/numeric-wrappers.d.ts +1 -1
- package/dist/src/utils/numeric-wrappers.d.ts.map +1 -1
- package/dist/src/utils/pagination-helpers.d.ts +17 -86
- package/dist/src/utils/pagination-helpers.d.ts.map +1 -1
- package/dist/src/utils/pool-state-validator.d.ts +2 -2
- package/dist/src/utils/pool-state-validator.d.ts.map +1 -1
- package/dist/src/utils/query-params.d.ts +12 -4
- package/dist/src/utils/query-params.d.ts.map +1 -1
- package/dist/src/utils/response-handlers.d.ts.map +1 -1
- package/dist/src/utils/response-normalizers.d.ts +2 -2
- package/dist/src/utils/response-normalizers.d.ts.map +1 -1
- package/dist/src/utils/swap-delta-calculator.d.ts +3 -3
- package/dist/src/utils/swap-delta-calculator.d.ts.map +1 -1
- package/dist/src/utils/tick-crossing-handler.d.ts +1 -1
- package/dist/src/utils/tick-crossing-handler.d.ts.map +1 -1
- package/dist/src/utils/token-format-converter.d.ts.map +1 -1
- package/dist/src/utils/token-parser.d.ts.map +1 -1
- package/dist/src/utils/tokenNormalizer.d.ts +1 -1
- package/dist/src/utils/tokenNormalizer.d.ts.map +1 -1
- package/dist/src/utils/trade-transformers.d.ts +2 -2
- package/dist/src/utils/trade-transformers.d.ts.map +1 -1
- package/dist/src/utils/validation-helpers.d.ts +18 -18
- package/dist/src/utils/validation-helpers.d.ts.map +1 -1
- package/dist/src/utils/validation-patterns.d.ts +23 -0
- package/dist/src/utils/validation-patterns.d.ts.map +1 -1
- package/dist/src/utils/validation.d.ts +2 -2
- package/dist/src/utils/validation.d.ts.map +1 -1
- package/dist/src/utils/websocket-validators.d.ts +1 -1
- package/dist/src/utils/websocket-validators.d.ts.map +1 -1
- package/package.json +12 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Wallet } from 'ethers';
|
|
2
|
-
import { SDKConfig, AddressFormat, TokenClassKey, TokenId } from './types/common';
|
|
3
|
-
import { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
4
|
-
import { EthereumWalletBalanceResult, SolanaWalletBalanceResult, ExternalChainBalance, EstimateBridgeFeeParams, BridgeFeeEstimate, BridgeOutParams, BridgeInParams, BridgeTransaction, BridgeStatus, BridgeToken, EthereumTransactionStatus, SolanaTransactionStatus } from './bridge/types/bridge.dto';
|
|
2
|
+
import type { SDKConfig, AddressFormat, TokenClassKey, TokenId } from './types/common';
|
|
3
|
+
import type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
4
|
+
import type { EthereumWalletBalanceResult, SolanaWalletBalanceResult, ExternalChainBalance, EstimateBridgeFeeParams, BridgeFeeEstimate, BridgeOutParams, BridgeInParams, BridgeTransaction, BridgeStatus, BridgeToken, EthereumTransactionStatus, SolanaTransactionStatus } from './bridge/types/bridge.dto';
|
|
5
5
|
import type { BridgeableNetwork, FetchBridgeableTokensOptions, FetchBridgeableTokensResult, IsTokenBridgeableOptions, IsTokenBridgeableResult } from './bridge/types/bridgeable-token.dto';
|
|
6
6
|
import type { WrappableToken, FetchWrappableTokensOptions, FetchWrappableTokensResult, IsTokenWrappableResult, WrapTokenOptions, UnwrapTokenOptions, WrapUnwrapResult, WrapUnwrapFeeEstimate, WrapUnwrapStatusResult } from './types/wrappable-token.dto';
|
|
7
7
|
import type { StreamInfo, StartStreamResult, ResetStreamKeyResult, FetchRecordingsOptions, RecordingsResult, RecordingDownloadResult, AddSimulcastTargetOptions, SimulcastTargetsResult, AddSimulcastTargetResult, GlobalStreamingStatus, StreamSubscribedEvent, GetStreamRoleOptions, StreamRoleResponse, GetTokenAccessOptions, TokenAccessResult } from './types/streaming.dto';
|
|
@@ -16,24 +16,27 @@ import type { CreateOverseerInviteOptions, ListOverseerInvitesOptions, ListOvers
|
|
|
16
16
|
import type { AddContentReactionOptions, RemoveContentReactionOptions, AddContentReactionResult, RemoveContentReactionResult } from './types/content-reactions.dto';
|
|
17
17
|
import type { GetCommentsOptions, CreateCommentOptions, UpdateCommentOptions, CommentsResult, CreateCommentResult, UpdateCommentResult, DeleteCommentResult } from './types/comments.dto';
|
|
18
18
|
import type { GetChatMessagesOptions, CreateChatMessageOptions, UpdateChatMessageOptions, GetChatMessagesResult, CreateChatMessageResult, UpdateChatMessageResult } from './types/chat-messages.dto';
|
|
19
|
+
import type { ClaimCollectionParams, ClaimCollectionResult, CreateTokenClassParams, CreateTokenClassResult, MintNftParams, MintNftResult, NftBalance, NftCollectionAuthorization, NftTokenClassWithSupply, EstimateMintFeeParams, EstimateNftFeesParams, NftFeeEstimate, FetchTokenClassesParams } from './types/nft.dto';
|
|
19
20
|
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
20
|
-
import { PoolDetailsData } from './types/trade.dto';
|
|
21
|
-
import { LaunchTokenData, TokenSpotPrice, FetchPoolsOptions, PoolsResult, GalaChainTokenDetails, PoolData, TokenClassWithSupply, DexSeason, LeaderboardResult, DexAggregatedVolumeSummary, UpdateSocialLinksDto, UpdateSocialLinksResponse } from './types/launchpad.dto';
|
|
22
|
-
import { UpdateProfileData, UploadProfileImageOptions, FetchTokenBalanceOptions, LockedBalanceResult, AvailableBalanceResult, ReferralUrlResult, FetchReferralsOptions, ReferralsResult, AllReferralsResult, FetchReferralsSummaryOptions, ReferralsSummaryResult, RegisterAccountOptions, RegisterAccountResult, GetManagedTokensOptions, ManagedTokensResult } from './types/user.dto';
|
|
23
|
-
import { TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
24
|
-
import { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
25
|
-
import { BurnTokensData, BurnTokensResult } from './types/burn.dto';
|
|
26
|
-
import { TokenLaunchResult, TradeResult } from './types/result.types';
|
|
21
|
+
import type { PoolDetailsData } from './types/trade.dto';
|
|
22
|
+
import type { LaunchTokenData, TokenSpotPrice, FetchPoolsOptions, PoolsResult, GalaChainTokenDetails, PoolData, TokenClassWithSupply, DexSeason, LeaderboardResult, DexAggregatedVolumeSummary, UpdateSocialLinksDto, UpdateSocialLinksResponse } from './types/launchpad.dto';
|
|
23
|
+
import type { UpdateProfileData, UploadProfileImageOptions, FetchTokenBalanceOptions, LockedBalanceResult, AvailableBalanceResult, ReferralUrlResult, FetchReferralsOptions, ReferralsResult, AllReferralsResult, FetchReferralsSummaryOptions, ReferralsSummaryResult, RegisterAccountOptions, RegisterAccountResult, GetManagedTokensOptions, ManagedTokensResult, TokenBalanceResult } from './types/user.dto';
|
|
24
|
+
import type { TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
25
|
+
import type { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
26
|
+
import type { BurnTokensData, BurnTokensResult } from './types/burn.dto';
|
|
27
|
+
import type { TokenLaunchResult, TradeResult } from './types/result.types';
|
|
27
28
|
import { WebSocketError, WebSocketTimeoutError, TransactionFailedError } from './utils/websocket-errors';
|
|
28
29
|
export { WebSocketError, WebSocketTimeoutError, TransactionFailedError, };
|
|
29
|
-
import { FetchVolumeDataOptions, FetchTradesOptions, CalculateBuyAmountOptions, CalculateSellAmountOptions, CalculateBuyAmountLocalOptions, CalculateSellAmountLocalOptions, BuyTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions, FetchTokensHeldOptions, FetchTokensCreatedOptions, GraduateTokenOptions, FetchTokenSpotPriceParams, CalculateBuyAmountForGraduationOptions } from './types/options.dto';
|
|
30
|
-
import { FetchPriceHistoryOptions, PriceHistoryResult } from './types/priceHistory.dto';
|
|
31
|
-
import { FetchDexPoolsOptions, DexPoolsResult, DexPoolData } from './types/dex-pool.dto';
|
|
32
|
-
import { GSwapPosition, PoolPriceData, GetLiquidityPositionsOptions, GetLiquidityPositionsResult, RemoveLiquidityArgs, AddLiquidityByPriceArgs, AddLiquidityByTicksArgs, CollectFeesArgs, DexToken, FetchAvailableDexTokensOptions, AvailableDexTokensResult } from './types/gswap.dto';
|
|
30
|
+
import type { FetchVolumeDataOptions, FetchTradesOptions, CalculateBuyAmountOptions, CalculateSellAmountOptions, CalculateBuyAmountLocalOptions, CalculateSellAmountLocalOptions, BuyTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions, FetchTokensHeldOptions, FetchTokensCreatedOptions, GraduateTokenOptions, FetchTokenSpotPriceParams, CalculateBuyAmountForGraduationOptions } from './types/options.dto';
|
|
31
|
+
import type { FetchPriceHistoryOptions, PriceHistoryResult } from './types/priceHistory.dto';
|
|
32
|
+
import type { FetchDexPoolsOptions, DexPoolsResult, DexPoolData } from './types/dex-pool.dto';
|
|
33
|
+
import type { GSwapPosition, PoolPriceData, GetLiquidityPositionsOptions, GetLiquidityPositionsResult, RemoveLiquidityArgs, AddLiquidityByPriceArgs, AddLiquidityByTicksArgs, CollectFeesArgs, DexToken, FetchAvailableDexTokensOptions, AvailableDexTokensResult } from './types/gswap.dto';
|
|
33
34
|
import type { FetchCompositePoolDataOptions, CompositePoolDataResult, CalculateDexPoolQuoteOptions, DexPoolQuoteResult } from './types/composite-pool.dto';
|
|
34
35
|
import type { SubscribeSwapOptions, SwapMonitorConfig, CleanupFunction, SwapEventCallback } from './types/swap-monitor.dto';
|
|
35
36
|
import type { LiquidityChangedCallback, LiquidityCleanupFunction, SubscribeLiquidityOptions } from './types/liquidity-monitor.dto';
|
|
36
|
-
import { AvailableRolesResponse } from './types/streaming.dto';
|
|
37
|
+
import type { AvailableRolesResponse, StreamSettings } from './types/streaming.dto';
|
|
38
|
+
import type { GetPinnedMessageResult, PinMessageResult, UnpinMessageResult } from './types/stream-chat.dto';
|
|
39
|
+
import type { StreamStatusChangedEvent, UserBannedEvent, UserUnbannedEvent, BanEnforcementEvent, ContentFlaggedEvent, FlagResolvedEvent, StreamChatMessageEvent, StreamChatUpdatedEvent, StreamChatDeletedEvent, StreamChatPinnedEvent, StreamChatUnpinnedEvent, ChatStatusChangedEvent, ViewerCountChangedEvent, RecordingStatusChangedEvent, SimulcastStatusChangedEvent, DownloadReadyEvent, UserTypingEvent, StreamReactionEvent, ContentReactionAddedEvent, ContentReactionRemovedEvent, StreamCountdownUpdatedEvent, StreamLanguageUpdatedEvent, StreamControlStatusChangedEvent, ConnectionEvent, AuthenticatedEvent, TokenSubscribedEvent, TokenUnsubscribedEvent, RoomSubscribedEvent, RoomLeftEvent } from './types/streaming-events.dto';
|
|
37
40
|
/**
|
|
38
41
|
* Configuration for initializing the Launchpad SDK
|
|
39
42
|
*
|
|
@@ -326,6 +329,8 @@ export declare class LaunchpadSDK {
|
|
|
326
329
|
private _contentReactionService;
|
|
327
330
|
private _commentsService;
|
|
328
331
|
private _chatMessagesService;
|
|
332
|
+
private readonly galaChainClient;
|
|
333
|
+
private readonly nftCollectionService;
|
|
329
334
|
private readonly launchpadAPI;
|
|
330
335
|
constructor(config: LaunchpadSDKConfig);
|
|
331
336
|
/**
|
|
@@ -1656,7 +1661,7 @@ export declare class LaunchpadSDK {
|
|
|
1656
1661
|
* console.log(`GALA: ${formattedBalance}`);
|
|
1657
1662
|
* ```
|
|
1658
1663
|
*/
|
|
1659
|
-
fetchGalaBalance(address?: string): Promise<
|
|
1664
|
+
fetchGalaBalance(address?: string): Promise<TokenBalanceResult | null>;
|
|
1660
1665
|
/**
|
|
1661
1666
|
* Lazy-initialize BridgeService when first needed.
|
|
1662
1667
|
*
|
|
@@ -3060,7 +3065,7 @@ export declare class LaunchpadSDK {
|
|
|
3060
3065
|
* await sdk.setNextLiveStreamCountdown('mytoken', null);
|
|
3061
3066
|
* ```
|
|
3062
3067
|
*/
|
|
3063
|
-
setNextLiveStreamCountdown(tokenName: string, nextLiveStreamAt: string | Date | null): Promise<
|
|
3068
|
+
setNextLiveStreamCountdown(tokenName: string, nextLiveStreamAt: string | Date | null): Promise<StreamSettings>;
|
|
3064
3069
|
/**
|
|
3065
3070
|
* Enable or disable streaming globally (Admin only).
|
|
3066
3071
|
*
|
|
@@ -3329,7 +3334,7 @@ export declare class LaunchpadSDK {
|
|
|
3329
3334
|
* }
|
|
3330
3335
|
* ```
|
|
3331
3336
|
*/
|
|
3332
|
-
getPinnedChatMessage(tokenName: string): Promise<
|
|
3337
|
+
getPinnedChatMessage(tokenName: string): Promise<GetPinnedMessageResult>;
|
|
3333
3338
|
/**
|
|
3334
3339
|
* Pin a chat message for a token (v6.x.0+)
|
|
3335
3340
|
*
|
|
@@ -3351,7 +3356,7 @@ export declare class LaunchpadSDK {
|
|
|
3351
3356
|
* console.log('Message pinned:', result.pinnedMessage.id);
|
|
3352
3357
|
* ```
|
|
3353
3358
|
*/
|
|
3354
|
-
pinChatMessage(tokenName: string, messageId: string): Promise<
|
|
3359
|
+
pinChatMessage(tokenName: string, messageId: string): Promise<PinMessageResult>;
|
|
3355
3360
|
/**
|
|
3356
3361
|
* Unpin the currently pinned chat message for a token (v6.x.0+)
|
|
3357
3362
|
*
|
|
@@ -3371,7 +3376,7 @@ export declare class LaunchpadSDK {
|
|
|
3371
3376
|
* console.log('Message unpinned');
|
|
3372
3377
|
* ```
|
|
3373
3378
|
*/
|
|
3374
|
-
unpinChatMessage(tokenName: string): Promise<
|
|
3379
|
+
unpinChatMessage(tokenName: string): Promise<UnpinMessageResult>;
|
|
3375
3380
|
/**
|
|
3376
3381
|
* Create a ban for a user on a token.
|
|
3377
3382
|
*
|
|
@@ -5096,7 +5101,7 @@ export declare class LaunchpadSDK {
|
|
|
5096
5101
|
* });
|
|
5097
5102
|
* ```
|
|
5098
5103
|
*/
|
|
5099
|
-
onStreamStatusChanged(callback: (event:
|
|
5104
|
+
onStreamStatusChanged(callback: (event: StreamStatusChangedEvent) => void | Promise<void>): () => void;
|
|
5100
5105
|
/**
|
|
5101
5106
|
* Subscribe to user ban events
|
|
5102
5107
|
*
|
|
@@ -5106,7 +5111,7 @@ export declare class LaunchpadSDK {
|
|
|
5106
5111
|
* @since 5.12.0
|
|
5107
5112
|
* @category WebSocket
|
|
5108
5113
|
*/
|
|
5109
|
-
onUserBanned(callback: (event:
|
|
5114
|
+
onUserBanned(callback: (event: UserBannedEvent) => void | Promise<void>): () => void;
|
|
5110
5115
|
/**
|
|
5111
5116
|
* Subscribe to user unban events
|
|
5112
5117
|
*
|
|
@@ -5116,7 +5121,7 @@ export declare class LaunchpadSDK {
|
|
|
5116
5121
|
* @since 5.12.0
|
|
5117
5122
|
* @category WebSocket
|
|
5118
5123
|
*/
|
|
5119
|
-
onUserUnbanned(callback: (event:
|
|
5124
|
+
onUserUnbanned(callback: (event: UserUnbannedEvent) => void | Promise<void>): () => void;
|
|
5120
5125
|
/**
|
|
5121
5126
|
* Subscribe to ban enforcement events (kick, mute, ban)
|
|
5122
5127
|
*
|
|
@@ -5126,7 +5131,7 @@ export declare class LaunchpadSDK {
|
|
|
5126
5131
|
* @since 5.12.0
|
|
5127
5132
|
* @category WebSocket
|
|
5128
5133
|
*/
|
|
5129
|
-
onBanEnforcement(callback: (event:
|
|
5134
|
+
onBanEnforcement(callback: (event: BanEnforcementEvent) => void | Promise<void>): () => void;
|
|
5130
5135
|
/**
|
|
5131
5136
|
* Subscribe to content flagged events (overseer)
|
|
5132
5137
|
*
|
|
@@ -5136,7 +5141,7 @@ export declare class LaunchpadSDK {
|
|
|
5136
5141
|
* @since 5.12.0
|
|
5137
5142
|
* @category WebSocket
|
|
5138
5143
|
*/
|
|
5139
|
-
onContentFlagged(callback: (event:
|
|
5144
|
+
onContentFlagged(callback: (event: ContentFlaggedEvent) => void | Promise<void>): () => void;
|
|
5140
5145
|
/**
|
|
5141
5146
|
* Subscribe to flag resolved events
|
|
5142
5147
|
*
|
|
@@ -5146,7 +5151,7 @@ export declare class LaunchpadSDK {
|
|
|
5146
5151
|
* @since 5.12.0
|
|
5147
5152
|
* @category WebSocket
|
|
5148
5153
|
*/
|
|
5149
|
-
onFlagResolved(callback: (event:
|
|
5154
|
+
onFlagResolved(callback: (event: FlagResolvedEvent) => void | Promise<void>): () => void;
|
|
5150
5155
|
/**
|
|
5151
5156
|
* Subscribe to new stream chat messages
|
|
5152
5157
|
*
|
|
@@ -5156,7 +5161,7 @@ export declare class LaunchpadSDK {
|
|
|
5156
5161
|
* @since 5.12.0
|
|
5157
5162
|
* @category WebSocket
|
|
5158
5163
|
*/
|
|
5159
|
-
onStreamChatMessage(callback: (event:
|
|
5164
|
+
onStreamChatMessage(callback: (event: StreamChatMessageEvent) => void | Promise<void>): () => void;
|
|
5160
5165
|
/**
|
|
5161
5166
|
* Subscribe to stream chat message updates
|
|
5162
5167
|
*
|
|
@@ -5166,7 +5171,7 @@ export declare class LaunchpadSDK {
|
|
|
5166
5171
|
* @since 5.12.0
|
|
5167
5172
|
* @category WebSocket
|
|
5168
5173
|
*/
|
|
5169
|
-
onStreamChatUpdated(callback: (event:
|
|
5174
|
+
onStreamChatUpdated(callback: (event: StreamChatUpdatedEvent) => void | Promise<void>): () => void;
|
|
5170
5175
|
/**
|
|
5171
5176
|
* Subscribe to stream chat message deletions
|
|
5172
5177
|
*
|
|
@@ -5176,7 +5181,7 @@ export declare class LaunchpadSDK {
|
|
|
5176
5181
|
* @since 5.12.0
|
|
5177
5182
|
* @category WebSocket
|
|
5178
5183
|
*/
|
|
5179
|
-
onStreamChatDeleted(callback: (event:
|
|
5184
|
+
onStreamChatDeleted(callback: (event: StreamChatDeletedEvent) => void | Promise<void>): () => void;
|
|
5180
5185
|
/**
|
|
5181
5186
|
* Subscribe to stream chat message pins
|
|
5182
5187
|
*
|
|
@@ -5186,7 +5191,7 @@ export declare class LaunchpadSDK {
|
|
|
5186
5191
|
* @since 5.12.0
|
|
5187
5192
|
* @category WebSocket
|
|
5188
5193
|
*/
|
|
5189
|
-
onStreamChatPinned(callback: (event:
|
|
5194
|
+
onStreamChatPinned(callback: (event: StreamChatPinnedEvent) => void | Promise<void>): () => void;
|
|
5190
5195
|
/**
|
|
5191
5196
|
* Subscribe to stream chat message unpins
|
|
5192
5197
|
*
|
|
@@ -5196,7 +5201,7 @@ export declare class LaunchpadSDK {
|
|
|
5196
5201
|
* @since 5.12.0
|
|
5197
5202
|
* @category WebSocket
|
|
5198
5203
|
*/
|
|
5199
|
-
onStreamChatUnpinned(callback: (event:
|
|
5204
|
+
onStreamChatUnpinned(callback: (event: StreamChatUnpinnedEvent) => void | Promise<void>): () => void;
|
|
5200
5205
|
/**
|
|
5201
5206
|
* Subscribe to chat status changes (enable/disable)
|
|
5202
5207
|
*
|
|
@@ -5206,7 +5211,7 @@ export declare class LaunchpadSDK {
|
|
|
5206
5211
|
* @since 5.12.0
|
|
5207
5212
|
* @category WebSocket
|
|
5208
5213
|
*/
|
|
5209
|
-
onChatStatusChanged(callback: (event:
|
|
5214
|
+
onChatStatusChanged(callback: (event: ChatStatusChangedEvent) => void | Promise<void>): () => void;
|
|
5210
5215
|
/**
|
|
5211
5216
|
* Subscribe to viewer count changes
|
|
5212
5217
|
*
|
|
@@ -5216,7 +5221,7 @@ export declare class LaunchpadSDK {
|
|
|
5216
5221
|
* @since 5.12.0
|
|
5217
5222
|
* @category WebSocket
|
|
5218
5223
|
*/
|
|
5219
|
-
onViewerCountChanged(callback: (event:
|
|
5224
|
+
onViewerCountChanged(callback: (event: ViewerCountChangedEvent) => void | Promise<void>): () => void;
|
|
5220
5225
|
/**
|
|
5221
5226
|
* Subscribe to recording status changes
|
|
5222
5227
|
*
|
|
@@ -5226,7 +5231,7 @@ export declare class LaunchpadSDK {
|
|
|
5226
5231
|
* @since 5.12.0
|
|
5227
5232
|
* @category WebSocket
|
|
5228
5233
|
*/
|
|
5229
|
-
onRecordingStatusChanged(callback: (event:
|
|
5234
|
+
onRecordingStatusChanged(callback: (event: RecordingStatusChangedEvent) => void | Promise<void>): () => void;
|
|
5230
5235
|
/**
|
|
5231
5236
|
* Subscribe to simulcast target status changes
|
|
5232
5237
|
*
|
|
@@ -5236,7 +5241,7 @@ export declare class LaunchpadSDK {
|
|
|
5236
5241
|
* @since 5.12.0
|
|
5237
5242
|
* @category WebSocket
|
|
5238
5243
|
*/
|
|
5239
|
-
onSimulcastStatusChanged(callback: (event:
|
|
5244
|
+
onSimulcastStatusChanged(callback: (event: SimulcastStatusChangedEvent) => void | Promise<void>): () => void;
|
|
5240
5245
|
/**
|
|
5241
5246
|
* Subscribe to download ready events
|
|
5242
5247
|
*
|
|
@@ -5246,7 +5251,7 @@ export declare class LaunchpadSDK {
|
|
|
5246
5251
|
* @since 5.12.0
|
|
5247
5252
|
* @category WebSocket
|
|
5248
5253
|
*/
|
|
5249
|
-
onDownloadReady(callback: (event:
|
|
5254
|
+
onDownloadReady(callback: (event: DownloadReadyEvent) => void | Promise<void>): () => void;
|
|
5250
5255
|
/**
|
|
5251
5256
|
* Subscribe to user typing indicators
|
|
5252
5257
|
*
|
|
@@ -5256,7 +5261,7 @@ export declare class LaunchpadSDK {
|
|
|
5256
5261
|
* @since 5.12.0
|
|
5257
5262
|
* @category WebSocket
|
|
5258
5263
|
*/
|
|
5259
|
-
onUserTyping(callback: (event:
|
|
5264
|
+
onUserTyping(callback: (event: UserTypingEvent) => void | Promise<void>): () => void;
|
|
5260
5265
|
/**
|
|
5261
5266
|
* Subscribe to stream reactions (emoji)
|
|
5262
5267
|
*
|
|
@@ -5266,7 +5271,7 @@ export declare class LaunchpadSDK {
|
|
|
5266
5271
|
* @since 5.12.0
|
|
5267
5272
|
* @category WebSocket
|
|
5268
5273
|
*/
|
|
5269
|
-
onStreamReaction(callback: (event:
|
|
5274
|
+
onStreamReaction(callback: (event: StreamReactionEvent) => void | Promise<void>): () => void;
|
|
5270
5275
|
/**
|
|
5271
5276
|
* Subscribe to content reaction additions
|
|
5272
5277
|
*
|
|
@@ -5276,7 +5281,7 @@ export declare class LaunchpadSDK {
|
|
|
5276
5281
|
* @since 5.12.0
|
|
5277
5282
|
* @category WebSocket
|
|
5278
5283
|
*/
|
|
5279
|
-
onContentReactionAdded(callback: (event:
|
|
5284
|
+
onContentReactionAdded(callback: (event: ContentReactionAddedEvent) => void | Promise<void>): () => void;
|
|
5280
5285
|
/**
|
|
5281
5286
|
* Subscribe to content reaction removals
|
|
5282
5287
|
*
|
|
@@ -5286,7 +5291,7 @@ export declare class LaunchpadSDK {
|
|
|
5286
5291
|
* @since 5.12.0
|
|
5287
5292
|
* @category WebSocket
|
|
5288
5293
|
*/
|
|
5289
|
-
onContentReactionRemoved(callback: (event:
|
|
5294
|
+
onContentReactionRemoved(callback: (event: ContentReactionRemovedEvent) => void | Promise<void>): () => void;
|
|
5290
5295
|
/**
|
|
5291
5296
|
* Subscribe to stream countdown updates
|
|
5292
5297
|
*
|
|
@@ -5296,7 +5301,7 @@ export declare class LaunchpadSDK {
|
|
|
5296
5301
|
* @since 5.12.0
|
|
5297
5302
|
* @category WebSocket
|
|
5298
5303
|
*/
|
|
5299
|
-
onStreamCountdownUpdated(callback: (event:
|
|
5304
|
+
onStreamCountdownUpdated(callback: (event: StreamCountdownUpdatedEvent) => void | Promise<void>): () => void;
|
|
5300
5305
|
/**
|
|
5301
5306
|
* Subscribe to stream language updates
|
|
5302
5307
|
*
|
|
@@ -5306,7 +5311,7 @@ export declare class LaunchpadSDK {
|
|
|
5306
5311
|
* @since 5.12.0
|
|
5307
5312
|
* @category WebSocket
|
|
5308
5313
|
*/
|
|
5309
|
-
onStreamLanguageUpdated(callback: (event:
|
|
5314
|
+
onStreamLanguageUpdated(callback: (event: StreamLanguageUpdatedEvent) => void | Promise<void>): () => void;
|
|
5310
5315
|
/**
|
|
5311
5316
|
* Subscribe to stream control status changes
|
|
5312
5317
|
*
|
|
@@ -5316,7 +5321,7 @@ export declare class LaunchpadSDK {
|
|
|
5316
5321
|
* @since 5.12.0
|
|
5317
5322
|
* @category WebSocket
|
|
5318
5323
|
*/
|
|
5319
|
-
onStreamControlStatusChanged(callback: (event:
|
|
5324
|
+
onStreamControlStatusChanged(callback: (event: StreamControlStatusChangedEvent) => void | Promise<void>): () => void;
|
|
5320
5325
|
/**
|
|
5321
5326
|
* Subscribe to WebSocket connection events
|
|
5322
5327
|
*
|
|
@@ -5326,7 +5331,7 @@ export declare class LaunchpadSDK {
|
|
|
5326
5331
|
* @since 5.12.0
|
|
5327
5332
|
* @category WebSocket
|
|
5328
5333
|
*/
|
|
5329
|
-
onConnection(callback: (event:
|
|
5334
|
+
onConnection(callback: (event: ConnectionEvent) => void | Promise<void>): () => void;
|
|
5330
5335
|
/**
|
|
5331
5336
|
* Subscribe to WebSocket authentication events
|
|
5332
5337
|
*
|
|
@@ -5336,7 +5341,7 @@ export declare class LaunchpadSDK {
|
|
|
5336
5341
|
* @since 5.12.0
|
|
5337
5342
|
* @category WebSocket
|
|
5338
5343
|
*/
|
|
5339
|
-
onAuthenticated(callback: (event:
|
|
5344
|
+
onAuthenticated(callback: (event: AuthenticatedEvent) => void | Promise<void>): () => void;
|
|
5340
5345
|
/**
|
|
5341
5346
|
* Subscribe to token stream room subscription events
|
|
5342
5347
|
*
|
|
@@ -5346,7 +5351,7 @@ export declare class LaunchpadSDK {
|
|
|
5346
5351
|
* @since 5.12.0
|
|
5347
5352
|
* @category WebSocket
|
|
5348
5353
|
*/
|
|
5349
|
-
onTokenSubscribed(callback: (event:
|
|
5354
|
+
onTokenSubscribed(callback: (event: TokenSubscribedEvent) => void | Promise<void>): () => void;
|
|
5350
5355
|
/**
|
|
5351
5356
|
* Subscribe to token stream room unsubscription events
|
|
5352
5357
|
*
|
|
@@ -5356,7 +5361,7 @@ export declare class LaunchpadSDK {
|
|
|
5356
5361
|
* @since 5.12.0
|
|
5357
5362
|
* @category WebSocket
|
|
5358
5363
|
*/
|
|
5359
|
-
onTokenUnsubscribed(callback: (event:
|
|
5364
|
+
onTokenUnsubscribed(callback: (event: TokenUnsubscribedEvent) => void | Promise<void>): () => void;
|
|
5360
5365
|
/**
|
|
5361
5366
|
* Subscribe to comment room subscription events
|
|
5362
5367
|
*
|
|
@@ -5366,7 +5371,7 @@ export declare class LaunchpadSDK {
|
|
|
5366
5371
|
* @since 5.12.0
|
|
5367
5372
|
* @category WebSocket
|
|
5368
5373
|
*/
|
|
5369
|
-
onRoomSubscribed(callback: (event:
|
|
5374
|
+
onRoomSubscribed(callback: (event: RoomSubscribedEvent) => void | Promise<void>): () => void;
|
|
5370
5375
|
/**
|
|
5371
5376
|
* Subscribe to comment room unsubscription events
|
|
5372
5377
|
*
|
|
@@ -5376,7 +5381,7 @@ export declare class LaunchpadSDK {
|
|
|
5376
5381
|
* @since 5.12.0
|
|
5377
5382
|
* @category WebSocket
|
|
5378
5383
|
*/
|
|
5379
|
-
onRoomLeft(callback: (event:
|
|
5384
|
+
onRoomLeft(callback: (event: RoomLeftEvent) => void | Promise<void>): () => void;
|
|
5380
5385
|
/**
|
|
5381
5386
|
* Estimate bridge fees for a cross-chain transfer.
|
|
5382
5387
|
*
|
|
@@ -5545,7 +5550,7 @@ export declare class LaunchpadSDK {
|
|
|
5545
5550
|
* });
|
|
5546
5551
|
* ```
|
|
5547
5552
|
*/
|
|
5548
|
-
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<
|
|
5553
|
+
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<TokenBalanceResult | {
|
|
5549
5554
|
quantity: unknown;
|
|
5550
5555
|
collection: string;
|
|
5551
5556
|
category: string;
|
|
@@ -6408,7 +6413,7 @@ export declare class LaunchpadSDK {
|
|
|
6408
6413
|
* console.log(`Profile owner: ${profile?.fullName}`);
|
|
6409
6414
|
* ```
|
|
6410
6415
|
*/
|
|
6411
|
-
fetchProfile(address?: string): Promise<
|
|
6416
|
+
fetchProfile(address?: string): Promise<unknown>;
|
|
6412
6417
|
/**
|
|
6413
6418
|
* Fetch the current user's referral URL
|
|
6414
6419
|
*
|
|
@@ -8007,7 +8012,7 @@ export declare class LaunchpadSDK {
|
|
|
8007
8012
|
* );
|
|
8008
8013
|
* ```
|
|
8009
8014
|
*/
|
|
8010
|
-
onDexPoolCreation(callback: (pool: DexPoolData) => void
|
|
8015
|
+
onDexPoolCreation(callback: (pool: DexPoolData) => void | Promise<void>, options?: {
|
|
8011
8016
|
intervalMs?: number;
|
|
8012
8017
|
minTVL?: number;
|
|
8013
8018
|
tokens?: string[];
|
|
@@ -8050,7 +8055,7 @@ export declare class LaunchpadSDK {
|
|
|
8050
8055
|
* );
|
|
8051
8056
|
* ```
|
|
8052
8057
|
*/
|
|
8053
|
-
onLaunchpadTokenCreation(callback: (token: PoolData) => void
|
|
8058
|
+
onLaunchpadTokenCreation(callback: (token: PoolData) => void | Promise<void>, options?: {
|
|
8054
8059
|
intervalMs?: number;
|
|
8055
8060
|
creatorAddress?: string;
|
|
8056
8061
|
}): () => void;
|
|
@@ -8685,6 +8690,82 @@ export declare class LaunchpadSDK {
|
|
|
8685
8690
|
* @internal
|
|
8686
8691
|
*/
|
|
8687
8692
|
private normalizeFeeTier;
|
|
8693
|
+
/**
|
|
8694
|
+
* Get the fee to claim an NFT collection
|
|
8695
|
+
* @category NFT Collections
|
|
8696
|
+
* @returns Fee amount in GALA as string ("10000")
|
|
8697
|
+
*/
|
|
8698
|
+
getNftCollectionClaimFee(): string;
|
|
8699
|
+
/**
|
|
8700
|
+
* Get the fee to create a token class
|
|
8701
|
+
* @category NFT Collections
|
|
8702
|
+
* @returns Fee amount in GALA as string ("1000")
|
|
8703
|
+
*/
|
|
8704
|
+
getNftTokenClassCreateFee(): string;
|
|
8705
|
+
/**
|
|
8706
|
+
* Estimate minting fee for NFTs via DryRun
|
|
8707
|
+
* @category NFT Collections
|
|
8708
|
+
* @param params - Mint parameters (collection, type, category, quantity, owner)
|
|
8709
|
+
* @returns Estimated fee in GALA
|
|
8710
|
+
*/
|
|
8711
|
+
estimateNftMintFee(params: EstimateMintFeeParams): Promise<string>;
|
|
8712
|
+
/**
|
|
8713
|
+
* Calculate total fees for multiple NFT operations
|
|
8714
|
+
* @category NFT Collections
|
|
8715
|
+
* @param params - Operations to estimate (claimCollection, createTokenClasses count)
|
|
8716
|
+
* @returns Fee breakdown with total
|
|
8717
|
+
*/
|
|
8718
|
+
estimateNftOperationFees(params: EstimateNftFeesParams): NftFeeEstimate;
|
|
8719
|
+
/**
|
|
8720
|
+
* Claim an NFT collection name
|
|
8721
|
+
* @category NFT Collections
|
|
8722
|
+
* @param params - Collection claim parameters
|
|
8723
|
+
* @returns Claim result with transaction ID
|
|
8724
|
+
*/
|
|
8725
|
+
claimNftCollection(params: ClaimCollectionParams): Promise<ClaimCollectionResult>;
|
|
8726
|
+
/**
|
|
8727
|
+
* Fetch all NFT collections authorized to a user
|
|
8728
|
+
* @category NFT Collections
|
|
8729
|
+
* @param walletAddress - Wallet address to fetch collections for
|
|
8730
|
+
* @returns List of authorized collections
|
|
8731
|
+
*/
|
|
8732
|
+
fetchNftCollections(walletAddress: string): Promise<NftCollectionAuthorization[]>;
|
|
8733
|
+
/**
|
|
8734
|
+
* Check if an NFT collection name is available
|
|
8735
|
+
* @category NFT Collections
|
|
8736
|
+
* @param collectionName - Collection name to check
|
|
8737
|
+
* @returns True if available, false if already claimed
|
|
8738
|
+
*/
|
|
8739
|
+
isNftCollectionAvailable(collectionName: string): Promise<boolean>;
|
|
8740
|
+
/**
|
|
8741
|
+
* Create a token class within an NFT collection
|
|
8742
|
+
* @category NFT Collections
|
|
8743
|
+
* @param params - Token class creation parameters
|
|
8744
|
+
* @returns Creation result with transaction ID
|
|
8745
|
+
*/
|
|
8746
|
+
createNftTokenClass(params: CreateTokenClassParams): Promise<CreateTokenClassResult>;
|
|
8747
|
+
/**
|
|
8748
|
+
* Fetch token classes for a collection
|
|
8749
|
+
* @category NFT Collections
|
|
8750
|
+
* @param params - Query parameters (collection, type, category)
|
|
8751
|
+
* @returns List of token classes with supply info
|
|
8752
|
+
*/
|
|
8753
|
+
fetchNftTokenClasses(params: FetchTokenClassesParams): Promise<NftTokenClassWithSupply[]>;
|
|
8754
|
+
/**
|
|
8755
|
+
* Mint NFTs from a token class
|
|
8756
|
+
* @category NFT Collections
|
|
8757
|
+
* @param params - Minting parameters
|
|
8758
|
+
* @returns Minting result with transaction ID
|
|
8759
|
+
*/
|
|
8760
|
+
mintNft(params: MintNftParams): Promise<MintNftResult>;
|
|
8761
|
+
/**
|
|
8762
|
+
* Fetch NFT balances for an owner
|
|
8763
|
+
* @category NFT Collections
|
|
8764
|
+
* @param ownerAddress - Owner wallet address
|
|
8765
|
+
* @param collectionFilter - Optional collection name to filter by
|
|
8766
|
+
* @returns List of NFT balances
|
|
8767
|
+
*/
|
|
8768
|
+
fetchNftBalances(ownerAddress: string, collectionFilter?: string): Promise<NftBalance[]>;
|
|
8688
8769
|
/**
|
|
8689
8770
|
* Cleanup SDK resources and connections
|
|
8690
8771
|
*
|