@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gala-chain/launchpad-sdk",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"description": "TypeScript SDK for Gala Launchpad Backend API -
|
|
3
|
+
"version": "5.0.4-beta.0",
|
|
4
|
+
"description": "TypeScript SDK for Gala Launchpad Backend API - 116 public methods supporting optional wallet (read-only and full-access modes). Production-ready DeFi token launchpad integration with AgentConfig setup, GalaChain trading, GSwap DEX integration, price history, token creation, DEX pool discovery, WebSocket event watchers, streaming, chat, bans, moderator invites, and comprehensive user operations. Multi-format output (ESM, CJS, UMD).",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"dist/**/*.js",
|
|
10
10
|
"dist/**/*.d.ts",
|
|
11
11
|
"dist/**/*.d.ts.map",
|
|
12
|
+
"dist/ai-docs.json",
|
|
12
13
|
"!dist/**/*.test.*",
|
|
13
14
|
"!dist/**/tests/**",
|
|
14
15
|
"!dist/**/fixtures/**",
|
|
@@ -25,14 +26,16 @@
|
|
|
25
26
|
"types": "./dist/index.d.ts",
|
|
26
27
|
"import": "./dist/index.esm.js",
|
|
27
28
|
"require": "./dist/index.cjs.js"
|
|
28
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"./ai-docs": "./dist/ai-docs.json",
|
|
31
|
+
"./ai-docs.json": "./dist/ai-docs.json"
|
|
29
32
|
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"build": "npm run build:version && npm run clean && npm run build:types && npm run build:bundle && npm run build:post",
|
|
32
35
|
"build:version": "tsx scripts/inject-version.ts",
|
|
33
36
|
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
34
37
|
"build:bundle": "rollup -c rollup.config.mjs",
|
|
35
|
-
"build:post": "cp dist/src/index.d.ts dist/index.d.ts && cp dist/src/index.d.ts.map dist/index.d.ts.map && sed -i \"s|from '\\./|from './src/|g\" dist/index.d.ts",
|
|
38
|
+
"build:post": "cp dist/src/index.d.ts dist/index.d.ts && cp dist/src/index.d.ts.map dist/index.d.ts.map && sed -i \"s|from '\\./|from './src/|g\" dist/index.d.ts && tsx ../../scripts/generate-frontend-docs.ts",
|
|
36
39
|
"build:watch": "rollup -c rollup.config.mjs --watch",
|
|
37
40
|
"clean": "rimraf dist coverage .nyc_output",
|
|
38
41
|
"test": "jest",
|
|
@@ -44,6 +47,13 @@
|
|
|
44
47
|
"demo:read-only": "tsx examples/core/read-only-operations.ts",
|
|
45
48
|
"demo:authenticated": "tsx examples/core/authenticated-operations.ts",
|
|
46
49
|
"demo:privatekey-override": "tsx examples/core/privatekey-override-pattern.ts",
|
|
50
|
+
"demo:session-auth": "tsx examples/core/session-auth-demo.ts",
|
|
51
|
+
"demo:core:test-pagination-fix": "tsx examples/core/test-pagination-fix.ts",
|
|
52
|
+
"demo:core:image-uploads": "tsx examples/core/image-uploads.ts",
|
|
53
|
+
"demo:core:wallet-management": "tsx examples/core/wallet-management.ts",
|
|
54
|
+
"demo:core:token-validation": "tsx examples/core/token-validation.ts",
|
|
55
|
+
"demo:core:session-auth-lifecycle": "tsx examples/core/session-auth-lifecycle.ts",
|
|
56
|
+
"demo:core:token-refresh-utilities": "tsx examples/core/token-refresh-utilities.ts",
|
|
47
57
|
"demo:trades": "tsx examples/bonding-curve/basic-trading.ts",
|
|
48
58
|
"demo:bonding:orchestrator": "tsx examples/bonding-curve/orchestrator.ts",
|
|
49
59
|
"demo:bonding:graduation": "tsx examples/bonding-curve/graduation-workflow.ts",
|
|
@@ -51,7 +61,10 @@
|
|
|
51
61
|
"demo:bonding:pool-analysis": "tsx examples/bonding-curve/pool-analysis.ts",
|
|
52
62
|
"demo:bonding:price-impact": "tsx examples/bonding-curve/price-impact.ts",
|
|
53
63
|
"demo:bonding:token-launch": "tsx examples/bonding-curve/token-launch.ts",
|
|
64
|
+
"demo:bonding:user-holder": "tsx examples/bonding-curve/user-holder-context.ts",
|
|
54
65
|
"demo:bonding:volume-trading": "tsx examples/bonding-curve/volume-trading.ts",
|
|
66
|
+
"demo:bonding:pagination-variants": "tsx examples/bonding-curve/pagination-variants.ts",
|
|
67
|
+
"demo:bonding:pool-creator-filtering": "tsx examples/bonding-curve/pool-creator-filtering.ts",
|
|
55
68
|
"demo:liquidity": "tsx examples/liquidity/positions-cli.ts",
|
|
56
69
|
"demo:liquidity:all": "tsx examples/liquidity/orchestrator.ts",
|
|
57
70
|
"demo:liquidity:detailed": "tsx examples/liquidity/detailed.ts",
|
|
@@ -61,12 +74,19 @@
|
|
|
61
74
|
"demo:liquidity:errors": "tsx examples/liquidity/errors.ts",
|
|
62
75
|
"demo:liquidity:fetch-all": "tsx examples/liquidity/demo-fetch-all-positions.ts",
|
|
63
76
|
"demo:liquidity:positions-with-prices": "tsx examples/liquidity/demo-positions-with-chunked-pricing.ts",
|
|
77
|
+
"demo:liquidity:fee-collection": "tsx examples/liquidity/fee-collection.ts",
|
|
64
78
|
"demo:cache": "tsx examples/utilities/demo-cache.ts",
|
|
65
79
|
"demo:utilities:balance": "tsx examples/utilities/balance.ts",
|
|
66
80
|
"demo:utilities:balances": "tsx examples/utilities/balances.ts",
|
|
67
81
|
"demo:utilities:key-derivation": "tsx examples/utilities/key-derivation.ts",
|
|
68
82
|
"demo:utilities:price-history": "tsx examples/utilities/price-history.ts",
|
|
69
83
|
"demo:utilities:wrappable-tokens": "tsx examples/utilities/wrappable-tokens.ts",
|
|
84
|
+
"demo:utilities:referrals": "tsx examples/utilities/referrals.ts",
|
|
85
|
+
"demo:utilities:account": "tsx examples/utilities/account.ts",
|
|
86
|
+
"demo:utilities:trade-history": "tsx examples/utilities/trade-history.ts",
|
|
87
|
+
"demo:utilities:transfers": "tsx examples/utilities/transfers.ts",
|
|
88
|
+
"demo:utilities:multi-token-portfolio": "tsx examples/utilities/multi-token-portfolio.ts",
|
|
89
|
+
"derive-public-key-from-private-key": "tsx scripts/derive-public-key-from-private-key.ts",
|
|
70
90
|
"demo:dex": "tsx examples/dex/swap-workflow.ts",
|
|
71
91
|
"demo:dex:pools": "tsx examples/dex/pool-discovery.ts",
|
|
72
92
|
"demo:dex:pricing": "tsx examples/dex/pools-with-pricing.ts",
|
|
@@ -74,7 +94,12 @@
|
|
|
74
94
|
"demo:dex:roundtrip": "tsx examples/dex/demo-roundtrip-liquidity.ts",
|
|
75
95
|
"demo:dex:leaderboard": "tsx examples/dex/leaderboard.ts",
|
|
76
96
|
"demo:dex:volume-summary": "tsx examples/dex/volume-summary.ts",
|
|
97
|
+
"demo:dex:token-discovery": "tsx examples/dex/token-discovery.ts",
|
|
77
98
|
"demo:dex:all": "tsx examples/dex/orchestrator.ts",
|
|
99
|
+
"demo:socials": "tsx examples/launchpad/demo-socials.ts",
|
|
100
|
+
"demo:monitoring:all": "tsx examples/monitoring/orchestrator.ts",
|
|
101
|
+
"demo:monitoring:stream-events": "tsx examples/monitoring/demo-stream-events.ts",
|
|
102
|
+
"demo:monitoring:websocket-events": "tsx examples/monitoring/websocket-event-handlers.ts",
|
|
78
103
|
"demo:watch": "tsx examples/monitoring/demo-watch-pools.ts",
|
|
79
104
|
"demo:watch:tokens": "tsx examples/monitoring/demo-watch-tokens.ts",
|
|
80
105
|
"demo:watch:integration": "tsx examples/monitoring/token-creation-integration.ts",
|
|
@@ -83,6 +108,7 @@
|
|
|
83
108
|
"demo:fees:high-volume": "tsx examples/fees/demo-fees-high-volume.ts",
|
|
84
109
|
"demo:fees:test": "tsx examples/fees/complete-fee-test.ts",
|
|
85
110
|
"demo:fees:trade-collect": "tsx examples/fees/trade-and-collect-fees.ts",
|
|
111
|
+
"demo:fees:multi-wallet": "tsx examples/fees/demo-multi-wallet-fee-generation.ts",
|
|
86
112
|
"demo:liquidity:bundler-test": "tsx examples/liquidity/demo-bundler-operations.ts",
|
|
87
113
|
"demo:liquidity:roundtrip-remove": "tsx examples/liquidity/demo-roundtrip-remove.ts",
|
|
88
114
|
"demo:liquidity:direct": "tsx examples/liquidity/demo-position-direct.ts",
|
|
@@ -101,6 +127,8 @@
|
|
|
101
127
|
"demo:watch:liquidity": "tsx examples/monitoring/liquidity-monitor.ts",
|
|
102
128
|
"demo:watch:liquidity:pool": "tsx examples/monitoring/pool-liquidity-tracker.ts",
|
|
103
129
|
"demo:watch:liquidity:e2e": "tsx examples/monitoring/liquidity-e2e-test.ts",
|
|
130
|
+
"demo:monitoring:liquidity-added": "tsx examples/monitoring/subscribe-liquidity-added.ts",
|
|
131
|
+
"demo:monitoring:liquidity-removed": "tsx examples/monitoring/subscribe-liquidity-removed.ts",
|
|
104
132
|
"demo:watch:fees:e2e": "tsx examples/monitoring/fees-collection-e2e.ts",
|
|
105
133
|
"demo:watch:fees:guaranteed": "tsx examples/monitoring/fees-collection-guaranteed.ts",
|
|
106
134
|
"demo:bridge": "tsx examples/bridge/orchestrator.ts",
|
|
@@ -108,6 +136,7 @@
|
|
|
108
136
|
"demo:bridge:tokens": "tsx examples/bridge/supported-tokens.ts",
|
|
109
137
|
"demo:bridge:fee": "tsx examples/bridge/fee-estimation.ts",
|
|
110
138
|
"demo:bridge:status": "tsx examples/bridge/status-tracking.ts",
|
|
139
|
+
"demo:bridge:operations": "tsx examples/bridge/bridge-operations.ts",
|
|
111
140
|
"demo:bridge:eth:out": "tsx examples/bridge/ethereum-out.ts",
|
|
112
141
|
"demo:bridge:eth:in": "tsx examples/bridge/ethereum-in.ts",
|
|
113
142
|
"demo:bridge:eth:roundtrip": "tsx examples/bridge/ethereum-roundtrip.ts",
|
|
@@ -117,15 +146,54 @@
|
|
|
117
146
|
"demo:bridge:balances": "tsx examples/bridge/wallet-balances.ts",
|
|
118
147
|
"demo:bridge:bridgeable": "tsx examples/bridge/bridgeable-tokens.ts",
|
|
119
148
|
"demo:bridge:tx-status": "tsx examples/bridge/transaction-status.ts",
|
|
149
|
+
"demo:bridge:check-balances": "tsx examples/bridge/check-balances.ts",
|
|
150
|
+
"demo:bridge:debug-fee": "tsx examples/bridge/debug-fee.ts",
|
|
151
|
+
"demo:bridge:test-debug-unwrap": "tsx examples/bridge/test-debug-unwrap.ts",
|
|
152
|
+
"demo:bridge:test-unwrap-execution": "tsx examples/bridge/test-unwrap-execution.ts",
|
|
153
|
+
"demo:bridge:test-wrap-debug": "tsx examples/bridge/test-wrap-debug.ts",
|
|
154
|
+
"demo:bridge:test-wrap-execution": "tsx examples/bridge/test-wrap-execution.ts",
|
|
155
|
+
"demo:bridge:test-wrap-roundtrip": "tsx examples/bridge/test-wrap-roundtrip.ts",
|
|
156
|
+
"demo:bridge:external-balances": "tsx examples/bridge/external-balances.ts",
|
|
157
|
+
"demo:bridge:wrap-utilities": "tsx examples/bridge/wrap-utilities.ts",
|
|
120
158
|
"demo:wrap": "tsx examples/bridge/wrap-unwrap.ts",
|
|
121
159
|
"demo:wrap:discovery": "tsx examples/bridge/wrap-discovery.ts",
|
|
122
160
|
"demo:wrap:fees": "tsx examples/bridge/wrap-fee-estimation.ts",
|
|
161
|
+
"demo:streaming": "tsx examples/streaming/basic-stream.ts",
|
|
162
|
+
"demo:streaming:recordings": "tsx examples/streaming/recordings.ts",
|
|
163
|
+
"demo:streaming:simulcast": "tsx examples/streaming/simulcast.ts",
|
|
164
|
+
"demo:streaming:engagement": "tsx examples/streaming/engagement-stats.ts",
|
|
165
|
+
"demo:streaming:control": "tsx examples/streaming/stream-control.ts",
|
|
166
|
+
"demo:streaming:admin": "tsx examples/streaming/admin-controls.ts",
|
|
167
|
+
"demo:streaming:countdown": "tsx examples/streaming/demo-countdown.ts",
|
|
168
|
+
"demo:streaming:key-management": "tsx examples/streaming/stream-key-management.ts",
|
|
169
|
+
"demo:chat": "tsx examples/chat/basic-chat.ts",
|
|
170
|
+
"demo:chat:websocket": "tsx examples/chat/websocket-chat.ts",
|
|
171
|
+
"demo:chat:typing-indicators": "tsx examples/chat/typing-indicators.ts",
|
|
172
|
+
"demo:chat:v1": "tsx examples/chat/chat-demo.ts",
|
|
173
|
+
"demo:chat:pinning": "tsx examples/chat/demo-pin-messages.ts",
|
|
174
|
+
"demo:comments": "tsx examples/comments/basic-comments.ts",
|
|
175
|
+
"demo:comments:v1": "tsx examples/comments/comments-demo.ts",
|
|
176
|
+
"demo:content-reactions": "tsx examples/content-reactions/basic-reactions.ts",
|
|
177
|
+
"demo:content-reactions:advanced": "tsx examples/content-reactions/advanced-reactions.ts",
|
|
178
|
+
"demo:content-flags": "tsx examples/content-flags/flag-management.ts",
|
|
123
179
|
"demo:locks": "tsx examples/locks/lock-unlock-workflow.ts",
|
|
124
180
|
"demo:burn": "tsx examples/locks/burn-tokens.ts",
|
|
181
|
+
"demo:bans": "tsx examples/bans/ban-management.ts",
|
|
182
|
+
"demo:token-bans": "tsx examples/token-bans/token-ban-management.ts",
|
|
183
|
+
"demo:moderators": "tsx examples/moderators/invite-management.ts",
|
|
184
|
+
"demo:moderators:claim-invite": "tsx examples/moderators/claim-invite.ts",
|
|
185
|
+
"demo:moderators:moderated-tokens": "tsx examples/moderators/moderated-tokens-portfolio.ts",
|
|
186
|
+
"demo:overseers": "tsx examples/overseers/invite-management.ts",
|
|
187
|
+
"demo:overseers:claim-invite": "tsx examples/overseers/claim-invite.ts",
|
|
188
|
+
"demo:overseers:users": "tsx examples/overseers/demo-list-users.ts",
|
|
189
|
+
"demo:api-keys": "tsx examples/api-keys/crud.ts",
|
|
190
|
+
"demo:api-keys:lifecycle": "tsx examples/api-keys/complete-lifecycle.ts",
|
|
191
|
+
"demo:api-keys:delegation": "tsx examples/api-keys/token-delegation.ts",
|
|
192
|
+
"demo:api-keys:advanced-config": "tsx examples/api-keys/advanced-configuration.ts",
|
|
125
193
|
"test:demos:core": "npm run demo && npm run demo:read-only && npm run demo:authenticated && npm run demo:privatekey-override",
|
|
126
194
|
"test:demos:dex": "npm run demo:dex:pools && npm run demo:dex:pricing && npm run demo:dex:quotes && npm run demo:dex && npm run demo:dex:roundtrip",
|
|
127
195
|
"test:demos:liquidity": "npm run demo:liquidity:all",
|
|
128
|
-
"test:demos:fees": "npm run demo:fees && npm run demo:fees:high-volume && npm run demo:fees:test && npm run demo:fees:trade-collect",
|
|
196
|
+
"test:demos:fees": "npm run demo:fees && npm run demo:fees:high-volume && npm run demo:fees:test && npm run demo:fees:trade-collect && npm run demo:fees:multi-wallet",
|
|
129
197
|
"test:demos:utilities": "npm run demo:cache && npm run demo:token-supply",
|
|
130
198
|
"test:demos:bridge": "npm run demo:bridge",
|
|
131
199
|
"test:demos:bonding": "npm run demo:trades",
|
|
@@ -223,12 +291,12 @@
|
|
|
223
291
|
},
|
|
224
292
|
"peerDependencies": {
|
|
225
293
|
"@gala-chain/api": "^2.4.3",
|
|
226
|
-
"@gala-chain/connect": "^2.
|
|
294
|
+
"@gala-chain/connect": "^2.7.0",
|
|
227
295
|
"@gala-chain/dex": "^1.0.26",
|
|
228
|
-
"axios": "^1.
|
|
229
|
-
"bignumber.js": "^9.1
|
|
230
|
-
"ethers": "^6.
|
|
231
|
-
"socket.io-client": "^4.8.
|
|
296
|
+
"axios": "^1.13.2",
|
|
297
|
+
"bignumber.js": "^9.3.1",
|
|
298
|
+
"ethers": "^6.16.0",
|
|
299
|
+
"socket.io-client": "^4.8.3",
|
|
232
300
|
"zod": "^3.25.76"
|
|
233
301
|
},
|
|
234
302
|
"browserslist": [
|
|
@@ -239,23 +307,22 @@
|
|
|
239
307
|
],
|
|
240
308
|
"dependencies": {
|
|
241
309
|
"@gala-chain/api": "^2.4.3",
|
|
242
|
-
"@gala-chain/connect": "^2.
|
|
310
|
+
"@gala-chain/connect": "^2.7.0",
|
|
243
311
|
"@gala-chain/dex": "^1.0.26",
|
|
244
|
-
"@
|
|
312
|
+
"@modelcontextprotocol/sdk": "1.25.2",
|
|
313
|
+
"@solana/spl-token": "^0.1.8",
|
|
245
314
|
"@solana/web3.js": "^1.98.4",
|
|
246
315
|
"@types/uuid": "^10.0.0",
|
|
247
|
-
"axios": "^1.
|
|
248
|
-
"bignumber.js": "^9.1
|
|
316
|
+
"axios": "^1.13.2",
|
|
317
|
+
"bignumber.js": "^9.3.1",
|
|
249
318
|
"bs58": "^6.0.0",
|
|
250
|
-
"crypto-js": "^4.2.0",
|
|
251
319
|
"dotenv": "^17.2.3",
|
|
252
|
-
"ethers": "^6.
|
|
320
|
+
"ethers": "^6.16.0",
|
|
253
321
|
"json-stringify-deterministic": "^1.0.12",
|
|
254
|
-
"socket.io-client": "^4.8.
|
|
322
|
+
"socket.io-client": "^4.8.3",
|
|
255
323
|
"uuid": "^9.0.1",
|
|
256
324
|
"web-file-polyfill": "^1.0.4",
|
|
257
|
-
"zod": "^3.25.76"
|
|
258
|
-
"zod-to-json-schema": "^3.24.6"
|
|
325
|
+
"zod": "^3.25.76"
|
|
259
326
|
},
|
|
260
327
|
"size-limit": [
|
|
261
328
|
{
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bridge/strategies/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SDK and MCP Tool Counts
|
|
3
|
-
*
|
|
4
|
-
* Single source of truth for method and tool counts.
|
|
5
|
-
* Updated whenever new methods or tools are added.
|
|
6
|
-
*
|
|
7
|
-
* @see AUDIT_COUNTS.md - Detailed breakdown by category
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Total public methods on LaunchpadSDK class
|
|
11
|
-
*
|
|
12
|
-
* Includes:
|
|
13
|
-
* - Address management (2): getAddress, getEthereumAddress
|
|
14
|
-
* - Wallet management (4): validateWallet, setWallet, getWallet, hasWallet
|
|
15
|
-
* - Configuration (4): getConfig, getVersion, getUrlByTokenName, cleanup
|
|
16
|
-
* - Pool/token data (17): fetchPools, fetchAllPools, fetchPoolDetails, etc.
|
|
17
|
-
* - Price history (2): fetchPriceHistory, fetchAllPriceHistory
|
|
18
|
-
* - Trading (9): buy, sell, calculateBuyAmount, calculateSellAmount, etc.
|
|
19
|
-
* - Creation (7): launchToken, uploadTokenImage, graduateToken, etc.
|
|
20
|
-
* - User/portfolio (4): fetchProfile, fetchTokensHeld, fetchTokensCreated, fetchGalaBalance
|
|
21
|
-
* - Transfers (2): transferGala, transferToken
|
|
22
|
-
* - Trading history (1): fetchTrades
|
|
23
|
-
* - Cache (2): getCacheInfo, clearCache
|
|
24
|
-
* - Static (1): cleanupAll
|
|
25
|
-
*
|
|
26
|
-
* Excludes: constructor
|
|
27
|
-
*/
|
|
28
|
-
export declare const SDK_PUBLIC_METHODS_COUNT = 56;
|
|
29
|
-
/**
|
|
30
|
-
* Total MCP tools available via the MCP server
|
|
31
|
-
*
|
|
32
|
-
* Includes:
|
|
33
|
-
* - Pools & token management (17): fetch pools, details, token info, etc.
|
|
34
|
-
* - Trading (13): buy, sell, calculate amounts, graduate, etc.
|
|
35
|
-
* - Balance & portfolio (6): fetch balances, profile, tokens held/created
|
|
36
|
-
* - Token creation (4): launch token, upload images, fetch fee
|
|
37
|
-
* - Transfers (2): transfer GALA and tokens
|
|
38
|
-
* - Utility (12): wallet management, config, documentation, cache
|
|
39
|
-
*/
|
|
40
|
-
export declare const MCP_TOOLS_COUNT = 54;
|
|
41
|
-
/**
|
|
42
|
-
* MCP Tools by Category (for documentation)
|
|
43
|
-
*/
|
|
44
|
-
export declare const MCP_TOOLS_BY_CATEGORY: {
|
|
45
|
-
readonly pools: 17;
|
|
46
|
-
readonly trading: 13;
|
|
47
|
-
readonly balance: 6;
|
|
48
|
-
readonly creation: 4;
|
|
49
|
-
readonly transfers: 2;
|
|
50
|
-
readonly utils: 12;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Get total MCP tools by summing all categories
|
|
54
|
-
*/
|
|
55
|
-
export declare function getTotalMCPTools(): number;
|
|
56
|
-
/**
|
|
57
|
-
* Validate that constant matches actual registry count
|
|
58
|
-
* @throws Error if count mismatch
|
|
59
|
-
*/
|
|
60
|
-
export declare function validateCounts(): {
|
|
61
|
-
sdkMethods: number;
|
|
62
|
-
mcpTools: number;
|
|
63
|
-
mismatchCount?: number;
|
|
64
|
-
categoryTotal?: number;
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=counts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"counts.d.ts","sourceRoot":"","sources":["../../../src/constants/counts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AAEX;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAUA"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WebSocket Connection Manager
|
|
3
|
-
*
|
|
4
|
-
* Singleton manager for WebSocket connections to prevent duplicate connections
|
|
5
|
-
* when multiple SDK instances are used. Each unique endpoint gets a single
|
|
6
|
-
* shared connection with reference counting for proper cleanup.
|
|
7
|
-
*
|
|
8
|
-
* @category Services
|
|
9
|
-
* @since 2.1.0
|
|
10
|
-
*/
|
|
11
|
-
import { WebSocketService, WebSocketConfig } from './WebSocketService';
|
|
12
|
-
/**
|
|
13
|
-
* Singleton WebSocket Connection Manager
|
|
14
|
-
*
|
|
15
|
-
* Manages WebSocket connections across multiple SDK instances to ensure
|
|
16
|
-
* efficient resource usage and prevent duplicate connections to the same endpoint.
|
|
17
|
-
*
|
|
18
|
-
* Key features:
|
|
19
|
-
* - Single connection per unique WebSocket endpoint
|
|
20
|
-
* - Reference counting for proper cleanup
|
|
21
|
-
* - Automatic cleanup when all references are removed
|
|
22
|
-
* - Thread-safe for concurrent SDK instances
|
|
23
|
-
*/
|
|
24
|
-
export declare class WebSocketManager {
|
|
25
|
-
private static instances;
|
|
26
|
-
/**
|
|
27
|
-
* Get or create a shared WebSocket service instance
|
|
28
|
-
*
|
|
29
|
-
* @param url WebSocket endpoint URL
|
|
30
|
-
* @param config WebSocket configuration
|
|
31
|
-
* @param debug Enable debug logging
|
|
32
|
-
* @returns Shared WebSocketService instance
|
|
33
|
-
*/
|
|
34
|
-
static getInstance(url: string, config: WebSocketConfig, debug?: boolean): WebSocketService;
|
|
35
|
-
/**
|
|
36
|
-
* Release a reference to a WebSocket service
|
|
37
|
-
*
|
|
38
|
-
* When reference count reaches zero, the connection is automatically closed
|
|
39
|
-
* and the service is removed from the manager.
|
|
40
|
-
*
|
|
41
|
-
* @param url WebSocket endpoint URL
|
|
42
|
-
* @param debug Enable debug logging
|
|
43
|
-
*/
|
|
44
|
-
static releaseReference(url: string, debug?: boolean): void;
|
|
45
|
-
/**
|
|
46
|
-
* Disconnect a specific WebSocket connection
|
|
47
|
-
*
|
|
48
|
-
* Forces disconnection regardless of reference count.
|
|
49
|
-
* Useful for error recovery or manual cleanup.
|
|
50
|
-
*
|
|
51
|
-
* @param url WebSocket endpoint URL
|
|
52
|
-
* @param debug Enable debug logging
|
|
53
|
-
*/
|
|
54
|
-
static disconnect(url: string, debug?: boolean): void;
|
|
55
|
-
/**
|
|
56
|
-
* Disconnect all WebSocket connections
|
|
57
|
-
*
|
|
58
|
-
* Forces disconnection of all managed connections.
|
|
59
|
-
* Useful for application shutdown or testing cleanup.
|
|
60
|
-
*
|
|
61
|
-
* @param debug Enable debug logging
|
|
62
|
-
*/
|
|
63
|
-
static disconnectAll(debug?: boolean): void;
|
|
64
|
-
/**
|
|
65
|
-
* Get information about currently managed connections
|
|
66
|
-
*
|
|
67
|
-
* @returns Array of connection info objects
|
|
68
|
-
*/
|
|
69
|
-
static getConnectionInfo(): Array<{
|
|
70
|
-
url: string;
|
|
71
|
-
referenceCount: number;
|
|
72
|
-
isConnected: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
/**
|
|
75
|
-
* Check if a connection exists for the given URL
|
|
76
|
-
*
|
|
77
|
-
* @param url WebSocket endpoint URL
|
|
78
|
-
* @returns True if connection exists
|
|
79
|
-
*/
|
|
80
|
-
static hasConnection(url: string): boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Get the reference count for a specific URL
|
|
83
|
-
*
|
|
84
|
-
* @param url WebSocket endpoint URL
|
|
85
|
-
* @returns Reference count (0 if no connection exists)
|
|
86
|
-
*/
|
|
87
|
-
static getReferenceCount(url: string): number;
|
|
88
|
-
/**
|
|
89
|
-
* Create a consistent key from URL for internal mapping
|
|
90
|
-
*
|
|
91
|
-
* Normalizes URLs to prevent duplicate connections for equivalent URLs
|
|
92
|
-
* (e.g., with/without trailing slashes)
|
|
93
|
-
*
|
|
94
|
-
* @param url WebSocket endpoint URL
|
|
95
|
-
* @returns Normalized key string
|
|
96
|
-
*/
|
|
97
|
-
private static createKey;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=WebSocketManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketManager.d.ts","sourceRoot":"","sources":["../../../src/services/WebSocketManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQvE;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAmD;IAE3E;;;;;;;OAOG;IACH,MAAM,CAAC,WAAW,CAChB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,eAAe,EACvB,KAAK,GAAE,OAAe,GACrB,gBAAgB;IA0BnB;;;;;;;;OAQG;IACH,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,OAAe,GAAG,IAAI;IAqBlE;;;;;;;;OAQG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,OAAe,GAAG,IAAI;IAY5D;;;;;;;OAOG;IACH,MAAM,CAAC,aAAa,CAAC,KAAK,GAAE,OAAe,GAAG,IAAI;IAYlD;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,IAAI,KAAK,CAAC;QAChC,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,OAAO,CAAC;KACtB,CAAC;IAQF;;;;;OAKG;IACH,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI1C;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAK7C;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;CAGzB"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized EIP-712 Type Definitions for Bundler Operations
|
|
3
|
-
*
|
|
4
|
-
* These type definitions are used for EIP-712 signing with ethers.js for all bundler operations.
|
|
5
|
-
* They are manually defined (not auto-generated) because SigningClient auto-generation incorrectly
|
|
6
|
-
* uses uint256 for ALL numeric fields, which rejects negative tick values. These definitions
|
|
7
|
-
* use int256 for tick values to properly support negative ticks.
|
|
8
|
-
*
|
|
9
|
-
* EIP-712 Specification: https://eips.ethereum.org/EIPS/eip-712
|
|
10
|
-
* GalaChain Bundler Documentation: https://docs.galachain.com/bundler/signing (when available)
|
|
11
|
-
* GalaChain API Reference: https://docs.galachain.com/bundler/api
|
|
12
|
-
*
|
|
13
|
-
* Integration Points:
|
|
14
|
-
* - Used by GSwapService.sendAddLiquidityToBundler()
|
|
15
|
-
* - Used by GSwapService.sendRemoveLiquidityToBundler()
|
|
16
|
-
* - Used by GSwapService.sendCollectPositionFeesToBundler()
|
|
17
|
-
* - Used by GSwapService.sendSwapToBundler()
|
|
18
|
-
*
|
|
19
|
-
* Key Design Decisions:
|
|
20
|
-
* - Token field order (additionalKey, category, collection, type) must be consistent across all types
|
|
21
|
-
* to ensure proper token identification in bundler state locking
|
|
22
|
-
* - All tick boundaries (tickLower, tickUpper) use int256 to support negative Uniswap V3 ticks
|
|
23
|
-
* (UQ64.96 encoding requires int256, not uint256)
|
|
24
|
-
* - String amounts (not numeric) to preserve decimal precision across JavaScript/Solidity boundary
|
|
25
|
-
* - Unique domain configuration: { name: 'ethereum', chainId: 1 } for GalaChain compatibility
|
|
26
|
-
* - All operations require prefix field added by calculatePersonalSignPrefix() for bundler validation
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* EIP-712 types for AddLiquidity operation
|
|
30
|
-
*
|
|
31
|
-
* Used when creating a new liquidity position with price or tick boundaries.
|
|
32
|
-
* Creates a concentrated liquidity position in a Uniswap V3 pool.
|
|
33
|
-
*
|
|
34
|
-
* Reference: GalaChain Bundler API - AddLiquidity
|
|
35
|
-
* See: https://docs.galachain.com/bundler/api (when available)
|
|
36
|
-
*/
|
|
37
|
-
export declare const ADD_LIQUIDITY_EIP712_TYPES: {
|
|
38
|
-
AddLiquidity: {
|
|
39
|
-
name: string;
|
|
40
|
-
type: string;
|
|
41
|
-
}[];
|
|
42
|
-
token0: {
|
|
43
|
-
name: string;
|
|
44
|
-
type: string;
|
|
45
|
-
}[];
|
|
46
|
-
token1: {
|
|
47
|
-
name: string;
|
|
48
|
-
type: string;
|
|
49
|
-
}[];
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* EIP-712 types for RemoveLiquidity operation
|
|
53
|
-
*
|
|
54
|
-
* Used when closing a liquidity position and withdrawing tokens.
|
|
55
|
-
* Removes liquidity from a Uniswap V3 position and returns the underlying tokens.
|
|
56
|
-
*
|
|
57
|
-
* Reference: GalaChain Bundler API - RemoveLiquidity
|
|
58
|
-
* See: https://docs.galachain.com/bundler/api (when available)
|
|
59
|
-
*/
|
|
60
|
-
export declare const REMOVE_LIQUIDITY_EIP712_TYPES: {
|
|
61
|
-
RemoveLiquidity: {
|
|
62
|
-
name: string;
|
|
63
|
-
type: string;
|
|
64
|
-
}[];
|
|
65
|
-
token0: {
|
|
66
|
-
name: string;
|
|
67
|
-
type: string;
|
|
68
|
-
}[];
|
|
69
|
-
token1: {
|
|
70
|
-
name: string;
|
|
71
|
-
type: string;
|
|
72
|
-
}[];
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* EIP-712 types for CollectPositionFees operation
|
|
76
|
-
*
|
|
77
|
-
* Used when collecting accumulated trading fees from a liquidity position.
|
|
78
|
-
* Extracts protocol fees earned by the position during trades without modifying liquidity.
|
|
79
|
-
*
|
|
80
|
-
* Reference: GalaChain Bundler API - CollectPositionFees
|
|
81
|
-
* See: https://docs.galachain.com/bundler/api (when available)
|
|
82
|
-
*/
|
|
83
|
-
export declare const COLLECT_FEES_EIP712_TYPES: {
|
|
84
|
-
CollectPositionFees: {
|
|
85
|
-
name: string;
|
|
86
|
-
type: string;
|
|
87
|
-
}[];
|
|
88
|
-
token0: {
|
|
89
|
-
name: string;
|
|
90
|
-
type: string;
|
|
91
|
-
}[];
|
|
92
|
-
token1: {
|
|
93
|
-
name: string;
|
|
94
|
-
type: string;
|
|
95
|
-
}[];
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* EIP-712 types for Swap operation
|
|
99
|
-
*
|
|
100
|
-
* Used when swapping tokens on GalaSwap DEX.
|
|
101
|
-
* Executes a token swap on a Uniswap V3 pool with slippage protection.
|
|
102
|
-
*
|
|
103
|
-
* Reference: GalaChain Bundler API - Swap
|
|
104
|
-
* See: https://docs.galachain.com/bundler/api (when available)
|
|
105
|
-
*/
|
|
106
|
-
export declare const SWAP_EIP712_TYPES: {
|
|
107
|
-
Swap: {
|
|
108
|
-
name: string;
|
|
109
|
-
type: string;
|
|
110
|
-
}[];
|
|
111
|
-
token0: {
|
|
112
|
-
name: string;
|
|
113
|
-
type: string;
|
|
114
|
-
}[];
|
|
115
|
-
token1: {
|
|
116
|
-
name: string;
|
|
117
|
-
type: string;
|
|
118
|
-
}[];
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Standard EIP-712 domain configuration
|
|
122
|
-
*
|
|
123
|
-
* Used consistently across all bundler operations for signature validation.
|
|
124
|
-
* Domain identifies the signing context (application name and chain).
|
|
125
|
-
*
|
|
126
|
-
* Configuration:
|
|
127
|
-
* - name: 'ethereum' - Identifies as Ethereum domain (GalaChain convention)
|
|
128
|
-
* - chainId: 1 - References Ethereum mainnet chainId (GalaChain signing context)
|
|
129
|
-
*
|
|
130
|
-
* This domain ensures that signatures cannot be replayed across different networks
|
|
131
|
-
* or applications. All bundler operations must use this exact domain.
|
|
132
|
-
*
|
|
133
|
-
* Reference: EIP-712 Domain Separator
|
|
134
|
-
* See: https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator
|
|
135
|
-
*/
|
|
136
|
-
export declare const EIP712_DOMAIN: {
|
|
137
|
-
name: string;
|
|
138
|
-
chainId: number;
|
|
139
|
-
};
|
|
140
|
-
//# sourceMappingURL=eip712-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712-types.d.ts","sourceRoot":"","sources":["../../../src/types/eip712-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CA2BtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;CAyBzC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;CAwBrC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAwB7B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;;CAAmC,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pool State Manager Configuration Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Configuration options for controlling PoolStateManager behavior,
|
|
5
|
-
* including drift thresholds, refetch triggers, and optimization flags.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Configuration for PoolStateManager behavior
|
|
11
|
-
*
|
|
12
|
-
* Controls when cached pool state should be refreshed vs. updated with deltas,
|
|
13
|
-
* and enables performance/debugging optimizations.
|
|
14
|
-
*
|
|
15
|
-
* @category Pool State
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* const config: PoolStateManagerConfig = {
|
|
19
|
-
* maxDriftThreshold: 0.001, // 0.1% max drift before refetch
|
|
20
|
-
* refetchAfterSwaps: 20, // Refetch every 20 swaps
|
|
21
|
-
* refetchAfterMs: 120000, // Refetch every 2 minutes
|
|
22
|
-
* enableAggressiveValidation: true, // Validate on every swap
|
|
23
|
-
* enableBigNumberCache: true, // Cache BigNumber instances
|
|
24
|
-
* logDriftWarnings: true // Log when drift detected
|
|
25
|
-
* };
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export interface PoolStateManagerConfig {
|
|
29
|
-
/**
|
|
30
|
-
* Maximum allowable drift percentage before triggering refetch
|
|
31
|
-
*
|
|
32
|
-
* Drift is measured as the percentage difference between calculated
|
|
33
|
-
* pool state and actual on-chain state (when validation data is available).
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* - 0.001 = 0.1% drift threshold (tight tolerance, frequent refetches)
|
|
37
|
-
* - 0.01 = 1.0% drift threshold (loose tolerance, fewer refetches)
|
|
38
|
-
*
|
|
39
|
-
* @default 0.001 (0.1%)
|
|
40
|
-
*/
|
|
41
|
-
maxDriftThreshold: number;
|
|
42
|
-
/**
|
|
43
|
-
* Trigger full refetch after this many swap deltas applied
|
|
44
|
-
*
|
|
45
|
-
* Prevents unbounded drift accumulation by forcing periodic refetches
|
|
46
|
-
* even if drift threshold hasn't been exceeded.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* - 20 = refetch after 20 swaps
|
|
50
|
-
* - 100 = refetch after 100 swaps (less frequent, more drift risk)
|
|
51
|
-
*
|
|
52
|
-
* @default 20
|
|
53
|
-
*/
|
|
54
|
-
refetchAfterSwaps: number;
|
|
55
|
-
/**
|
|
56
|
-
* Trigger full refetch after this many milliseconds elapsed
|
|
57
|
-
*
|
|
58
|
-
* Time-based refetch ensures cached data doesn't become stale
|
|
59
|
-
* even if swap volume is low.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* - 60000 = refetch every 1 minute
|
|
63
|
-
* - 120000 = refetch every 2 minutes
|
|
64
|
-
* - 300000 = refetch every 5 minutes
|
|
65
|
-
*
|
|
66
|
-
* @default 120000 (2 minutes)
|
|
67
|
-
*/
|
|
68
|
-
refetchAfterMs: number;
|
|
69
|
-
/**
|
|
70
|
-
* Enable validation on every swap delta application
|
|
71
|
-
*
|
|
72
|
-
* When true, compares calculated state against actual on-chain data
|
|
73
|
-
* (if available) after every swap. Slower but provides early drift detection.
|
|
74
|
-
*
|
|
75
|
-
* When false, only validates when refetch conditions are met.
|
|
76
|
-
*
|
|
77
|
-
* @default false (validate only on refetch conditions)
|
|
78
|
-
*/
|
|
79
|
-
enableAggressiveValidation: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Enable caching of BigNumber instances for performance
|
|
82
|
-
*
|
|
83
|
-
* When true, reuses BigNumber instances for common values (e.g., zero, one)
|
|
84
|
-
* to reduce garbage collection pressure in high-frequency trading scenarios.
|
|
85
|
-
*
|
|
86
|
-
* When false, creates new BigNumber instances every time.
|
|
87
|
-
*
|
|
88
|
-
* @default true
|
|
89
|
-
*/
|
|
90
|
-
enableBigNumberCache: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Enable logging of drift warnings
|
|
93
|
-
*
|
|
94
|
-
* When true, logs warning messages when drift is detected but still
|
|
95
|
-
* below the refetch threshold. Useful for monitoring cache health.
|
|
96
|
-
*
|
|
97
|
-
* When false, only logs when refetch is triggered.
|
|
98
|
-
*
|
|
99
|
-
* @default true
|
|
100
|
-
*/
|
|
101
|
-
logDriftWarnings: boolean;
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=pool-state-manager-config.dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pool-state-manager-config.dto.d.ts","sourceRoot":"","sources":["../../../src/types/pool-state-manager-config.dto.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;OAWG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;;OAYG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;;;;OASG;IACH,0BAA0B,EAAE,OAAO,CAAC;IAEpC;;;;;;;;;OASG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAE9B;;;;;;;;;OASG;IACH,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
|