@gala-chain/launchpad-sdk 5.0.2-beta.1 → 5.0.4-beta.0
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/EXAMPLES.md +141 -7
- package/README.md +68 -36
- package/dist/ai-docs.json +7357 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +70 -11
- 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 +3288 -214
- package/dist/src/LaunchpadSDK.d.ts.map +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +21 -41
- package/dist/src/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/src/auth/JwtAuth.d.ts +145 -0
- package/dist/src/auth/JwtAuth.d.ts.map +1 -0
- package/dist/src/auth/SessionAuthService.d.ts +146 -0
- package/dist/src/auth/SessionAuthService.d.ts.map +1 -0
- package/dist/src/auth/SignatureAuth.d.ts.map +1 -1
- package/dist/src/bridge/BridgeService.d.ts.map +1 -1
- package/dist/src/bridge/GalaConnectClient.d.ts.map +1 -1
- package/dist/src/bridge/constants/tokens.d.ts +4 -3
- package/dist/src/bridge/constants/tokens.d.ts.map +1 -1
- package/dist/src/bridge/index.d.ts +1 -0
- 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 -38
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts +1 -21
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/types/bridge.dto.d.ts +15 -2
- package/dist/src/bridge/types/bridge.dto.d.ts.map +1 -1
- package/dist/src/bridge/utils/RateLimiter.d.ts +1 -1
- package/dist/src/bridge/utils/RateLimiter.d.ts.map +1 -1
- package/dist/src/bridge/utils/address-formatter.d.ts +25 -0
- package/dist/src/bridge/utils/address-formatter.d.ts.map +1 -0
- package/dist/src/bridge/utils/addressValidation.d.ts +200 -0
- package/dist/src/bridge/utils/addressValidation.d.ts.map +1 -0
- package/dist/src/bridge/utils/balanceHelpers.d.ts +215 -0
- package/dist/src/bridge/utils/balanceHelpers.d.ts.map +1 -0
- package/dist/src/bridge/utils/bridgeErrors.d.ts +98 -0
- package/dist/src/bridge/utils/bridgeErrors.d.ts.map +1 -0
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts +68 -0
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts.map +1 -0
- package/dist/src/bridge/utils/bridgePayload.d.ts +107 -0
- package/dist/src/bridge/utils/bridgePayload.d.ts.map +1 -0
- package/dist/src/bridge/utils/bridgeStatusParser.d.ts +75 -0
- package/dist/src/bridge/utils/bridgeStatusParser.d.ts.map +1 -0
- package/dist/src/bridge/utils/eip712Helpers.d.ts +66 -0
- package/dist/src/bridge/utils/eip712Helpers.d.ts.map +1 -0
- package/dist/src/bridge/utils/index.d.ts +9 -0
- package/dist/src/bridge/utils/index.d.ts.map +1 -1
- package/dist/src/bridge/utils/retry.d.ts +16 -0
- package/dist/src/bridge/utils/retry.d.ts.map +1 -1
- package/dist/src/bridge/utils/strategyDelegation.d.ts +69 -0
- package/dist/src/bridge/utils/strategyDelegation.d.ts.map +1 -0
- package/dist/src/bridge/utils/tokenIdUtils.d.ts +7 -0
- package/dist/src/bridge/utils/tokenIdUtils.d.ts.map +1 -1
- package/dist/src/bridge/utils/tokenMath.d.ts.map +1 -1
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts +97 -0
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts.map +1 -0
- package/dist/src/constants/endpoints.d.ts +453 -0
- package/dist/src/constants/endpoints.d.ts.map +1 -1
- package/dist/src/constants/error-messages.d.ts +1 -1
- package/dist/src/constants/error-messages.d.ts.map +1 -1
- package/dist/src/constants/jwt.d.ts +41 -0
- package/dist/src/constants/jwt.d.ts.map +1 -0
- package/dist/src/constants/sdk-defaults.d.ts +37 -0
- package/dist/src/constants/sdk-defaults.d.ts.map +1 -0
- 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 +4 -3
- package/dist/src/helpers/wallet.d.ts.map +1 -1
- package/dist/src/index.d.ts +70 -11
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/schemas/files.d.ts +2 -2
- package/dist/src/schemas/launchpad.d.ts +40 -8
- package/dist/src/schemas/launchpad.d.ts.map +1 -1
- package/dist/src/schemas/pagination.d.ts +7 -7
- package/dist/src/schemas/primitives.d.ts.map +1 -1
- package/dist/src/schemas/trade.d.ts +6 -6
- package/dist/src/schemas/user.d.ts +4 -4
- package/dist/src/schemas/validators.d.ts +15 -7
- package/dist/src/schemas/validators.d.ts.map +1 -1
- package/dist/src/services/AbstractCacheService.d.ts +227 -0
- package/dist/src/services/AbstractCacheService.d.ts.map +1 -0
- package/dist/src/services/AbstractTokenFetchService.d.ts +150 -0
- package/dist/src/services/AbstractTokenFetchService.d.ts.map +1 -0
- package/dist/src/services/ApiKeyService.d.ts +205 -0
- package/dist/src/services/ApiKeyService.d.ts.map +1 -0
- package/dist/src/services/BanService.d.ts +195 -0
- package/dist/src/services/BanService.d.ts.map +1 -0
- package/dist/src/services/BaseService.d.ts +50 -3
- package/dist/src/services/BaseService.d.ts.map +1 -1
- package/dist/src/services/BatchedCacheService.d.ts +132 -0
- package/dist/src/services/BatchedCacheService.d.ts.map +1 -0
- package/dist/src/services/BridgeableTokenCache.d.ts +32 -98
- package/dist/src/services/BridgeableTokenCache.d.ts.map +1 -1
- package/dist/src/services/BridgeableTokenService.d.ts +18 -13
- package/dist/src/services/BridgeableTokenService.d.ts.map +1 -1
- package/dist/src/services/BundleService.d.ts.map +1 -1
- package/dist/src/services/BundlerClientFactory.d.ts +32 -0
- package/dist/src/services/BundlerClientFactory.d.ts.map +1 -0
- package/dist/src/services/ChatMessagesService.d.ts +152 -0
- package/dist/src/services/ChatMessagesService.d.ts.map +1 -0
- package/dist/src/services/CommentService.d.ts +119 -0
- package/dist/src/services/CommentService.d.ts.map +1 -0
- package/dist/src/services/CommentsService.d.ts +155 -0
- package/dist/src/services/CommentsService.d.ts.map +1 -0
- package/dist/src/services/ContentFlagService.d.ts +212 -0
- package/dist/src/services/ContentFlagService.d.ts.map +1 -0
- package/dist/src/services/ContentReactionService.d.ts +175 -0
- package/dist/src/services/ContentReactionService.d.ts.map +1 -0
- package/dist/src/services/DexBackendClient.d.ts.map +1 -1
- package/dist/src/services/DexPoolService.d.ts +3 -3
- 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 +2 -5
- package/dist/src/services/DexService.d.ts.map +1 -1
- package/dist/src/services/GSwapAssetService.d.ts +80 -0
- package/dist/src/services/GSwapAssetService.d.ts.map +1 -0
- package/dist/src/services/GSwapLiquidityMutationService.d.ts +140 -0
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +1 -0
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +87 -0
- package/dist/src/services/GSwapLiquidityQueryService.d.ts.map +1 -0
- package/dist/src/services/GSwapPoolCalculationService.d.ts +200 -0
- package/dist/src/services/GSwapPoolCalculationService.d.ts.map +1 -0
- package/dist/src/services/GSwapPoolQueryService.d.ts +116 -0
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +1 -0
- package/dist/src/services/GSwapService.d.ts +14 -0
- package/dist/src/services/GSwapService.d.ts.map +1 -1
- package/dist/src/services/GSwapSwapService.d.ts +68 -0
- package/dist/src/services/GSwapSwapService.d.ts.map +1 -0
- package/dist/src/services/GalaChainBalanceService.d.ts +155 -0
- package/dist/src/services/GalaChainBalanceService.d.ts.map +1 -0
- package/dist/src/services/GalaChainGatewayClient.d.ts +32 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts.map +1 -1
- package/dist/src/services/GalaChainLockService.d.ts +144 -0
- package/dist/src/services/GalaChainLockService.d.ts.map +1 -0
- package/dist/src/services/GalaChainService.d.ts +23 -106
- package/dist/src/services/GalaChainService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTokenService.d.ts +108 -0
- package/dist/src/services/GalaChainTokenService.d.ts.map +1 -0
- package/dist/src/services/GalaChainTransferService.d.ts +205 -0
- package/dist/src/services/GalaChainTransferService.d.ts.map +1 -0
- package/dist/src/services/ImageService.d.ts +24 -8
- package/dist/src/services/ImageService.d.ts.map +1 -1
- package/dist/src/services/LaunchpadService.d.ts +77 -5
- package/dist/src/services/LaunchpadService.d.ts.map +1 -1
- package/dist/src/services/ModeratorService.d.ts +269 -0
- package/dist/src/services/ModeratorService.d.ts.map +1 -0
- package/dist/src/services/MultiPoolStateManager.d.ts +4 -6
- package/dist/src/services/MultiPoolStateManager.d.ts.map +1 -1
- package/dist/src/services/NetworkKeyedCacheService.d.ts +185 -0
- package/dist/src/services/NetworkKeyedCacheService.d.ts.map +1 -0
- package/dist/src/services/OverseerService.d.ts +322 -0
- package/dist/src/services/OverseerService.d.ts.map +1 -0
- package/dist/src/services/PoolCacheManager.d.ts +2 -2
- package/dist/src/services/PoolCacheManager.d.ts.map +1 -1
- package/dist/src/services/PoolService.d.ts +61 -7
- 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.map +1 -1
- package/dist/src/services/SignatureService.d.ts.map +1 -1
- package/dist/src/services/StreamChatService.d.ts +378 -0
- package/dist/src/services/StreamChatService.d.ts.map +1 -0
- package/dist/src/services/StreamTokenServiceBase.d.ts +371 -0
- package/dist/src/services/StreamTokenServiceBase.d.ts.map +1 -0
- package/dist/src/services/StreamWebSocketService.d.ts +268 -0
- package/dist/src/services/StreamWebSocketService.d.ts.map +1 -0
- package/dist/src/services/StreamingEventService.d.ts +431 -0
- package/dist/src/services/StreamingEventService.d.ts.map +1 -0
- package/dist/src/services/StreamingService.d.ts +547 -0
- package/dist/src/services/StreamingService.d.ts.map +1 -0
- 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 +214 -0
- package/dist/src/services/TokenBanService.d.ts.map +1 -0
- package/dist/src/services/TokenClassKeyService.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataCache.d.ts +36 -27
- package/dist/src/services/TokenMetadataCache.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataService.d.ts +24 -4
- package/dist/src/services/TokenMetadataService.d.ts.map +1 -1
- package/dist/src/services/TokenResolverService.d.ts.map +1 -1
- package/dist/src/services/TradeService.d.ts +73 -0
- package/dist/src/services/TradeService.d.ts.map +1 -1
- package/dist/src/services/UserService.d.ts +56 -3
- package/dist/src/services/UserService.d.ts.map +1 -1
- package/dist/src/services/WebSocketService.d.ts +3 -3
- package/dist/src/services/WebSocketService.d.ts.map +1 -1
- package/dist/src/services/WrapService.d.ts +18 -5
- package/dist/src/services/WrapService.d.ts.map +1 -1
- package/dist/src/services/WrappableTokenCache.d.ts +8 -36
- package/dist/src/services/WrappableTokenCache.d.ts.map +1 -1
- package/dist/src/services/WrappableTokenService.d.ts +18 -12
- package/dist/src/services/WrappableTokenService.d.ts.map +1 -1
- package/dist/src/services/shared/cache-helpers.d.ts +188 -0
- package/dist/src/services/shared/cache-helpers.d.ts.map +1 -0
- package/dist/src/services/shared/http-helpers.d.ts +146 -0
- package/dist/src/services/shared/http-helpers.d.ts.map +1 -0
- package/dist/src/services/shared/pagination-helpers.d.ts +157 -0
- package/dist/src/services/shared/pagination-helpers.d.ts.map +1 -0
- package/dist/src/services/shared/service-validators.d.ts +137 -0
- package/dist/src/services/shared/service-validators.d.ts.map +1 -0
- package/dist/src/services/shared/websocket-helpers.d.ts +158 -0
- package/dist/src/services/shared/websocket-helpers.d.ts.map +1 -0
- package/dist/src/test-constants.d.ts +29 -0
- package/dist/src/test-constants.d.ts.map +1 -0
- package/dist/src/types/api-key.dto.d.ts +300 -0
- package/dist/src/types/api-key.dto.d.ts.map +1 -0
- package/dist/src/types/backend-responses.d.ts +12 -0
- package/dist/src/types/backend-responses.d.ts.map +1 -1
- package/dist/src/types/ban.dto.d.ts +413 -0
- package/dist/src/types/ban.dto.d.ts.map +1 -0
- package/dist/src/types/burn.dto.d.ts +21 -0
- package/dist/src/types/burn.dto.d.ts.map +1 -1
- package/dist/src/types/chat-messages.dto.d.ts +193 -0
- package/dist/src/types/chat-messages.dto.d.ts.map +1 -0
- package/dist/src/types/comment.dto.d.ts +180 -0
- package/dist/src/types/comment.dto.d.ts.map +1 -0
- package/dist/src/types/comments.dto.d.ts +210 -0
- package/dist/src/types/comments.dto.d.ts.map +1 -0
- package/dist/src/types/common.d.ts +369 -0
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/constraints.d.ts +374 -0
- package/dist/src/types/constraints.d.ts.map +1 -0
- package/dist/src/types/content-flag.dto.d.ts +310 -0
- package/dist/src/types/content-flag.dto.d.ts.map +1 -0
- package/dist/src/types/content-reactions.dto.d.ts +132 -0
- package/dist/src/types/content-reactions.dto.d.ts.map +1 -0
- package/dist/src/types/dex-pool.dto.d.ts +13 -37
- package/dist/src/types/dex-pool.dto.d.ts.map +1 -1
- package/dist/src/types/dto.d.ts +8 -0
- package/dist/src/types/dto.d.ts.map +1 -1
- package/dist/src/types/galachain-api.types.d.ts +30 -0
- 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/launchpad.dto.d.ts +234 -131
- 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 +20 -35
- package/dist/src/types/lock.dto.d.ts.map +1 -1
- package/dist/src/types/moderator.dto.d.ts +581 -0
- package/dist/src/types/moderator.dto.d.ts.map +1 -0
- package/dist/src/types/options.dto.d.ts +25 -115
- package/dist/src/types/options.dto.d.ts.map +1 -1
- package/dist/src/types/overseer.dto.d.ts +420 -0
- package/dist/src/types/overseer.dto.d.ts.map +1 -0
- package/dist/src/types/pool.dto.d.ts +106 -0
- package/dist/src/types/pool.dto.d.ts.map +1 -0
- package/dist/src/types/result.types.d.ts +3 -2
- package/dist/src/types/result.types.d.ts.map +1 -1
- package/dist/src/types/session-auth.dto.d.ts +91 -0
- package/dist/src/types/session-auth.dto.d.ts.map +1 -0
- package/dist/src/types/stream-chat.dto.d.ts +815 -0
- package/dist/src/types/stream-chat.dto.d.ts.map +1 -0
- package/dist/src/types/streaming-events.dto.d.ts +586 -0
- package/dist/src/types/streaming-events.dto.d.ts.map +1 -0
- package/dist/src/types/streaming.dto.d.ts +1141 -0
- package/dist/src/types/streaming.dto.d.ts.map +1 -0
- package/dist/src/types/token-ban.dto.d.ts +195 -0
- package/dist/src/types/token-ban.dto.d.ts.map +1 -0
- package/dist/src/types/trade.dto.d.ts +21 -61
- package/dist/src/types/trade.dto.d.ts.map +1 -1
- package/dist/src/types/trades-query.dto.d.ts +127 -0
- package/dist/src/types/trades-query.dto.d.ts.map +1 -0
- package/dist/src/types/transfer.dto.d.ts +20 -15
- package/dist/src/types/transfer.dto.d.ts.map +1 -1
- package/dist/src/types/user.dto.d.ts +185 -73
- package/dist/src/types/user.dto.d.ts.map +1 -1
- package/dist/src/types/wrappable-token.dto.d.ts +6 -2
- 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.map +1 -1
- package/dist/src/utils/PoolKeyNormalizer.d.ts.map +1 -1
- package/dist/src/utils/ReconnectionManager.d.ts +142 -0
- package/dist/src/utils/ReconnectionManager.d.ts.map +1 -0
- package/dist/src/utils/SignatureHelper.d.ts +9 -0
- 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 +317 -0
- package/dist/src/utils/address-formatter.d.ts.map +1 -0
- package/dist/src/utils/agent-config.d.ts.map +1 -1
- package/dist/src/utils/amount-validator.d.ts +268 -0
- package/dist/src/utils/amount-validator.d.ts.map +1 -0
- package/dist/src/utils/api-patterns.d.ts +347 -0
- package/dist/src/utils/api-patterns.d.ts.map +1 -0
- package/dist/src/utils/array-helpers.d.ts +115 -0
- package/dist/src/utils/array-helpers.d.ts.map +1 -0
- package/dist/src/utils/async-patterns.d.ts +272 -0
- package/dist/src/utils/async-patterns.d.ts.map +1 -0
- package/dist/src/utils/auto-pagination.d.ts +195 -2
- package/dist/src/utils/auto-pagination.d.ts.map +1 -1
- package/dist/src/utils/bignumber-helpers.d.ts +119 -13
- 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/bondingCurveCalculations.d.ts.map +1 -1
- package/dist/src/utils/cacheWarmingHelpers.d.ts +2 -2
- package/dist/src/utils/cacheWarmingHelpers.d.ts.map +1 -1
- package/dist/src/utils/data-transform-patterns.d.ts +393 -0
- package/dist/src/utils/data-transform-patterns.d.ts.map +1 -0
- package/dist/src/utils/date-utils.d.ts +166 -0
- package/dist/src/utils/date-utils.d.ts.map +1 -1
- package/dist/src/utils/delimiter-parser.d.ts +139 -0
- package/dist/src/utils/delimiter-parser.d.ts.map +1 -0
- package/dist/src/utils/error-factories.d.ts +346 -1
- package/dist/src/utils/error-factories.d.ts.map +1 -1
- package/dist/src/utils/error-handling-patterns.d.ts +390 -0
- package/dist/src/utils/error-handling-patterns.d.ts.map +1 -0
- package/dist/src/utils/error-patterns.d.ts +360 -0
- package/dist/src/utils/error-patterns.d.ts.map +1 -0
- package/dist/src/utils/error-utils.d.ts +250 -0
- package/dist/src/utils/error-utils.d.ts.map +1 -1
- package/dist/src/utils/error-wrapper.d.ts +208 -0
- package/dist/src/utils/error-wrapper.d.ts.map +1 -0
- package/dist/src/utils/errors.d.ts +70 -0
- package/dist/src/utils/errors.d.ts.map +1 -1
- package/dist/src/utils/http-factory.d.ts +36 -0
- package/dist/src/utils/http-factory.d.ts.map +1 -0
- 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/numeric-patterns.d.ts +289 -0
- package/dist/src/utils/numeric-patterns.d.ts.map +1 -0
- package/dist/src/utils/numeric-wrappers.d.ts +146 -0
- package/dist/src/utils/numeric-wrappers.d.ts.map +1 -0
- package/dist/src/utils/object-extractors.d.ts +115 -0
- package/dist/src/utils/object-extractors.d.ts.map +1 -0
- package/dist/src/utils/object-patterns.d.ts +81 -0
- package/dist/src/utils/object-patterns.d.ts.map +1 -0
- package/dist/src/utils/pagination-helpers.d.ts +230 -0
- package/dist/src/utils/pagination-helpers.d.ts.map +1 -0
- package/dist/src/utils/pool-pair-parser.d.ts +3 -1
- package/dist/src/utils/pool-pair-parser.d.ts.map +1 -1
- package/dist/src/utils/pool-state-validator.d.ts.map +1 -1
- package/dist/src/utils/position-filters.d.ts +1 -2
- package/dist/src/utils/position-filters.d.ts.map +1 -1
- package/dist/src/utils/query-params.d.ts +0 -16
- package/dist/src/utils/query-params.d.ts.map +1 -1
- package/dist/src/utils/response-handlers.d.ts +149 -20
- package/dist/src/utils/response-handlers.d.ts.map +1 -1
- package/dist/src/utils/response-helpers.d.ts +28 -0
- package/dist/src/utils/response-helpers.d.ts.map +1 -0
- package/dist/src/utils/response-normalizers.d.ts +27 -49
- package/dist/src/utils/response-normalizers.d.ts.map +1 -1
- package/dist/src/utils/safe-parsers.d.ts +487 -0
- package/dist/src/utils/safe-parsers.d.ts.map +1 -0
- package/dist/src/utils/service-validators.d.ts +268 -0
- package/dist/src/utils/service-validators.d.ts.map +1 -0
- package/dist/src/utils/slippage-utils.d.ts.map +1 -1
- package/dist/src/utils/string-patterns.d.ts +404 -0
- package/dist/src/utils/string-patterns.d.ts.map +1 -0
- package/dist/src/utils/string-transforms.d.ts +89 -0
- package/dist/src/utils/string-transforms.d.ts.map +1 -0
- package/dist/src/utils/string-utils.d.ts +108 -0
- package/dist/src/utils/string-utils.d.ts.map +1 -0
- 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 +22 -8
- package/dist/src/utils/token-format-converter.d.ts.map +1 -1
- package/dist/src/utils/token-parser.d.ts +2 -2
- package/dist/src/utils/token-parser.d.ts.map +1 -1
- package/dist/src/utils/token-stringification.d.ts +168 -0
- package/dist/src/utils/token-stringification.d.ts.map +1 -0
- package/dist/src/utils/tokenNameNormalizer.d.ts +96 -0
- package/dist/src/utils/tokenNameNormalizer.d.ts.map +1 -0
- package/dist/src/utils/tokenNormalizer.d.ts +8 -45
- package/dist/src/utils/tokenNormalizer.d.ts.map +1 -1
- package/dist/src/utils/transfer-validation.d.ts +1 -1
- package/dist/src/utils/transfer-validation.d.ts.map +1 -1
- package/dist/src/utils/type-guard-factory.d.ts +260 -0
- package/dist/src/utils/type-guard-factory.d.ts.map +1 -0
- package/dist/src/utils/unique-key-generator.d.ts +148 -0
- package/dist/src/utils/unique-key-generator.d.ts.map +1 -0
- package/dist/src/utils/validation-helpers.d.ts +906 -183
- package/dist/src/utils/validation-helpers.d.ts.map +1 -1
- package/dist/src/utils/validation-patterns.d.ts +745 -0
- package/dist/src/utils/validation-patterns.d.ts.map +1 -0
- package/dist/src/utils/validation.d.ts +2 -30
- package/dist/src/utils/validation.d.ts.map +1 -1
- package/dist/src/utils/wallet.d.ts +12 -1
- package/dist/src/utils/wallet.d.ts.map +1 -1
- package/dist/src/utils/websocket-patterns.d.ts +681 -0
- package/dist/src/utils/websocket-patterns.d.ts.map +1 -0
- package/dist/src/utils/websocket-validators.d.ts.map +1 -1
- package/package.json +86 -19
- package/dist/src/bridge/strategies/index.d.ts +0 -9
- package/dist/src/bridge/strategies/index.d.ts.map +0 -1
- package/dist/src/constants/counts.d.ts +0 -66
- package/dist/src/constants/counts.d.ts.map +0 -1
- package/dist/src/services/WebSocketManager.d.ts +0 -99
- package/dist/src/services/WebSocketManager.d.ts.map +0 -1
- package/dist/src/types/eip712-types.d.ts +0 -140
- package/dist/src/types/eip712-types.d.ts.map +0 -1
- package/dist/src/types/pool-state-manager-config.dto.d.ts +0 -103
- package/dist/src/types/pool-state-manager-config.dto.d.ts.map +0 -1
- package/dist/src/utils/number-utils.d.ts +0 -94
- package/dist/src/utils/number-utils.d.ts.map +0 -1
- package/dist/src/utils/precision-math.d.ts +0 -37
- package/dist/src/utils/precision-math.d.ts.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { LoggerBase } from './BaseService';
|
|
2
|
+
import { WebSocketService } from './WebSocketService';
|
|
3
|
+
import { DexQuoteService } from './DexQuoteService';
|
|
4
|
+
import type { SwapQuoteParams, SwapQuoteResult, ExecuteSwapParams, ExecuteSwapResult } from '../types/gswap.dto';
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for GSwapSwapService
|
|
7
|
+
*/
|
|
8
|
+
export interface GSwapSwapServiceConfig {
|
|
9
|
+
privateKey?: string;
|
|
10
|
+
getWalletAddress: () => string | undefined;
|
|
11
|
+
bundlerBaseUrl: string;
|
|
12
|
+
gatewayBaseUrl: string;
|
|
13
|
+
webSocketService: WebSocketService;
|
|
14
|
+
dexQuoteService?: DexQuoteService;
|
|
15
|
+
debugMode?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Swap operations for GSwap DEX
|
|
19
|
+
*
|
|
20
|
+
* @since 5.15.0
|
|
21
|
+
*/
|
|
22
|
+
export declare class GSwapSwapService extends LoggerBase {
|
|
23
|
+
private privateKey;
|
|
24
|
+
private getWalletAddress;
|
|
25
|
+
private bundlerBaseUrl;
|
|
26
|
+
private gatewayBaseUrl;
|
|
27
|
+
private webSocketService;
|
|
28
|
+
private dexQuoteService;
|
|
29
|
+
private tokenConverter;
|
|
30
|
+
constructor(config: GSwapSwapServiceConfig);
|
|
31
|
+
/**
|
|
32
|
+
* Convert a token pair from Launchpad format to GSwap format
|
|
33
|
+
*/
|
|
34
|
+
private convertTokenPair;
|
|
35
|
+
/**
|
|
36
|
+
* Calculate personal sign prefix for GalaChain compatibility
|
|
37
|
+
*/
|
|
38
|
+
private calculatePersonalSignPrefix;
|
|
39
|
+
/**
|
|
40
|
+
* Calculate execution price (output per unit input)
|
|
41
|
+
*/
|
|
42
|
+
private calculateExecutionPrice;
|
|
43
|
+
/**
|
|
44
|
+
* Ensure WebSocket is connected before transaction monitoring
|
|
45
|
+
*/
|
|
46
|
+
private ensureWebSocketConnected;
|
|
47
|
+
/**
|
|
48
|
+
* Build strings instructions for swap state locking
|
|
49
|
+
*/
|
|
50
|
+
private buildSwapStringsInstructions;
|
|
51
|
+
/**
|
|
52
|
+
* Send Swap transaction directly to bundler
|
|
53
|
+
*/
|
|
54
|
+
private sendSwapToBundler;
|
|
55
|
+
/**
|
|
56
|
+
* Get swap quote for spending a known input amount
|
|
57
|
+
*/
|
|
58
|
+
getSwapQuoteExactInput(params: SwapQuoteParams): Promise<SwapQuoteResult>;
|
|
59
|
+
/**
|
|
60
|
+
* Get swap quote for receiving a known output amount
|
|
61
|
+
*/
|
|
62
|
+
getSwapQuoteExactOutput(params: SwapQuoteParams): Promise<SwapQuoteResult>;
|
|
63
|
+
/**
|
|
64
|
+
* Execute a token swap
|
|
65
|
+
*/
|
|
66
|
+
executeSwap(params: ExecuteSwapParams): Promise<ExecuteSwapResult>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=GSwapSwapService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GSwapSwapService.d.ts","sourceRoot":"","sources":["../../../src/services/GSwapSwapService.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAe3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAYpD,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAG5B;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,gBAAgB,CAA2B;IACnD,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,eAAe,CAA8B;IACrD,OAAO,CAAC,cAAc,CAAuB;gBAEjC,MAAM,EAAE,sBAAsB;IAW1C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAUxB;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAInC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAY/B;;OAEG;YACW,wBAAwB;IAMtC;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAqBpC;;OAEG;YACW,iBAAiB;IAgL/B;;OAEG;IACG,sBAAsB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAwH/E;;OAEG;IACG,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IA+GhF;;OAEG;IACG,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAwFzE"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GalaChain Balance Service
|
|
3
|
+
*
|
|
4
|
+
* Service responsible for querying token balances from GalaChain.
|
|
5
|
+
* Extracted from GalaChainService for single responsibility.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - GALA balance queries
|
|
9
|
+
* - Generic token balance queries
|
|
10
|
+
* - Hold filtering (locked, in-use)
|
|
11
|
+
* - Available quantity calculation
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const balanceService = new GalaChainBalanceService(http, debug);
|
|
16
|
+
*
|
|
17
|
+
* // Get GALA balance
|
|
18
|
+
* const galaBalance = await balanceService.fetchGalaBalance({
|
|
19
|
+
* owner: "eth|1234567890abcdef1234567890abcdef12345678",
|
|
20
|
+
* collection: "GALA",
|
|
21
|
+
* category: "Unit",
|
|
22
|
+
* additionalKey: "none",
|
|
23
|
+
* type: "none",
|
|
24
|
+
* instance: "0"
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* // Get any token balance with hold details
|
|
28
|
+
* const tokenBalance = await balanceService.fetchTokenBalance({
|
|
29
|
+
* owner: "eth|...",
|
|
30
|
+
* collection: "ANIME",
|
|
31
|
+
* category: "Unit",
|
|
32
|
+
* additionalKey: "none",
|
|
33
|
+
* type: "none",
|
|
34
|
+
* instance: "0"
|
|
35
|
+
* }, true); // include expired holds
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @category Services
|
|
39
|
+
* @since 5.15.0
|
|
40
|
+
*/
|
|
41
|
+
import { HttpClient } from '../utils/http';
|
|
42
|
+
import { BaseService } from './BaseService';
|
|
43
|
+
import { TokenBalanceResult, TokenHold } from '../types/user.dto';
|
|
44
|
+
/**
|
|
45
|
+
* Sum the quantities of multiple token holds
|
|
46
|
+
*
|
|
47
|
+
* @param holds Array of token holds
|
|
48
|
+
* @returns Total quantity as decimal string
|
|
49
|
+
*/
|
|
50
|
+
declare function sumHoldQuantities(holds: TokenHold[]): string;
|
|
51
|
+
/**
|
|
52
|
+
* Filter out expired holds based on current timestamp
|
|
53
|
+
*
|
|
54
|
+
* @param holds Array of token holds
|
|
55
|
+
* @param withExpired If true, return all holds including expired
|
|
56
|
+
* @returns Filtered array of holds
|
|
57
|
+
*/
|
|
58
|
+
declare function filterHolds(holds: TokenHold[], withExpired: boolean): TokenHold[];
|
|
59
|
+
/**
|
|
60
|
+
* Calculate available (unlocked, not in-use) quantity
|
|
61
|
+
*
|
|
62
|
+
* @param total Total quantity held
|
|
63
|
+
* @param locked Quantity locked (from lockedHolds)
|
|
64
|
+
* @param inUse Quantity in use (from inUseHolds)
|
|
65
|
+
* @returns Available quantity as decimal string
|
|
66
|
+
*/
|
|
67
|
+
declare function calculateAvailableQuantity(total: string, locked?: string, inUse?: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Balance query request parameters
|
|
70
|
+
*/
|
|
71
|
+
export interface BalanceQueryParams {
|
|
72
|
+
owner: string;
|
|
73
|
+
collection: string;
|
|
74
|
+
category: string;
|
|
75
|
+
additionalKey: string;
|
|
76
|
+
type: string;
|
|
77
|
+
instance: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* GalaChain Balance Service
|
|
81
|
+
*
|
|
82
|
+
* Handles all balance-related queries to GalaChain gateway.
|
|
83
|
+
*/
|
|
84
|
+
export declare class GalaChainBalanceService extends BaseService {
|
|
85
|
+
/**
|
|
86
|
+
* Initialize GalaChain Balance Service
|
|
87
|
+
*
|
|
88
|
+
* @param http - HTTP client configured for GalaChain gateway
|
|
89
|
+
* @param debug - Enable debug logging (default: false)
|
|
90
|
+
*/
|
|
91
|
+
constructor(http: HttpClient, debug?: boolean);
|
|
92
|
+
/**
|
|
93
|
+
* Determines the GalaChain channel for a given token collection.
|
|
94
|
+
* Most tokens are on the asset channel, but some tokens like MUSIC
|
|
95
|
+
* are on their own dedicated channels.
|
|
96
|
+
*
|
|
97
|
+
* @param collection - Token collection name (e.g., "$GMUSIC", "$MUSIC", "ANIME")
|
|
98
|
+
* @returns Channel name: 'asset', 'music', etc.
|
|
99
|
+
*/
|
|
100
|
+
private getChannelForCollection;
|
|
101
|
+
/**
|
|
102
|
+
* Fetches GALA balance for a user from GalaChain
|
|
103
|
+
*
|
|
104
|
+
* Uses the GalaChain FetchBalances endpoint with GALA token parameters.
|
|
105
|
+
*
|
|
106
|
+
* @param requestBody Balance query parameters
|
|
107
|
+
* @returns Promise<TokenBalanceResult | null> Clean balance information or null if not held
|
|
108
|
+
* @throws Error if balance fetch fails
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* const balance = await balanceService.fetchGalaBalance({
|
|
113
|
+
* owner: "eth|1234567890abcdef1234567890abcdef12345678",
|
|
114
|
+
* collection: "GALA",
|
|
115
|
+
* category: "Unit",
|
|
116
|
+
* additionalKey: "none",
|
|
117
|
+
* type: "none",
|
|
118
|
+
* instance: "0"
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
fetchGalaBalance(requestBody: BalanceQueryParams): Promise<TokenBalanceResult | null>;
|
|
123
|
+
/**
|
|
124
|
+
* Fetches token balance for any token from GalaChain
|
|
125
|
+
*
|
|
126
|
+
* Generic method for querying token balances using the GalaChain FetchBalances endpoint.
|
|
127
|
+
* Returns balance information including locked/in-use holds and computed available quantity.
|
|
128
|
+
*
|
|
129
|
+
* @param requestBody Balance query parameters
|
|
130
|
+
* @param withExpired If true, include expired holds in results (default: false)
|
|
131
|
+
* @returns Promise<TokenBalanceResult | null> Clean balance information or null if not held
|
|
132
|
+
* @throws Error if balance fetch fails
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* const balance = await balanceService.fetchTokenBalance({
|
|
137
|
+
* owner: "eth|1234567890abcdef1234567890abcdef12345678",
|
|
138
|
+
* collection: "ANIME",
|
|
139
|
+
* category: "Unit",
|
|
140
|
+
* additionalKey: "none",
|
|
141
|
+
* type: "none",
|
|
142
|
+
* instance: "0"
|
|
143
|
+
* });
|
|
144
|
+
*
|
|
145
|
+
* // Check lock details
|
|
146
|
+
* if (balance?.lockedHolds?.length) {
|
|
147
|
+
* console.log('Locked:', balance.lockedQuantity);
|
|
148
|
+
* console.log('Available:', balance.availableQuantity);
|
|
149
|
+
* }
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
fetchTokenBalance(requestBody: BalanceQueryParams, withExpired?: boolean): Promise<TokenBalanceResult | null>;
|
|
153
|
+
}
|
|
154
|
+
export { sumHoldQuantities, filterHolds, calculateAvailableQuantity };
|
|
155
|
+
//# sourceMappingURL=GalaChainBalanceService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalaChainBalanceService.d.ts","sourceRoot":"","sources":["../../../src/services/GalaChainBalanceService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,OAAO,EAEL,kBAAkB,EAClB,SAAS,EACV,MAAM,mBAAmB,CAAC;AAM3B;;;;;GAKG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,MAAM,CAOrD;AAED;;;;;;GAMG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,CAS1E;AAED;;;;;;;GAOG;AACH,iBAAS,0BAA0B,CACjC,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAY,EACpB,KAAK,GAAE,MAAY,GAClB,MAAM,CAER;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,WAAW;IACtD;;;;;OAKG;gBACS,IAAI,EAAE,UAAU,EAAE,KAAK,GAAE,OAAe;IAIpD;;;;;;;OAOG;IACH,OAAO,CAAC,uBAAuB;IAe/B;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,gBAAgB,CAAC,WAAW,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAI3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,iBAAiB,CACrB,WAAW,EAAE,kBAAkB,EAC/B,WAAW,GAAE,OAAe,GAC3B,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CA4FtC;AAGD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @category GalaChain
|
|
19
19
|
* @since 3.0.0
|
|
20
20
|
*/
|
|
21
|
-
import { GalaChainGatewayResponse, GalaChainPoolData, GalaChainGetPoolDataRequest, GalaChainGetPositionsRequest, GalaChainGetPositionsResponse, GalaChainGetRemoveLiquidityEstimationRequest, GalaChainRemoveLiquidityEstimation } from '../types/galachain-api.types';
|
|
21
|
+
import { GalaChainGatewayResponse, GalaChainPoolData, GalaChainGetPoolDataRequest, GalaChainGetPositionsRequest, GalaChainGetPositionsResponse, GalaChainGetRemoveLiquidityEstimationRequest, GalaChainRemoveLiquidityEstimation, GalaChainSlot0Data, GalaChainGetSlot0Request } from '../types/galachain-api.types';
|
|
22
22
|
/**
|
|
23
23
|
* GalaChain Gateway Client configuration
|
|
24
24
|
*/
|
|
@@ -60,6 +60,37 @@ export declare class GalaChainGatewayClient {
|
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
62
|
getPoolData(request: GalaChainGetPoolDataRequest): Promise<GalaChainPoolData>;
|
|
63
|
+
/**
|
|
64
|
+
* Fetch minimal pool state (Slot0) from GalaChain DEX v3 contract
|
|
65
|
+
*
|
|
66
|
+
* Retrieves the essential pool state data needed for pricing and liquidity calculations:
|
|
67
|
+
* - sqrtPrice: Current sqrt price (decimal string)
|
|
68
|
+
* - tick: Current tick number
|
|
69
|
+
* - liquidity: Current pool liquidity
|
|
70
|
+
* - grossPoolLiquidity: Optional gross pool liquidity value
|
|
71
|
+
*
|
|
72
|
+
* Lightweight alternative to getPoolData() when only slot0 data is needed.
|
|
73
|
+
*
|
|
74
|
+
* **Critical**: tokens must be TokenClassKey objects, not strings.
|
|
75
|
+
*
|
|
76
|
+
* @param request Slot0 request with token0, token1 (TokenClassKey objects), and fee tier
|
|
77
|
+
* @returns Promise<GalaChainSlot0Data> Minimal pool state data
|
|
78
|
+
* @throws ApiError if tokens are strings instead of objects, or request fails
|
|
79
|
+
* @category GalaChain
|
|
80
|
+
* @since 5.16.0
|
|
81
|
+
*
|
|
82
|
+
* @example Fetch Slot0 for GALA/GUSDC
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const slot0 = await client.getSlot0({
|
|
85
|
+
* token0: { collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' },
|
|
86
|
+
* token1: { collection: 'GUSDC', category: 'Unit', type: 'none', additionalKey: 'none' },
|
|
87
|
+
* fee: 3000 // 0.3% fee tier
|
|
88
|
+
* });
|
|
89
|
+
* console.log('Current price:', slot0.sqrtPrice);
|
|
90
|
+
* console.log('Current tick:', slot0.tick);
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
getSlot0(request: GalaChainGetSlot0Request): Promise<GalaChainSlot0Data>;
|
|
63
94
|
/**
|
|
64
95
|
* Query liquidity positions from GalaChain DEX v3 contract
|
|
65
96
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalaChainGatewayClient.d.ts","sourceRoot":"","sources":["../../../src/services/GalaChainGatewayClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"GalaChainGatewayClient.d.ts","sourceRoot":"","sources":["../../../src/services/GalaChainGatewayClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,4CAA4C,EAC5C,kCAAkC,EAElC,kBAAkB,EAClB,wBAAwB,EAKzB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,MAAM,CAAgB;gBAElB,MAAM,EAAE,4BAA4B;IAIhD;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+CnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,QAAQ,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA2C9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACG,YAAY,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,6BAA6B,CAAC;IA0DjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACG,eAAe,CACnB,iBAAiB,EAAE,MAAM,EAEzB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAE7C,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7C,WAAW,CAAC,EAAE,MAAM,EACpB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,iBAAiB,CAAC,EAAE,MAAM,EAC1B,kBAAkB,CAAC,EAAE,MAAM,GAE1B,OAAO,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IA+HlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,4BAA4B,CAChC,OAAO,EAAE,4CAA4C,GACpD,OAAO,CAAC,kCAAkC,CAAC;IAkC9C;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAexB;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;CAmBpB;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GalaChain Lock Service
|
|
3
|
+
*
|
|
4
|
+
* Service responsible for token locking and unlocking operations on GalaChain.
|
|
5
|
+
* Extracted from GalaChainService for single responsibility.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Batch token locking (staking, escrow, vesting)
|
|
9
|
+
* - Batch token unlocking
|
|
10
|
+
* - Lock authority management
|
|
11
|
+
* - Expiration handling
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const lockService = new GalaChainLockService(http, wallet, tokenResolver, debug);
|
|
16
|
+
*
|
|
17
|
+
* // Lock tokens for staking
|
|
18
|
+
* const result = await lockService.lockTokens({
|
|
19
|
+
* tokens: [
|
|
20
|
+
* { tokenName: 'anime', amount: '100', lockAuthority: 'eth|0x1234...' },
|
|
21
|
+
* { tokenName: 'dragon', amount: '50', expires: Date.now() + 86400000 }
|
|
22
|
+
* ]
|
|
23
|
+
* });
|
|
24
|
+
*
|
|
25
|
+
* // Unlock previously locked tokens
|
|
26
|
+
* const unlockResult = await lockService.unlockTokens({
|
|
27
|
+
* tokens: [{ tokenName: 'anime', amount: '50' }]
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @category Services
|
|
32
|
+
* @since 5.15.0
|
|
33
|
+
*/
|
|
34
|
+
import { Wallet } from 'ethers';
|
|
35
|
+
import { HttpClient } from '../utils/http';
|
|
36
|
+
import '../utils/errors';
|
|
37
|
+
import { TokenResolverService } from './TokenResolverService';
|
|
38
|
+
import { BaseService } from './BaseService';
|
|
39
|
+
import { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from '../types/lock.dto';
|
|
40
|
+
/**
|
|
41
|
+
* GalaChain Lock Service
|
|
42
|
+
*
|
|
43
|
+
* Handles all token locking and unlocking operations on GalaChain.
|
|
44
|
+
*/
|
|
45
|
+
export declare class GalaChainLockService extends BaseService {
|
|
46
|
+
private readonly wallet;
|
|
47
|
+
private readonly tokenResolver;
|
|
48
|
+
private readonly signatureHelper;
|
|
49
|
+
/**
|
|
50
|
+
* Initialize GalaChain Lock Service
|
|
51
|
+
*
|
|
52
|
+
* @param http - HTTP client configured for GalaChain gateway
|
|
53
|
+
* @param wallet - Ethers wallet for signing transactions (optional for read-only operations)
|
|
54
|
+
* @param tokenResolver - Token resolver service for vault address resolution
|
|
55
|
+
* @param debug - Enable debug logging (default: false)
|
|
56
|
+
*/
|
|
57
|
+
constructor(http: HttpClient, wallet: Wallet | undefined, tokenResolver: TokenResolverService, debug?: boolean);
|
|
58
|
+
/**
|
|
59
|
+
* Lock tokens on GalaChain (batch operation)
|
|
60
|
+
*
|
|
61
|
+
* Supports locking multiple token types in a single transaction.
|
|
62
|
+
* Places holds on tokens, making them non-transferable
|
|
63
|
+
* until unlocked by the lock authority. Useful for staking, escrow, vesting,
|
|
64
|
+
* or other hold scenarios.
|
|
65
|
+
*
|
|
66
|
+
* @param data - Lock parameters containing array of tokens to lock
|
|
67
|
+
* @returns LockTokensResult with transaction ID and locked token details
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* // Lock a single token
|
|
72
|
+
* const result = await lockService.lockTokens({
|
|
73
|
+
* tokens: [{ tokenName: 'anime', amount: '100' }]
|
|
74
|
+
* });
|
|
75
|
+
*
|
|
76
|
+
* // Lock multiple tokens with different settings
|
|
77
|
+
* const result = await lockService.lockTokens({
|
|
78
|
+
* tokens: [
|
|
79
|
+
* { tokenName: 'anime', amount: '100', lockAuthority: 'eth|0x1234...' },
|
|
80
|
+
* { tokenName: 'dragon', amount: '50', expires: Date.now() + 86400000 }
|
|
81
|
+
* ]
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @throws {LockError} When validation fails or lock operation is rejected
|
|
86
|
+
*/
|
|
87
|
+
lockTokens(data: LockTokensData): Promise<LockTokensResult>;
|
|
88
|
+
/**
|
|
89
|
+
* Unlock previously locked tokens on GalaChain (batch operation)
|
|
90
|
+
*
|
|
91
|
+
* Supports unlocking multiple token types in a single transaction.
|
|
92
|
+
* Releases locked tokens, making them available for transfer again.
|
|
93
|
+
* Must be signed by the lock authority (the address that created the lock
|
|
94
|
+
* or was designated as lock authority).
|
|
95
|
+
*
|
|
96
|
+
* @param data - Unlock parameters containing array of tokens to unlock
|
|
97
|
+
* @returns UnlockTokensResult with transaction ID and unlocked token details
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* // Unlock a single token
|
|
102
|
+
* const result = await lockService.unlockTokens({
|
|
103
|
+
* tokens: [{ tokenName: 'anime', amount: '50' }]
|
|
104
|
+
* });
|
|
105
|
+
*
|
|
106
|
+
* // Unlock multiple tokens
|
|
107
|
+
* const result = await lockService.unlockTokens({
|
|
108
|
+
* tokens: [
|
|
109
|
+
* { tokenName: 'anime', amount: '50' },
|
|
110
|
+
* { tokenName: 'dragon', amount: '25', name: 'staking-lock-v1' }
|
|
111
|
+
* ]
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @throws {LockError} When validation fails or unlock operation is rejected
|
|
116
|
+
*/
|
|
117
|
+
unlockTokens(data: UnlockTokensData): Promise<UnlockTokensResult>;
|
|
118
|
+
/**
|
|
119
|
+
* Validate lock tokens data (batch operation)
|
|
120
|
+
*/
|
|
121
|
+
private validateLockTokensData;
|
|
122
|
+
/**
|
|
123
|
+
* Validate unlock tokens data (batch operation)
|
|
124
|
+
*/
|
|
125
|
+
private validateUnlockTokensData;
|
|
126
|
+
/**
|
|
127
|
+
* Extract lock result from GalaChain response
|
|
128
|
+
*/
|
|
129
|
+
private extractLockResult;
|
|
130
|
+
/**
|
|
131
|
+
* Extract unlock result from GalaChain response
|
|
132
|
+
*/
|
|
133
|
+
private extractUnlockResult;
|
|
134
|
+
/**
|
|
135
|
+
* Handle lock/unlock operation errors
|
|
136
|
+
*/
|
|
137
|
+
private handleLockError;
|
|
138
|
+
/**
|
|
139
|
+
* Resolve token name to tokenInstance object for lock/unlock operations
|
|
140
|
+
* Uses TokenResolverService to get vault address, then parses it to extract tokenInstance components
|
|
141
|
+
*/
|
|
142
|
+
private resolveTokenInstance;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=GalaChainLockService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalaChainLockService.d.ts","sourceRoot":"","sources":["../../../src/services/GalaChainLockService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,iBAAiB,CAAC;AAQzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EACL,cAAc,EACd,gBAAgB,EAGhB,gBAAgB,EAChB,kBAAkB,EAMnB,MAAM,mBAAmB,CAAC;AAiB3B;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IAajD,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAbhC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA8B;IAE9D;;;;;;;OAOG;gBAED,IAAI,EAAE,UAAU,EACC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,aAAa,EAAE,oBAAoB,EACpD,KAAK,GAAE,OAAe;IAMxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA8IjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAoIvE;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA0E9B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAqDhC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAuBzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAuB3B;;OAEG;IACH,OAAO,CAAC,eAAe;IAsDvB;;;OAGG;YACW,oBAAoB;CAwDnC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* GalaChain Service
|
|
2
|
+
* GalaChain Service (Facade)
|
|
3
3
|
*
|
|
4
4
|
* Consolidated service for all GalaChain gateway operations.
|
|
5
|
-
* This service
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* This service delegates to focused sub-services while maintaining
|
|
6
|
+
* backward compatibility with existing API consumers.
|
|
7
|
+
*
|
|
8
|
+
* Sub-Services:
|
|
9
|
+
* - GalaChainBalanceService: Balance queries (GALA, tokens)
|
|
10
|
+
* - GalaChainTokenService: Token metadata and supply queries
|
|
11
|
+
* - GalaChainLockService: Token locking/unlocking operations
|
|
12
|
+
* - GalaChainTransferService: Token transfers and burns
|
|
8
13
|
*
|
|
9
14
|
* Features:
|
|
10
15
|
* - Pool details fetching (for bonding curves)
|
|
@@ -12,6 +17,8 @@
|
|
|
12
17
|
* - Token balance queries
|
|
13
18
|
* - GALA transfers with EIP-712 signatures
|
|
14
19
|
* - Token transfers with EIP-712 signatures
|
|
20
|
+
* - Token locking/unlocking for staking, escrow, vesting
|
|
21
|
+
* - Token burning (irreversible)
|
|
15
22
|
*
|
|
16
23
|
* @example
|
|
17
24
|
* ```typescript
|
|
@@ -55,14 +62,21 @@ import { TransferGalaData, TransferTokenData } from '../types/transfer.dto';
|
|
|
55
62
|
import { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from '../types/lock.dto';
|
|
56
63
|
import { BurnTokensData, BurnTokensResult } from '../types/burn.dto';
|
|
57
64
|
import { TokenClassWithSupply } from '../types/launchpad.dto';
|
|
65
|
+
import { BalanceQueryParams } from './GalaChainBalanceService';
|
|
58
66
|
/**
|
|
59
|
-
* GalaChain Service for blockchain operations
|
|
67
|
+
* GalaChain Service for blockchain operations (Facade Pattern)
|
|
68
|
+
*
|
|
69
|
+
* This service maintains backward compatibility while delegating to
|
|
70
|
+
* focused sub-services for better separation of concerns.
|
|
60
71
|
*/
|
|
61
72
|
export declare class GalaChainService extends BaseService {
|
|
62
73
|
private readonly wallet;
|
|
63
74
|
private readonly tokenResolver;
|
|
64
75
|
private readonly publicAxios?;
|
|
65
|
-
private readonly
|
|
76
|
+
private readonly balanceService;
|
|
77
|
+
private readonly tokenService;
|
|
78
|
+
private readonly lockService;
|
|
79
|
+
private readonly transferService;
|
|
66
80
|
/**
|
|
67
81
|
* Initialize GalaChain Service
|
|
68
82
|
*
|
|
@@ -111,15 +125,6 @@ export declare class GalaChainService extends BaseService {
|
|
|
111
125
|
* ```
|
|
112
126
|
*/
|
|
113
127
|
fetchLaunchTokenFee(): Promise<number>;
|
|
114
|
-
/**
|
|
115
|
-
* Determines the GalaChain channel for a given token collection.
|
|
116
|
-
* Most tokens are on the asset channel, but some tokens like MUSIC
|
|
117
|
-
* are on their own dedicated channels.
|
|
118
|
-
*
|
|
119
|
-
* @param collection - Token collection name (e.g., "$GMUSIC", "$MUSIC", "ANIME")
|
|
120
|
-
* @returns Channel name: 'asset', 'music', etc.
|
|
121
|
-
*/
|
|
122
|
-
private getChannelForCollection;
|
|
123
128
|
/**
|
|
124
129
|
* Validates fetch pool details data
|
|
125
130
|
*/
|
|
@@ -145,14 +150,7 @@ export declare class GalaChainService extends BaseService {
|
|
|
145
150
|
* });
|
|
146
151
|
* ```
|
|
147
152
|
*/
|
|
148
|
-
fetchGalaBalance(requestBody:
|
|
149
|
-
owner: string;
|
|
150
|
-
collection: string;
|
|
151
|
-
category: string;
|
|
152
|
-
additionalKey: string;
|
|
153
|
-
type: string;
|
|
154
|
-
instance: string;
|
|
155
|
-
}): Promise<TokenBalanceResult | null>;
|
|
153
|
+
fetchGalaBalance(requestBody: BalanceQueryParams): Promise<TokenBalanceResult | null>;
|
|
156
154
|
/**
|
|
157
155
|
* Fetches token balance for any token from GalaChain
|
|
158
156
|
*
|
|
@@ -182,14 +180,7 @@ export declare class GalaChainService extends BaseService {
|
|
|
182
180
|
* }
|
|
183
181
|
* ```
|
|
184
182
|
*/
|
|
185
|
-
fetchTokenBalance(requestBody:
|
|
186
|
-
owner: string;
|
|
187
|
-
collection: string;
|
|
188
|
-
category: string;
|
|
189
|
-
additionalKey: string;
|
|
190
|
-
type: string;
|
|
191
|
-
instance: string;
|
|
192
|
-
}, withExpired?: boolean): Promise<TokenBalanceResult | null>;
|
|
183
|
+
fetchTokenBalance(requestBody: BalanceQueryParams, withExpired?: boolean): Promise<TokenBalanceResult | null>;
|
|
193
184
|
/**
|
|
194
185
|
* Fetch token metadata from GalaChain using native FetchTokenClasses API
|
|
195
186
|
*
|
|
@@ -380,7 +371,7 @@ export declare class GalaChainService extends BaseService {
|
|
|
380
371
|
/**
|
|
381
372
|
* Permanently burn tokens on GalaChain
|
|
382
373
|
*
|
|
383
|
-
*
|
|
374
|
+
* WARNING: THIS OPERATION IS IRREVERSIBLE
|
|
384
375
|
* Burned tokens cannot be recovered or recreated.
|
|
385
376
|
* This reduces the total supply of the token.
|
|
386
377
|
*
|
|
@@ -407,79 +398,5 @@ export declare class GalaChainService extends BaseService {
|
|
|
407
398
|
* ```
|
|
408
399
|
*/
|
|
409
400
|
burnTokens(data: BurnTokensData): Promise<BurnTokensResult>;
|
|
410
|
-
/**
|
|
411
|
-
* Extract burn result from GalaChain response
|
|
412
|
-
*/
|
|
413
|
-
private extractBurnResult;
|
|
414
|
-
/**
|
|
415
|
-
* Validate burn tokens data
|
|
416
|
-
*/
|
|
417
|
-
private validateBurnTokensData;
|
|
418
|
-
/**
|
|
419
|
-
* Handle burn operation errors
|
|
420
|
-
*/
|
|
421
|
-
private handleBurnError;
|
|
422
|
-
/**
|
|
423
|
-
* Validate lock tokens data (batch operation)
|
|
424
|
-
*/
|
|
425
|
-
private validateLockTokensData;
|
|
426
|
-
/**
|
|
427
|
-
* Validate unlock tokens data (batch operation)
|
|
428
|
-
*/
|
|
429
|
-
private validateUnlockTokensData;
|
|
430
|
-
/**
|
|
431
|
-
* Extract lock result from GalaChain response
|
|
432
|
-
*/
|
|
433
|
-
private extractLockResult;
|
|
434
|
-
/**
|
|
435
|
-
* Extract unlock result from GalaChain response
|
|
436
|
-
*/
|
|
437
|
-
private extractUnlockResult;
|
|
438
|
-
/**
|
|
439
|
-
* Handle lock/unlock operation errors
|
|
440
|
-
*/
|
|
441
|
-
private handleLockError;
|
|
442
|
-
/**
|
|
443
|
-
* Validate GALA transfer data
|
|
444
|
-
*/
|
|
445
|
-
private validateTransferGalaData;
|
|
446
|
-
/**
|
|
447
|
-
* Validate token transfer data
|
|
448
|
-
*/
|
|
449
|
-
private validateTransferTokenData;
|
|
450
|
-
/**
|
|
451
|
-
* Validate lock token data
|
|
452
|
-
*/
|
|
453
|
-
private validateLockTokenData;
|
|
454
|
-
/**
|
|
455
|
-
* Validate unlock token data
|
|
456
|
-
*/
|
|
457
|
-
private validateUnlockTokenData;
|
|
458
|
-
/**
|
|
459
|
-
* Resolve token name to tokenInstance object for transfers
|
|
460
|
-
* Uses TokenResolverService to get vault address, then parses it to extract tokenInstance components
|
|
461
|
-
*/
|
|
462
|
-
private resolveTokenInstance;
|
|
463
|
-
/**
|
|
464
|
-
* Parse vault address and extract token instance components
|
|
465
|
-
* Vault format: service|Token$Unit$UNI$eth:9401b171307bE656f00F9e18DF756643FD3a91dE$launchpad
|
|
466
|
-
* Returns structured tokenInstance object like transferGala uses
|
|
467
|
-
*/
|
|
468
|
-
private resolveTokenInstanceFromVaultAddress;
|
|
469
|
-
/**
|
|
470
|
-
* Extract transaction ID from transfer response
|
|
471
|
-
* Handles both GalaChain format ({ Status: 1, Data: [...] }) and legacy format ({ transactionId: "..." })
|
|
472
|
-
*
|
|
473
|
-
* @param response Transfer response from GalaChain
|
|
474
|
-
* @param transferType Type of transfer for success message ("gala" or "token")
|
|
475
|
-
* @returns Transaction ID string
|
|
476
|
-
* @throws TransferError if transaction ID cannot be extracted
|
|
477
|
-
* @private
|
|
478
|
-
*/
|
|
479
|
-
private extractTransactionIdFromResponse;
|
|
480
|
-
/**
|
|
481
|
-
* Handle transfer/lock/unlock errors with proper typing and context
|
|
482
|
-
*/
|
|
483
|
-
private handleTransferError;
|
|
484
401
|
}
|
|
485
402
|
//# sourceMappingURL=GalaChainService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalaChainService.d.ts","sourceRoot":"","sources":["../../../src/services/GalaChainService.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"GalaChainService.d.ts","sourceRoot":"","sources":["../../../src/services/GalaChainService.ts"],"names":[],"mappings":"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"}
|