@gala-chain/launchpad-sdk 6.0.0 → 7.0.0-beta.2
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 +159 -156
- package/LICENSE +21 -0
- package/README.md +56 -3338
- package/dist/LaunchpadSDK.d.ts +113 -1811
- package/dist/LaunchpadSDK.d.ts.map +1 -1
- package/dist/api/LaunchpadAPI.d.ts +21 -69
- package/dist/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/api/dto/BondingCurveDTOs.d.ts +8 -8
- package/dist/api/dto/BondingCurveDTOs.d.ts.map +1 -1
- package/dist/api/dto/BurnTokensDto.d.ts +2 -14
- package/dist/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/api/dto/LockTokenDto.d.ts +2 -14
- package/dist/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/api/dto/TransferTokenDto.d.ts +2 -14
- package/dist/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/api/dto/UnlockTokenDto.d.ts +2 -14
- package/dist/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/bridge/BridgeService.d.ts.map +1 -1
- package/dist/bridge/constants/tokens.d.ts +1 -1
- package/dist/bridge/index.d.ts +1 -1
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/public-types.d.ts +2 -0
- package/dist/bridge/public-types.d.ts.map +1 -0
- package/dist/bridge/strategies/BridgeStrategy.d.ts +44 -0
- package/dist/bridge/strategies/BridgeStrategy.d.ts.map +1 -1
- package/dist/bridge/strategies/EthereumBridgeStrategy.d.ts +4 -26
- package/dist/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -1
- package/dist/bridge/strategies/SolanaBridgeStrategy.d.ts +4 -26
- package/dist/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -1
- package/dist/bridge/utils/bridgePayload.d.ts.map +1 -1
- package/dist/bridge/utils/bridgeStatusParser.d.ts +5 -4
- package/dist/bridge/utils/bridgeStatusParser.d.ts.map +1 -1
- package/dist/bridge/utils/strategyDelegation.d.ts +57 -0
- package/dist/bridge/utils/strategyDelegation.d.ts.map +1 -1
- package/dist/config/environments.d.ts +19 -33
- package/dist/config/environments.d.ts.map +1 -1
- package/dist/constants/bondingCurve.d.ts +10 -10
- package/dist/constants/bondingCurve.d.ts.map +1 -1
- package/dist/constants/endpoints.d.ts +23 -58
- package/dist/constants/endpoints.d.ts.map +1 -1
- package/dist/constants/sdk-defaults.d.ts +0 -2
- package/dist/constants/sdk-defaults.d.ts.map +1 -1
- package/dist/constants/version.generated.d.ts +3 -3
- package/dist/constants/version.generated.d.ts.map +1 -1
- package/dist/errors/LaunchpadSDKError.d.ts +28 -0
- package/dist/errors/LaunchpadSDKError.d.ts.map +1 -0
- package/dist/errors/index.d.ts +3 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/helpers/sdk.d.ts +8 -8
- package/dist/helpers/sdk.d.ts.map +1 -1
- package/dist/index.browser.d.ts +21 -23
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.esm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/launchpad/bundle-submission.d.ts +88 -0
- package/dist/launchpad/bundle-submission.d.ts.map +1 -0
- package/dist/launchpad/strings-instructions.d.ts +15 -0
- package/dist/launchpad/strings-instructions.d.ts.map +1 -0
- package/dist/launchpad/transport.d.ts +28 -0
- package/dist/launchpad/transport.d.ts.map +1 -0
- package/dist/launchpad/writes.d.ts +74 -0
- package/dist/launchpad/writes.d.ts.map +1 -0
- package/dist/native.cjs +1 -1
- package/dist/native.d.ts +3 -0
- package/dist/native.d.ts.map +1 -1
- package/dist/native.esm.js +1 -1
- package/dist/polyfills/file-global.d.ts +4 -0
- package/dist/polyfills/file-global.d.ts.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.esm.js +1 -1
- package/dist/schemas/files.d.ts +2 -2
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/pagination.d.ts +0 -3
- package/dist/schemas/pagination.d.ts.map +1 -1
- package/dist/services/BanService.d.ts.map +1 -1
- package/dist/services/BaseService.d.ts +1 -1
- package/dist/services/BaseService.d.ts.map +1 -1
- package/dist/services/BatchedCacheService.d.ts.map +1 -1
- package/dist/services/BundleService.d.ts +1 -1
- package/dist/services/BundleService.d.ts.map +1 -1
- package/dist/services/BundlerClientFactory.d.ts +3 -3
- package/dist/services/BundlerClientFactory.d.ts.map +1 -1
- package/dist/services/ContentFlagService.d.ts +1 -0
- package/dist/services/ContentFlagService.d.ts.map +1 -1
- package/dist/services/DexService.d.ts +1 -1
- package/dist/services/DexService.d.ts.map +1 -1
- package/dist/services/GalaChainLockService.d.ts +4 -1
- package/dist/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/services/GalaChainTokenService.d.ts +1 -0
- package/dist/services/GalaChainTokenService.d.ts.map +1 -1
- package/dist/services/GalaChainTransferService.d.ts +10 -5
- package/dist/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/services/GdexStreamService.d.ts +3 -1
- package/dist/services/GdexStreamService.d.ts.map +1 -1
- package/dist/services/HolderService.d.ts.map +1 -1
- package/dist/services/LaunchpadService.d.ts +3 -35
- package/dist/services/LaunchpadService.d.ts.map +1 -1
- package/dist/services/OEmbedService.d.ts +2 -2
- package/dist/services/OEmbedService.d.ts.map +1 -1
- package/dist/services/PoolService.d.ts +9 -20
- package/dist/services/PoolService.d.ts.map +1 -1
- package/dist/services/PriceHistoryService.d.ts +6 -4
- package/dist/services/PriceHistoryService.d.ts.map +1 -1
- package/dist/services/StreamChatService.d.ts +3 -101
- package/dist/services/StreamChatService.d.ts.map +1 -1
- package/dist/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/services/StreamWebSocketService.d.ts +5 -2
- package/dist/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/services/StreamingEventService.d.ts +1 -1
- package/dist/services/StreamingEventService.d.ts.map +1 -1
- package/dist/services/StreamingService.d.ts +4 -20
- package/dist/services/StreamingService.d.ts.map +1 -1
- package/dist/services/TokenMetadataCache.d.ts.map +1 -1
- package/dist/services/TokenMetadataService.d.ts +1 -1
- package/dist/services/TokenMetadataService.d.ts.map +1 -1
- package/dist/services/TokenResolverService.d.ts +5 -0
- package/dist/services/TokenResolverService.d.ts.map +1 -1
- package/dist/services/TradeService.d.ts.map +1 -1
- package/dist/services/UserService.d.ts +1 -62
- package/dist/services/UserService.d.ts.map +1 -1
- package/dist/services/WebSocketAdminService.d.ts.map +1 -1
- package/dist/services/WebSocketService.d.ts +1 -1
- package/dist/services/WebSocketService.d.ts.map +1 -1
- package/dist/services/WrapService.d.ts +10 -11
- package/dist/services/WrapService.d.ts.map +1 -1
- package/dist/services/WrappableTokenCache.d.ts.map +1 -1
- package/dist/services/WrappableTokenService.d.ts +1 -1
- package/dist/services/WrappableTokenService.d.ts.map +1 -1
- package/dist/services/__mocks__/logger.mock.d.ts.map +1 -1
- package/dist/services/shared/http-helpers.d.ts +1 -1
- package/dist/services/shared/http-helpers.d.ts.map +1 -1
- package/dist/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/services/shared/service-validators.d.ts +1 -1
- package/dist/services/shared/service-validators.d.ts.map +1 -1
- package/dist/services/shared/websocket-helpers.d.ts.map +1 -1
- package/dist/signing/eip712.d.ts +13 -0
- package/dist/signing/eip712.d.ts.map +1 -0
- package/dist/signing/index.d.ts +5 -0
- package/dist/signing/index.d.ts.map +1 -0
- package/dist/signing/signers.d.ts +81 -0
- package/dist/signing/signers.d.ts.map +1 -0
- package/dist/signing/types.d.ts +31 -0
- package/dist/signing/types.d.ts.map +1 -0
- package/dist/tokens/transfers.d.ts +91 -0
- package/dist/tokens/transfers.d.ts.map +1 -0
- package/dist/types/api-key.dto.d.ts.map +1 -1
- package/dist/types/backend-responses.d.ts +8 -31
- package/dist/types/backend-responses.d.ts.map +1 -1
- package/dist/types/ban.dto.d.ts +14 -23
- package/dist/types/ban.dto.d.ts.map +1 -1
- package/dist/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/types/comments.dto.d.ts +5 -26
- package/dist/types/comments.dto.d.ts.map +1 -1
- package/dist/types/common.d.ts +4 -3
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/content-flag.dto.d.ts.map +1 -1
- package/dist/types/dto.d.ts +6 -0
- package/dist/types/dto.d.ts.map +1 -1
- package/dist/types/engagement-stats.dto.d.ts +2 -3
- package/dist/types/engagement-stats.dto.d.ts.map +1 -1
- package/dist/types/galachain-api.types.d.ts.map +1 -1
- package/dist/types/launchpad.dto.d.ts +7 -73
- package/dist/types/launchpad.dto.d.ts.map +1 -1
- package/dist/types/messages.dto.d.ts.map +1 -1
- package/dist/types/moderator.dto.d.ts +10 -18
- package/dist/types/moderator.dto.d.ts.map +1 -1
- package/dist/types/options.dto.d.ts +2 -13
- package/dist/types/options.dto.d.ts.map +1 -1
- package/dist/types/overseer.dto.d.ts +1 -2
- package/dist/types/overseer.dto.d.ts.map +1 -1
- package/dist/types/priceHistory.dto.d.ts +15 -46
- package/dist/types/priceHistory.dto.d.ts.map +1 -1
- package/dist/types/session-auth.dto.d.ts +4 -8
- package/dist/types/session-auth.dto.d.ts.map +1 -1
- package/dist/types/stream-chat.dto.d.ts +14 -105
- package/dist/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/types/streaming.dto.d.ts +30 -119
- package/dist/types/streaming.dto.d.ts.map +1 -1
- package/dist/types/token-ban.dto.d.ts +5 -9
- package/dist/types/token-ban.dto.d.ts.map +1 -1
- package/dist/types/token-config.dto.d.ts +2 -3
- package/dist/types/token-config.dto.d.ts.map +1 -1
- package/dist/types/token.types.d.ts +50 -27
- package/dist/types/token.types.d.ts.map +1 -1
- package/dist/types/trade.dto.d.ts +2 -3
- package/dist/types/trade.dto.d.ts.map +1 -1
- package/dist/types/transfer.dto.d.ts +2 -16
- package/dist/types/transfer.dto.d.ts.map +1 -1
- package/dist/types/user.dto.d.ts +4 -6
- package/dist/types/user.dto.d.ts.map +1 -1
- package/dist/utils/ReconnectionManager.d.ts +0 -1
- package/dist/utils/ReconnectionManager.d.ts.map +1 -1
- package/dist/utils/adapters.d.ts +1 -1
- package/dist/utils/adapters.d.ts.map +1 -1
- package/dist/utils/agent-config.d.ts +17 -14
- package/dist/utils/agent-config.d.ts.map +1 -1
- package/dist/utils/amount-validator.d.ts +1 -1
- package/dist/utils/api-patterns.d.ts.map +1 -1
- package/dist/utils/async-patterns.d.ts.map +1 -1
- package/dist/utils/auto-pagination.d.ts +2 -2
- package/dist/utils/auto-pagination.d.ts.map +1 -1
- package/dist/utils/bignumber-helpers.d.ts +7 -4
- package/dist/utils/bignumber-helpers.d.ts.map +1 -1
- package/dist/utils/bondingCurveCalculations.d.ts +6 -19
- package/dist/utils/bondingCurveCalculations.d.ts.map +1 -1
- package/dist/utils/crypto-compat.d.ts.map +1 -1
- package/dist/utils/data-transform-patterns.d.ts +2 -8
- package/dist/utils/data-transform-patterns.d.ts.map +1 -1
- package/dist/utils/delimiter-parser.d.ts.map +1 -1
- package/dist/utils/error-factories.d.ts.map +1 -1
- package/dist/utils/error-handling-patterns.d.ts +2 -4
- package/dist/utils/error-handling-patterns.d.ts.map +1 -1
- package/dist/utils/error-patterns.d.ts +3 -2
- package/dist/utils/error-patterns.d.ts.map +1 -1
- package/dist/utils/error-utils.d.ts +0 -4
- package/dist/utils/error-utils.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +8 -7
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/http.d.ts +8 -19
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/message-validators.d.ts +13 -0
- package/dist/utils/message-validators.d.ts.map +1 -0
- package/dist/utils/object-extractors.d.ts +1 -1
- package/dist/utils/object-patterns.d.ts +1 -1
- package/dist/utils/object-patterns.d.ts.map +1 -1
- package/dist/utils/pagination-helpers.d.ts +1 -1
- package/dist/utils/pagination-helpers.d.ts.map +1 -1
- package/dist/utils/service-validators.d.ts.map +1 -1
- package/dist/utils/string-transforms.d.ts +1 -1
- package/dist/utils/token-format-converter.d.ts +3 -3
- package/dist/utils/token-format-converter.d.ts.map +1 -1
- package/dist/utils/token-holder-transformer.d.ts +30 -0
- package/dist/utils/token-holder-transformer.d.ts.map +1 -0
- package/dist/utils/token-instance-key.d.ts +57 -0
- package/dist/utils/token-instance-key.d.ts.map +1 -0
- package/dist/utils/token-instance-resolver.d.ts +29 -0
- package/dist/utils/token-instance-resolver.d.ts.map +1 -0
- package/dist/utils/token-operation-details.d.ts +23 -0
- package/dist/utils/token-operation-details.d.ts.map +1 -0
- package/dist/utils/token-stringification.d.ts +0 -1
- package/dist/utils/token-stringification.d.ts.map +1 -1
- package/dist/utils/transfer-validation.d.ts +4 -4
- package/dist/utils/transfer-validation.d.ts.map +1 -1
- package/dist/utils/unique-key-generator.d.ts +31 -32
- package/dist/utils/unique-key-generator.d.ts.map +1 -1
- package/dist/utils/validation-patterns.d.ts +1 -6
- package/dist/utils/validation-patterns.d.ts.map +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/wallet.d.ts +2 -21
- package/dist/utils/wallet.d.ts.map +1 -1
- package/dist/utils/websocket-patterns.d.ts +3 -4
- package/dist/utils/websocket-patterns.d.ts.map +1 -1
- package/dist/wallet/ExternalWalletProvider.d.ts +2 -21
- package/dist/wallet/ExternalWalletProvider.d.ts.map +1 -1
- package/dist/wallet/GalaChainConnectProvider.d.ts +1 -1
- package/dist/wallet/GalaChainConnectProvider.d.ts.map +1 -1
- package/dist/wallet/GalaWalletProvider.d.ts +2 -21
- package/dist/wallet/GalaWalletProvider.d.ts.map +1 -1
- package/dist/wallet/detection.d.ts.map +1 -1
- package/dist/wallet/event-handlers.d.ts +50 -0
- package/dist/wallet/event-handlers.d.ts.map +1 -0
- package/dist/wallet/signing-operation.d.ts +19 -0
- package/dist/wallet/signing-operation.d.ts.map +1 -0
- package/dist/wallet/typed-data-helpers.d.ts +68 -0
- package/dist/wallet/typed-data-helpers.d.ts.map +1 -0
- package/dist/wallet.cjs +1 -1
- package/dist/wallet.esm.js +1 -1
- package/package.json +189 -186
- package/README.md.bak +0 -3174
- package/dist/ai-docs.json +0 -11904
- package/dist/examples/admin/api-key-advanced.d.ts +0 -43
- package/dist/examples/admin/api-key-advanced.d.ts.map +0 -1
- package/dist/examples/admin/moderator-invite-complete.d.ts +0 -41
- package/dist/examples/admin/moderator-invite-complete.d.ts.map +0 -1
- package/dist/examples/admin/overseer-management-advanced.d.ts +0 -38
- package/dist/examples/admin/overseer-management-advanced.d.ts.map +0 -1
- package/dist/examples/admin/overseer-page-stats.d.ts +0 -26
- package/dist/examples/admin/overseer-page-stats.d.ts.map +0 -1
- package/dist/examples/admin/token-ban-complete.d.ts +0 -44
- package/dist/examples/admin/token-ban-complete.d.ts.map +0 -1
- package/dist/examples/ai-moderation/ai-moderation-demo.d.ts +0 -32
- package/dist/examples/ai-moderation/ai-moderation-demo.d.ts.map +0 -1
- package/dist/examples/ai-moderation/flag-ai-verdicts-demo.d.ts +0 -30
- package/dist/examples/ai-moderation/flag-ai-verdicts-demo.d.ts.map +0 -1
- package/dist/examples/analytics/index.d.ts +0 -23
- package/dist/examples/analytics/index.d.ts.map +0 -1
- package/dist/examples/analytics/market-analysis-tools.d.ts +0 -28
- package/dist/examples/analytics/market-analysis-tools.d.ts.map +0 -1
- package/dist/examples/analytics/portfolio-performance-tracking.d.ts +0 -25
- package/dist/examples/analytics/portfolio-performance-tracking.d.ts.map +0 -1
- package/dist/examples/analytics/trading-analytics-advanced.d.ts +0 -27
- package/dist/examples/analytics/trading-analytics-advanced.d.ts.map +0 -1
- package/dist/examples/api-keys/advanced-configuration.d.ts +0 -19
- package/dist/examples/api-keys/advanced-configuration.d.ts.map +0 -1
- package/dist/examples/api-keys/complete-lifecycle.d.ts +0 -18
- package/dist/examples/api-keys/complete-lifecycle.d.ts.map +0 -1
- package/dist/examples/api-keys/crud.d.ts +0 -22
- package/dist/examples/api-keys/crud.d.ts.map +0 -1
- package/dist/examples/api-keys/token-delegation.d.ts +0 -24
- package/dist/examples/api-keys/token-delegation.d.ts.map +0 -1
- package/dist/examples/api-keys/user-api-key-auth.d.ts +0 -24
- package/dist/examples/api-keys/user-api-key-auth.d.ts.map +0 -1
- package/dist/examples/auth/auth-permissions-checking.d.ts +0 -32
- package/dist/examples/auth/auth-permissions-checking.d.ts.map +0 -1
- package/dist/examples/auth/auth-token-management.d.ts +0 -32
- package/dist/examples/auth/auth-token-management.d.ts.map +0 -1
- package/dist/examples/auth/auth-validation-workflows.d.ts +0 -32
- package/dist/examples/auth/auth-validation-workflows.d.ts.map +0 -1
- package/dist/examples/bans/ban-management.d.ts +0 -24
- package/dist/examples/bans/ban-management.d.ts.map +0 -1
- package/dist/examples/bans/demo-global-user-bans.d.ts +0 -27
- package/dist/examples/bans/demo-global-user-bans.d.ts.map +0 -1
- package/dist/examples/bonding/token-graduation-workflow.d.ts +0 -21
- package/dist/examples/bonding/token-graduation-workflow.d.ts.map +0 -1
- package/dist/examples/bonding-curve/basic-trading.d.ts +0 -20
- package/dist/examples/bonding-curve/basic-trading.d.ts.map +0 -1
- package/dist/examples/bonding-curve/graduation-workflow.d.ts +0 -18
- package/dist/examples/bonding-curve/graduation-workflow.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pagination-variants.d.ts +0 -17
- package/dist/examples/bonding-curve/pagination-variants.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pool-analysis.d.ts +0 -18
- package/dist/examples/bonding-curve/pool-analysis.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pool-creator-filtering.d.ts +0 -17
- package/dist/examples/bonding-curve/pool-creator-filtering.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pool-discovery.d.ts +0 -19
- package/dist/examples/bonding-curve/pool-discovery.d.ts.map +0 -1
- package/dist/examples/bonding-curve/price-impact.d.ts +0 -18
- package/dist/examples/bonding-curve/price-impact.d.ts.map +0 -1
- package/dist/examples/bonding-curve/token-launch.d.ts +0 -18
- package/dist/examples/bonding-curve/token-launch.d.ts.map +0 -1
- package/dist/examples/bonding-curve/user-holder-context.d.ts +0 -18
- package/dist/examples/bonding-curve/user-holder-context.d.ts.map +0 -1
- package/dist/examples/bonding-curve/volume-trading.d.ts +0 -18
- package/dist/examples/bonding-curve/volume-trading.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-ethereum-specific.d.ts +0 -18
- package/dist/examples/bridge/bridge-ethereum-specific.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-generic-operations.d.ts +0 -18
- package/dist/examples/bridge/bridge-generic-operations.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-multi-chain-routing.d.ts +0 -31
- package/dist/examples/bridge/bridge-multi-chain-routing.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-network-methods.d.ts +0 -31
- package/dist/examples/bridge/bridge-network-methods.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-network-tokens.d.ts +0 -18
- package/dist/examples/bridge/bridge-network-tokens.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-network-validation.d.ts +0 -33
- package/dist/examples/bridge/bridge-network-validation.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-operations.d.ts +0 -27
- package/dist/examples/bridge/bridge-operations.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-solana-specific.d.ts +0 -18
- package/dist/examples/bridge/bridge-solana-specific.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-status-monitoring.d.ts +0 -30
- package/dist/examples/bridge/bridge-status-monitoring.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-wrapped-token-operations.d.ts +0 -30
- package/dist/examples/bridge/bridge-wrapped-token-operations.d.ts.map +0 -1
- package/dist/examples/bridge/bridgeable-tokens.d.ts +0 -27
- package/dist/examples/bridge/bridgeable-tokens.d.ts.map +0 -1
- package/dist/examples/bridge/check-balances.d.ts +0 -13
- package/dist/examples/bridge/check-balances.d.ts.map +0 -1
- package/dist/examples/bridge/ethereum-in.d.ts +0 -17
- package/dist/examples/bridge/ethereum-in.d.ts.map +0 -1
- package/dist/examples/bridge/ethereum-out.d.ts +0 -17
- package/dist/examples/bridge/ethereum-out.d.ts.map +0 -1
- package/dist/examples/bridge/ethereum-roundtrip.d.ts +0 -20
- package/dist/examples/bridge/ethereum-roundtrip.d.ts.map +0 -1
- package/dist/examples/bridge/external-balances.d.ts +0 -29
- package/dist/examples/bridge/external-balances.d.ts.map +0 -1
- package/dist/examples/bridge/fee-estimation.d.ts +0 -14
- package/dist/examples/bridge/fee-estimation.d.ts.map +0 -1
- package/dist/examples/bridge/solana-in.d.ts +0 -18
- package/dist/examples/bridge/solana-in.d.ts.map +0 -1
- package/dist/examples/bridge/solana-out.d.ts +0 -18
- package/dist/examples/bridge/solana-out.d.ts.map +0 -1
- package/dist/examples/bridge/solana-roundtrip.d.ts +0 -21
- package/dist/examples/bridge/solana-roundtrip.d.ts.map +0 -1
- package/dist/examples/bridge/status-tracking.d.ts +0 -16
- package/dist/examples/bridge/status-tracking.d.ts.map +0 -1
- package/dist/examples/bridge/supported-tokens.d.ts +0 -14
- package/dist/examples/bridge/supported-tokens.d.ts.map +0 -1
- package/dist/examples/bridge/test-debug-unwrap.d.ts +0 -13
- package/dist/examples/bridge/test-debug-unwrap.d.ts.map +0 -1
- package/dist/examples/bridge/test-unwrap-execution.d.ts +0 -13
- package/dist/examples/bridge/test-unwrap-execution.d.ts.map +0 -1
- package/dist/examples/bridge/test-wrap-debug.d.ts +0 -13
- package/dist/examples/bridge/test-wrap-debug.d.ts.map +0 -1
- package/dist/examples/bridge/test-wrap-execution.d.ts +0 -13
- package/dist/examples/bridge/test-wrap-execution.d.ts.map +0 -1
- package/dist/examples/bridge/test-wrap-roundtrip.d.ts +0 -13
- package/dist/examples/bridge/test-wrap-roundtrip.d.ts.map +0 -1
- package/dist/examples/bridge/transaction-status.d.ts +0 -26
- package/dist/examples/bridge/transaction-status.d.ts.map +0 -1
- package/dist/examples/bridge/wallet-balances.d.ts +0 -24
- package/dist/examples/bridge/wallet-balances.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-discovery.d.ts +0 -16
- package/dist/examples/bridge/wrap-discovery.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-fee-estimation.d.ts +0 -16
- package/dist/examples/bridge/wrap-fee-estimation.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-unwrap.d.ts +0 -18
- package/dist/examples/bridge/wrap-unwrap.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-utilities.d.ts +0 -21
- package/dist/examples/bridge/wrap-utilities.d.ts.map +0 -1
- package/dist/examples/calculations/calculation-methods-comprehensive.d.ts +0 -24
- package/dist/examples/calculations/calculation-methods-comprehensive.d.ts.map +0 -1
- package/dist/examples/calculations/external-calculations-demo.d.ts +0 -23
- package/dist/examples/calculations/external-calculations-demo.d.ts.map +0 -1
- package/dist/examples/calculations/local-calculations-demo.d.ts +0 -24
- package/dist/examples/calculations/local-calculations-demo.d.ts.map +0 -1
- package/dist/examples/calculations/pool-calculation-context.d.ts +0 -19
- package/dist/examples/calculations/pool-calculation-context.d.ts.map +0 -1
- package/dist/examples/chat/basic-chat.d.ts +0 -17
- package/dist/examples/chat/basic-chat.d.ts.map +0 -1
- package/dist/examples/chat/chat-admin-controls.d.ts +0 -41
- package/dist/examples/chat/chat-admin-controls.d.ts.map +0 -1
- package/dist/examples/chat/chat-demo.d.ts +0 -25
- package/dist/examples/chat/chat-demo.d.ts.map +0 -1
- package/dist/examples/chat/chat-engagement-stats.d.ts +0 -44
- package/dist/examples/chat/chat-engagement-stats.d.ts.map +0 -1
- package/dist/examples/chat/chat-lifecycle.d.ts +0 -26
- package/dist/examples/chat/chat-lifecycle.d.ts.map +0 -1
- package/dist/examples/chat/chat-message-management.d.ts +0 -18
- package/dist/examples/chat/chat-message-management.d.ts.map +0 -1
- package/dist/examples/chat/chat-pinning-workflow.d.ts +0 -37
- package/dist/examples/chat/chat-pinning-workflow.d.ts.map +0 -1
- package/dist/examples/chat/demo-pin-messages.d.ts +0 -17
- package/dist/examples/chat/demo-pin-messages.d.ts.map +0 -1
- package/dist/examples/chat/multi-user-chat-test.d.ts +0 -19
- package/dist/examples/chat/multi-user-chat-test.d.ts.map +0 -1
- package/dist/examples/chat/quick-reaction-test.d.ts +0 -4
- package/dist/examples/chat/quick-reaction-test.d.ts.map +0 -1
- package/dist/examples/chat/typing-indicators.d.ts +0 -23
- package/dist/examples/chat/typing-indicators.d.ts.map +0 -1
- package/dist/examples/chat/websocket-chat.d.ts +0 -21
- package/dist/examples/chat/websocket-chat.d.ts.map +0 -1
- package/dist/examples/comments/basic-comments.d.ts +0 -19
- package/dist/examples/comments/basic-comments.d.ts.map +0 -1
- package/dist/examples/comments/comments-demo.d.ts +0 -34
- package/dist/examples/comments/comments-demo.d.ts.map +0 -1
- package/dist/examples/comments/comments-lifecycle.d.ts +0 -24
- package/dist/examples/comments/comments-lifecycle.d.ts.map +0 -1
- package/dist/examples/comments/comments-update-workflow.d.ts +0 -35
- package/dist/examples/comments/comments-update-workflow.d.ts.map +0 -1
- package/dist/examples/content/content-categorization.d.ts +0 -51
- package/dist/examples/content/content-categorization.d.ts.map +0 -1
- package/dist/examples/content/content-publishing-workflow.d.ts +0 -45
- package/dist/examples/content/content-publishing-workflow.d.ts.map +0 -1
- package/dist/examples/content/content-versioning.d.ts +0 -52
- package/dist/examples/content/content-versioning.d.ts.map +0 -1
- package/dist/examples/content-flags/comprehensive-flag-workflow.d.ts +0 -40
- package/dist/examples/content-flags/comprehensive-flag-workflow.d.ts.map +0 -1
- package/dist/examples/content-flags/flag-management.d.ts +0 -28
- package/dist/examples/content-flags/flag-management.d.ts.map +0 -1
- package/dist/examples/content-reactions/advanced-reactions.d.ts +0 -24
- package/dist/examples/content-reactions/advanced-reactions.d.ts.map +0 -1
- package/dist/examples/content-reactions/basic-reactions.d.ts +0 -21
- package/dist/examples/content-reactions/basic-reactions.d.ts.map +0 -1
- package/dist/examples/content-reactions/comprehensive-reactions-workflow.d.ts +0 -41
- package/dist/examples/content-reactions/comprehensive-reactions-workflow.d.ts.map +0 -1
- package/dist/examples/content-reactions/content-reactions-advanced.d.ts +0 -40
- package/dist/examples/content-reactions/content-reactions-advanced.d.ts.map +0 -1
- package/dist/examples/core/authenticated-operations.d.ts +0 -14
- package/dist/examples/core/authenticated-operations.d.ts.map +0 -1
- package/dist/examples/core/complete-sdk-demo.d.ts +0 -22
- package/dist/examples/core/complete-sdk-demo.d.ts.map +0 -1
- package/dist/examples/core/image-uploads.d.ts +0 -28
- package/dist/examples/core/image-uploads.d.ts.map +0 -1
- package/dist/examples/core/privatekey-override-pattern.d.ts +0 -16
- package/dist/examples/core/privatekey-override-pattern.d.ts.map +0 -1
- package/dist/examples/core/read-only-operations.d.ts +0 -16
- package/dist/examples/core/read-only-operations.d.ts.map +0 -1
- package/dist/examples/core/session-auth-demo.d.ts +0 -15
- package/dist/examples/core/session-auth-demo.d.ts.map +0 -1
- package/dist/examples/core/session-auth-lifecycle.d.ts +0 -19
- package/dist/examples/core/session-auth-lifecycle.d.ts.map +0 -1
- package/dist/examples/core/test-pagination-fix.d.ts +0 -14
- package/dist/examples/core/test-pagination-fix.d.ts.map +0 -1
- package/dist/examples/core/token-refresh-utilities.d.ts +0 -18
- package/dist/examples/core/token-refresh-utilities.d.ts.map +0 -1
- package/dist/examples/core/token-validation.d.ts +0 -18
- package/dist/examples/core/token-validation.d.ts.map +0 -1
- package/dist/examples/core/wallet-management.d.ts +0 -23
- package/dist/examples/core/wallet-management.d.ts.map +0 -1
- package/dist/examples/debug/check-recorded-bridge-tx.d.ts +0 -8
- package/dist/examples/debug/check-recorded-bridge-tx.d.ts.map +0 -1
- package/dist/examples/debug/debug-comment.d.ts +0 -2
- package/dist/examples/debug/debug-comment.d.ts.map +0 -1
- package/dist/examples/debug/test-volume-data-bounds-prod.d.ts +0 -15
- package/dist/examples/debug/test-volume-data-bounds-prod.d.ts.map +0 -1
- package/dist/examples/debug/test-volume-data-bounds.d.ts +0 -14
- package/dist/examples/debug/test-volume-data-bounds.d.ts.map +0 -1
- package/dist/examples/debug/websocket-event-discovery.d.ts +0 -26
- package/dist/examples/debug/websocket-event-discovery.d.ts.map +0 -1
- package/dist/examples/debug/websocket-monitor.d.ts +0 -15
- package/dist/examples/debug/websocket-monitor.d.ts.map +0 -1
- package/dist/examples/debug-single-trade.d.ts +0 -6
- package/dist/examples/debug-single-trade.d.ts.map +0 -1
- package/dist/examples/demo-librarian.d.ts +0 -18
- package/dist/examples/demo-librarian.d.ts.map +0 -1
- package/dist/examples/demo-runner.d.ts +0 -22
- package/dist/examples/demo-runner.d.ts.map +0 -1
- package/dist/examples/dex/demo-roundtrip-liquidity.d.ts +0 -16
- package/dist/examples/dex/demo-roundtrip-liquidity.d.ts.map +0 -1
- package/dist/examples/dex/dex-impermanent-loss-analysis.d.ts +0 -28
- package/dist/examples/dex/dex-impermanent-loss-analysis.d.ts.map +0 -1
- package/dist/examples/dex/dex-liquidity-management-advanced.d.ts +0 -27
- package/dist/examples/dex/dex-liquidity-management-advanced.d.ts.map +0 -1
- package/dist/examples/dex/dex-multi-hop-swaps.d.ts +0 -32
- package/dist/examples/dex/dex-multi-hop-swaps.d.ts.map +0 -1
- package/dist/examples/dex/dex-pool-pricing.d.ts +0 -20
- package/dist/examples/dex/dex-pool-pricing.d.ts.map +0 -1
- package/dist/examples/dex/dex-quote-calculations.d.ts +0 -21
- package/dist/examples/dex/dex-quote-calculations.d.ts.map +0 -1
- package/dist/examples/dex/dex-seasons-leaderboard.d.ts +0 -22
- package/dist/examples/dex/dex-seasons-leaderboard.d.ts.map +0 -1
- package/dist/examples/dex/dex-slippage-protection.d.ts +0 -28
- package/dist/examples/dex/dex-slippage-protection.d.ts.map +0 -1
- package/dist/examples/dex/dex-tokens-discovery.d.ts +0 -20
- package/dist/examples/dex/dex-tokens-discovery.d.ts.map +0 -1
- package/dist/examples/dex/dex-volume-analytics.d.ts +0 -19
- package/dist/examples/dex/dex-volume-analytics.d.ts.map +0 -1
- package/dist/examples/dex/leaderboard.d.ts +0 -12
- package/dist/examples/dex/leaderboard.d.ts.map +0 -1
- package/dist/examples/dex/pool-discovery.d.ts +0 -25
- package/dist/examples/dex/pool-discovery.d.ts.map +0 -1
- package/dist/examples/dex/pools-with-pricing.d.ts +0 -28
- package/dist/examples/dex/pools-with-pricing.d.ts.map +0 -1
- package/dist/examples/dex/quote-comparison.d.ts +0 -16
- package/dist/examples/dex/quote-comparison.d.ts.map +0 -1
- package/dist/examples/dex/swap-user-assets-comprehensive.d.ts +0 -20
- package/dist/examples/dex/swap-user-assets-comprehensive.d.ts.map +0 -1
- package/dist/examples/dex/swap-workflow.d.ts +0 -20
- package/dist/examples/dex/swap-workflow.d.ts.map +0 -1
- package/dist/examples/dex/token-discovery.d.ts +0 -27
- package/dist/examples/dex/token-discovery.d.ts.map +0 -1
- package/dist/examples/dex/volume-summary.d.ts +0 -12
- package/dist/examples/dex/volume-summary.d.ts.map +0 -1
- package/dist/examples/error-handling/error-recovery-patterns.d.ts +0 -42
- package/dist/examples/error-handling/error-recovery-patterns.d.ts.map +0 -1
- package/dist/examples/error-handling/timeout-management.d.ts +0 -43
- package/dist/examples/error-handling/timeout-management.d.ts.map +0 -1
- package/dist/examples/events/event-aggregation-analysis.d.ts +0 -40
- package/dist/examples/events/event-aggregation-analysis.d.ts.map +0 -1
- package/dist/examples/events/event-emission-patterns.d.ts +0 -35
- package/dist/examples/events/event-emission-patterns.d.ts.map +0 -1
- package/dist/examples/events/subscription-management-advanced.d.ts +0 -38
- package/dist/examples/events/subscription-management-advanced.d.ts.map +0 -1
- package/dist/examples/fees/complete-fee-test.d.ts +0 -13
- package/dist/examples/fees/complete-fee-test.d.ts.map +0 -1
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts +0 -27
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts.map +0 -1
- package/dist/examples/fees/demo-fees-high-volume.d.ts +0 -13
- package/dist/examples/fees/demo-fees-high-volume.d.ts.map +0 -1
- package/dist/examples/fees/demo-multi-wallet-fee-generation.d.ts +0 -13
- package/dist/examples/fees/demo-multi-wallet-fee-generation.d.ts.map +0 -1
- package/dist/examples/fees/trade-and-collect-fees.d.ts +0 -13
- package/dist/examples/fees/trade-and-collect-fees.d.ts.map +0 -1
- package/dist/examples/galachain/bundler-transactions.d.ts +0 -28
- package/dist/examples/galachain/bundler-transactions.d.ts.map +0 -1
- package/dist/examples/galachain/galachain-token-resolution.d.ts +0 -28
- package/dist/examples/galachain/galachain-token-resolution.d.ts.map +0 -1
- package/dist/examples/galachain/galachain-tokens.d.ts +0 -28
- package/dist/examples/galachain/galachain-tokens.d.ts.map +0 -1
- package/dist/examples/galachain/galachain-transfers.d.ts +0 -25
- package/dist/examples/galachain/galachain-transfers.d.ts.map +0 -1
- package/dist/examples/global-feed-demo.d.ts +0 -17
- package/dist/examples/global-feed-demo.d.ts.map +0 -1
- package/dist/examples/global-feed-filtering-demo.d.ts +0 -20
- package/dist/examples/global-feed-filtering-demo.d.ts.map +0 -1
- package/dist/examples/launchpad/demo-socials.d.ts +0 -16
- package/dist/examples/launchpad/demo-socials.d.ts.map +0 -1
- package/dist/examples/launchpad/fetch-token-stats.d.ts +0 -18
- package/dist/examples/launchpad/fetch-token-stats.d.ts.map +0 -1
- package/dist/examples/launchpad/update-token-config.d.ts +0 -17
- package/dist/examples/launchpad/update-token-config.d.ts.map +0 -1
- package/dist/examples/liquidity/apr-calculator.d.ts +0 -18
- package/dist/examples/liquidity/apr-calculator.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-bundler-operations.d.ts +0 -15
- package/dist/examples/liquidity/demo-bundler-operations.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-fetch-all-positions.d.ts +0 -2
- package/dist/examples/liquidity/demo-fetch-all-positions.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-position-direct.d.ts +0 -14
- package/dist/examples/liquidity/demo-position-direct.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-positions-with-chunked-pricing.d.ts +0 -26
- package/dist/examples/liquidity/demo-positions-with-chunked-pricing.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-roundtrip-remove.d.ts +0 -21
- package/dist/examples/liquidity/demo-roundtrip-remove.d.ts.map +0 -1
- package/dist/examples/liquidity/detailed.d.ts +0 -21
- package/dist/examples/liquidity/detailed.d.ts.map +0 -1
- package/dist/examples/liquidity/errors.d.ts +0 -18
- package/dist/examples/liquidity/errors.d.ts.map +0 -1
- package/dist/examples/liquidity/fee-collection.d.ts +0 -22
- package/dist/examples/liquidity/fee-collection.d.ts.map +0 -1
- package/dist/examples/liquidity/liquidity-position-details.d.ts +0 -21
- package/dist/examples/liquidity/liquidity-position-details.d.ts.map +0 -1
- package/dist/examples/liquidity/liquidity-removal-estimation.d.ts +0 -19
- package/dist/examples/liquidity/liquidity-removal-estimation.d.ts.map +0 -1
- package/dist/examples/liquidity/multi-position.d.ts +0 -22
- package/dist/examples/liquidity/multi-position.d.ts.map +0 -1
- package/dist/examples/liquidity/positions-cli.d.ts +0 -41
- package/dist/examples/liquidity/positions-cli.d.ts.map +0 -1
- package/dist/examples/liquidity/ticks.d.ts +0 -18
- package/dist/examples/liquidity/ticks.d.ts.map +0 -1
- package/dist/examples/locks/burn-tokens.d.ts +0 -25
- package/dist/examples/locks/burn-tokens.d.ts.map +0 -1
- package/dist/examples/locks/lock-unlock-workflow.d.ts +0 -20
- package/dist/examples/locks/lock-unlock-workflow.d.ts.map +0 -1
- package/dist/examples/messages/messages-lifecycle.d.ts +0 -37
- package/dist/examples/messages/messages-lifecycle.d.ts.map +0 -1
- package/dist/examples/messages/messages-pinning.d.ts +0 -37
- package/dist/examples/messages/messages-pinning.d.ts.map +0 -1
- package/dist/examples/moderators/claim-invite.d.ts +0 -28
- package/dist/examples/moderators/claim-invite.d.ts.map +0 -1
- package/dist/examples/moderators/invite-management.d.ts +0 -30
- package/dist/examples/moderators/invite-management.d.ts.map +0 -1
- package/dist/examples/moderators/moderated-tokens-portfolio.d.ts +0 -18
- package/dist/examples/moderators/moderated-tokens-portfolio.d.ts.map +0 -1
- package/dist/examples/monitoring/demo-stream-events.d.ts +0 -17
- package/dist/examples/monitoring/demo-stream-events.d.ts.map +0 -1
- package/dist/examples/monitoring/demo-watch-pools.d.ts +0 -18
- package/dist/examples/monitoring/demo-watch-pools.d.ts.map +0 -1
- package/dist/examples/monitoring/demo-watch-tokens.d.ts +0 -18
- package/dist/examples/monitoring/demo-watch-tokens.d.ts.map +0 -1
- package/dist/examples/monitoring/fees-collection-e2e.d.ts +0 -36
- package/dist/examples/monitoring/fees-collection-e2e.d.ts.map +0 -1
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts +0 -49
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts.map +0 -1
- package/dist/examples/monitoring/liquidity-e2e-test.d.ts +0 -15
- package/dist/examples/monitoring/liquidity-e2e-test.d.ts.map +0 -1
- package/dist/examples/monitoring/liquidity-monitor.d.ts +0 -17
- package/dist/examples/monitoring/liquidity-monitor.d.ts.map +0 -1
- package/dist/examples/monitoring/pool-creation-integration.d.ts +0 -27
- package/dist/examples/monitoring/pool-creation-integration.d.ts.map +0 -1
- package/dist/examples/monitoring/pool-liquidity-tracker.d.ts +0 -15
- package/dist/examples/monitoring/pool-liquidity-tracker.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-liquidity-added.d.ts +0 -30
- package/dist/examples/monitoring/subscribe-liquidity-added.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-liquidity-removed.d.ts +0 -30
- package/dist/examples/monitoring/subscribe-liquidity-removed.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-pool-creations.d.ts +0 -29
- package/dist/examples/monitoring/subscribe-pool-creations.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-token-creations.d.ts +0 -21
- package/dist/examples/monitoring/subscribe-token-creations.d.ts.map +0 -1
- package/dist/examples/monitoring/token-creation-integration.d.ts +0 -32
- package/dist/examples/monitoring/token-creation-integration.d.ts.map +0 -1
- package/dist/examples/monitoring/websocket-event-handlers.d.ts +0 -22
- package/dist/examples/monitoring/websocket-event-handlers.d.ts.map +0 -1
- package/dist/examples/nft/demo-collection-management.d.ts +0 -13
- package/dist/examples/nft/demo-collection-management.d.ts.map +0 -1
- package/dist/examples/nft/demo-fee-calculations.d.ts +0 -14
- package/dist/examples/nft/demo-fee-calculations.d.ts.map +0 -1
- package/dist/examples/nft/demo-minting.d.ts +0 -13
- package/dist/examples/nft/demo-minting.d.ts.map +0 -1
- package/dist/examples/nft/demo-portfolio-query.d.ts +0 -14
- package/dist/examples/nft/demo-portfolio-query.d.ts.map +0 -1
- package/dist/examples/nft/nft-collection-lifecycle.d.ts +0 -22
- package/dist/examples/nft/nft-collection-lifecycle.d.ts.map +0 -1
- package/dist/examples/nft/nft-data-queries.d.ts +0 -22
- package/dist/examples/nft/nft-data-queries.d.ts.map +0 -1
- package/dist/examples/nft/nft-fee-estimation.d.ts +0 -23
- package/dist/examples/nft/nft-fee-estimation.d.ts.map +0 -1
- package/dist/examples/nft/nft-token-creation.d.ts +0 -22
- package/dist/examples/nft/nft-token-creation.d.ts.map +0 -1
- package/dist/examples/nft/nft-utilities.d.ts +0 -23
- package/dist/examples/nft/nft-utilities.d.ts.map +0 -1
- package/dist/examples/orchestrator-master.d.ts +0 -22
- package/dist/examples/orchestrator-master.d.ts.map +0 -1
- package/dist/examples/orchestrator-tasks.d.ts +0 -38
- package/dist/examples/orchestrator-tasks.d.ts.map +0 -1
- package/dist/examples/overseers/claim-invite.d.ts +0 -31
- package/dist/examples/overseers/claim-invite.d.ts.map +0 -1
- package/dist/examples/overseers/demo-list-users.d.ts +0 -19
- package/dist/examples/overseers/demo-list-users.d.ts.map +0 -1
- package/dist/examples/overseers/direct-promotion.d.ts +0 -39
- package/dist/examples/overseers/direct-promotion.d.ts.map +0 -1
- package/dist/examples/overseers/invite-management.d.ts +0 -38
- package/dist/examples/overseers/invite-management.d.ts.map +0 -1
- package/dist/examples/overseers/restricted-names-management.d.ts +0 -27
- package/dist/examples/overseers/restricted-names-management.d.ts.map +0 -1
- package/dist/examples/performance/caching-strategies-advanced.d.ts +0 -28
- package/dist/examples/performance/caching-strategies-advanced.d.ts.map +0 -1
- package/dist/examples/performance/performance-optimization-patterns.d.ts +0 -28
- package/dist/examples/performance/performance-optimization-patterns.d.ts.map +0 -1
- package/dist/examples/persistence/data-backup-recovery.d.ts +0 -119
- package/dist/examples/persistence/data-backup-recovery.d.ts.map +0 -1
- package/dist/examples/persistence/local-storage-patterns.d.ts +0 -86
- package/dist/examples/persistence/local-storage-patterns.d.ts.map +0 -1
- package/dist/examples/queries/advanced-sorting.d.ts +0 -28
- package/dist/examples/queries/advanced-sorting.d.ts.map +0 -1
- package/dist/examples/queries/complex-filtering.d.ts +0 -27
- package/dist/examples/queries/complex-filtering.d.ts.map +0 -1
- package/dist/examples/security/security-audit-trail.d.ts +0 -42
- package/dist/examples/security/security-audit-trail.d.ts.map +0 -1
- package/dist/examples/security/security-content-moderation-advanced.d.ts +0 -42
- package/dist/examples/security/security-content-moderation-advanced.d.ts.map +0 -1
- package/dist/examples/security/security-token-safety-checks.d.ts +0 -41
- package/dist/examples/security/security-token-safety-checks.d.ts.map +0 -1
- package/dist/examples/security/security-user-restrictions-advanced.d.ts +0 -42
- package/dist/examples/security/security-user-restrictions-advanced.d.ts.map +0 -1
- package/dist/examples/site-config-demo.d.ts +0 -20
- package/dist/examples/site-config-demo.d.ts.map +0 -1
- package/dist/examples/streaming/admin-controls.d.ts +0 -30
- package/dist/examples/streaming/admin-controls.d.ts.map +0 -1
- package/dist/examples/streaming/advanced-stream-demo.d.ts +0 -28
- package/dist/examples/streaming/advanced-stream-demo.d.ts.map +0 -1
- package/dist/examples/streaming/basic-stream.d.ts +0 -17
- package/dist/examples/streaming/basic-stream.d.ts.map +0 -1
- package/dist/examples/streaming/demo-countdown.d.ts +0 -16
- package/dist/examples/streaming/demo-countdown.d.ts.map +0 -1
- package/dist/examples/streaming/demo-get-stream-credentials.d.ts +0 -29
- package/dist/examples/streaming/demo-get-stream-credentials.d.ts.map +0 -1
- package/dist/examples/streaming/demo-platform-config.d.ts +0 -20
- package/dist/examples/streaming/demo-platform-config.d.ts.map +0 -1
- package/dist/examples/streaming/engagement-stats.d.ts +0 -25
- package/dist/examples/streaming/engagement-stats.d.ts.map +0 -1
- package/dist/examples/streaming/recordings.d.ts +0 -16
- package/dist/examples/streaming/recordings.d.ts.map +0 -1
- package/dist/examples/streaming/simulcast.d.ts +0 -19
- package/dist/examples/streaming/simulcast.d.ts.map +0 -1
- package/dist/examples/streaming/stream-access-control.d.ts +0 -30
- package/dist/examples/streaming/stream-access-control.d.ts.map +0 -1
- package/dist/examples/streaming/stream-control.d.ts +0 -25
- package/dist/examples/streaming/stream-control.d.ts.map +0 -1
- package/dist/examples/streaming/stream-countdown.d.ts +0 -31
- package/dist/examples/streaming/stream-countdown.d.ts.map +0 -1
- package/dist/examples/streaming/stream-enable-disable.d.ts +0 -31
- package/dist/examples/streaming/stream-enable-disable.d.ts.map +0 -1
- package/dist/examples/streaming/stream-key-management.d.ts +0 -21
- package/dist/examples/streaming/stream-key-management.d.ts.map +0 -1
- package/dist/examples/streaming/stream-recording-management.d.ts +0 -29
- package/dist/examples/streaming/stream-recording-management.d.ts.map +0 -1
- package/dist/examples/streaming/stream-simulcast-multi-platform.d.ts +0 -38
- package/dist/examples/streaming/stream-simulcast-multi-platform.d.ts.map +0 -1
- package/dist/examples/streaming/stream-viewer-analytics.d.ts +0 -43
- package/dist/examples/streaming/stream-viewer-analytics.d.ts.map +0 -1
- package/dist/examples/streaming/streaming-lifecycle.d.ts +0 -26
- package/dist/examples/streaming/streaming-lifecycle.d.ts.map +0 -1
- package/dist/examples/streaming-premium/stream-monetization-setup.d.ts +0 -47
- package/dist/examples/streaming-premium/stream-monetization-setup.d.ts.map +0 -1
- package/dist/examples/streaming-premium/stream-revenue-analytics.d.ts +0 -56
- package/dist/examples/streaming-premium/stream-revenue-analytics.d.ts.map +0 -1
- package/dist/examples/streaming-premium/stream-vip-management.d.ts +0 -56
- package/dist/examples/streaming-premium/stream-vip-management.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/arbitrage-monitor.d.ts +0 -20
- package/dist/examples/swap-monitoring/arbitrage-monitor.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts +0 -50
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/health-monitor.d.ts +0 -10
- package/dist/examples/swap-monitoring/health-monitor.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/volume-monitor.d.ts +0 -20
- package/dist/examples/swap-monitoring/volume-monitor.d.ts.map +0 -1
- package/dist/examples/testing/demo-test-runner.d.ts +0 -33
- package/dist/examples/testing/demo-test-runner.d.ts.map +0 -1
- package/dist/examples/testing/error-classifier.d.ts +0 -23
- package/dist/examples/testing/error-classifier.d.ts.map +0 -1
- package/dist/examples/testing/index.d.ts +0 -14
- package/dist/examples/testing/index.d.ts.map +0 -1
- package/dist/examples/testing/memory-manager.d.ts +0 -31
- package/dist/examples/testing/memory-manager.d.ts.map +0 -1
- package/dist/examples/testing/report-generator.d.ts +0 -31
- package/dist/examples/testing/report-generator.d.ts.map +0 -1
- package/dist/examples/testing/test-result-types.d.ts +0 -158
- package/dist/examples/testing/test-result-types.d.ts.map +0 -1
- package/dist/examples/token-bans/token-ban-management.d.ts +0 -32
- package/dist/examples/token-bans/token-ban-management.d.ts.map +0 -1
- package/dist/examples/token-creation/token-launch-complete.d.ts +0 -20
- package/dist/examples/token-creation/token-launch-complete.d.ts.map +0 -1
- package/dist/examples/token-creation/token-validation-comprehensive.d.ts +0 -22
- package/dist/examples/token-creation/token-validation-comprehensive.d.ts.map +0 -1
- package/dist/examples/token-info/token-name-resolution.d.ts +0 -30
- package/dist/examples/token-info/token-name-resolution.d.ts.map +0 -1
- package/dist/examples/token-info/token-operations-comprehensive.d.ts +0 -22
- package/dist/examples/token-info/token-operations-comprehensive.d.ts.map +0 -1
- package/dist/examples/token-metadata/token-description-versioning.d.ts +0 -33
- package/dist/examples/token-metadata/token-description-versioning.d.ts.map +0 -1
- package/dist/examples/token-metadata/token-image-management.d.ts +0 -34
- package/dist/examples/token-metadata/token-image-management.d.ts.map +0 -1
- package/dist/examples/token-metadata/token-social-links-management.d.ts +0 -34
- package/dist/examples/token-metadata/token-social-links-management.d.ts.map +0 -1
- package/dist/examples/trading/buy-sell-aliases.d.ts +0 -20
- package/dist/examples/trading/buy-sell-aliases.d.ts.map +0 -1
- package/dist/examples/trading/volume-data-demo.d.ts +0 -20
- package/dist/examples/trading/volume-data-demo.d.ts.map +0 -1
- package/dist/examples/trading-advanced/dollar-cost-averaging.d.ts +0 -35
- package/dist/examples/trading-advanced/dollar-cost-averaging.d.ts.map +0 -1
- package/dist/examples/trading-advanced/limit-orders-advanced.d.ts +0 -34
- package/dist/examples/trading-advanced/limit-orders-advanced.d.ts.map +0 -1
- package/dist/examples/trading-advanced/stop-loss-orders.d.ts +0 -34
- package/dist/examples/trading-advanced/stop-loss-orders.d.ts.map +0 -1
- package/dist/examples/trading-advanced/trading-history-analysis.d.ts +0 -35
- package/dist/examples/trading-advanced/trading-history-analysis.d.ts.map +0 -1
- package/dist/examples/users/balance-queries.d.ts +0 -28
- package/dist/examples/users/balance-queries.d.ts.map +0 -1
- package/dist/examples/users/fetch-user-balances.d.ts +0 -19
- package/dist/examples/users/fetch-user-balances.d.ts.map +0 -1
- package/dist/examples/users/fetch-user-report.d.ts +0 -21
- package/dist/examples/users/fetch-user-report.d.ts.map +0 -1
- package/dist/examples/users/profile-images.d.ts +0 -24
- package/dist/examples/users/profile-images.d.ts.map +0 -1
- package/dist/examples/users/profile-management.d.ts +0 -22
- package/dist/examples/users/profile-management.d.ts.map +0 -1
- package/dist/examples/users/referrals-comprehensive.d.ts +0 -26
- package/dist/examples/users/referrals-comprehensive.d.ts.map +0 -1
- package/dist/examples/users/wallet-balances-external.d.ts +0 -28
- package/dist/examples/users/wallet-balances-external.d.ts.map +0 -1
- package/dist/examples/utilities/account.d.ts +0 -19
- package/dist/examples/utilities/account.d.ts.map +0 -1
- package/dist/examples/utilities/balance.d.ts +0 -5
- package/dist/examples/utilities/balance.d.ts.map +0 -1
- package/dist/examples/utilities/balances.d.ts +0 -7
- package/dist/examples/utilities/balances.d.ts.map +0 -1
- package/dist/examples/utilities/demo-cache.d.ts +0 -13
- package/dist/examples/utilities/demo-cache.d.ts.map +0 -1
- package/dist/examples/utilities/demo-token-supply.d.ts +0 -14
- package/dist/examples/utilities/demo-token-supply.d.ts.map +0 -1
- package/dist/examples/utilities/key-derivation.d.ts +0 -12
- package/dist/examples/utilities/key-derivation.d.ts.map +0 -1
- package/dist/examples/utilities/multi-token-portfolio.d.ts +0 -18
- package/dist/examples/utilities/multi-token-portfolio.d.ts.map +0 -1
- package/dist/examples/utilities/pool-discovery-advanced.d.ts +0 -36
- package/dist/examples/utilities/pool-discovery-advanced.d.ts.map +0 -1
- package/dist/examples/utilities/pool-pair-analysis.d.ts +0 -37
- package/dist/examples/utilities/pool-pair-analysis.d.ts.map +0 -1
- package/dist/examples/utilities/price-history.d.ts +0 -22
- package/dist/examples/utilities/price-history.d.ts.map +0 -1
- package/dist/examples/utilities/referrals.d.ts +0 -21
- package/dist/examples/utilities/referrals.d.ts.map +0 -1
- package/dist/examples/utilities/token-classification.d.ts +0 -38
- package/dist/examples/utilities/token-classification.d.ts.map +0 -1
- package/dist/examples/utilities/token-discovery.d.ts +0 -26
- package/dist/examples/utilities/token-discovery.d.ts.map +0 -1
- package/dist/examples/utilities/token-metadata-advanced.d.ts +0 -37
- package/dist/examples/utilities/token-metadata-advanced.d.ts.map +0 -1
- package/dist/examples/utilities/token-validation-complete.d.ts +0 -41
- package/dist/examples/utilities/token-validation-complete.d.ts.map +0 -1
- package/dist/examples/utilities/trade-history.d.ts +0 -19
- package/dist/examples/utilities/trade-history.d.ts.map +0 -1
- package/dist/examples/utilities/transfers.d.ts +0 -29
- package/dist/examples/utilities/transfers.d.ts.map +0 -1
- package/dist/examples/utilities/validation-and-error-handling.d.ts +0 -27
- package/dist/examples/utilities/validation-and-error-handling.d.ts.map +0 -1
- package/dist/examples/utilities/wrappable-tokens.d.ts +0 -27
- package/dist/examples/utilities/wrappable-tokens.d.ts.map +0 -1
- package/dist/examples/utility/auth-utilities.d.ts +0 -30
- package/dist/examples/utility/auth-utilities.d.ts.map +0 -1
- package/dist/examples/utility/pool-utilities.d.ts +0 -29
- package/dist/examples/utility/pool-utilities.d.ts.map +0 -1
- package/dist/examples/utility/sdk-configuration.d.ts +0 -29
- package/dist/examples/utility/sdk-configuration.d.ts.map +0 -1
- package/dist/examples/utility/wallet-management-advanced.d.ts +0 -32
- package/dist/examples/utility/wallet-management-advanced.d.ts.map +0 -1
- package/dist/examples/utils/auth-bootstrap.d.ts +0 -123
- package/dist/examples/utils/auth-bootstrap.d.ts.map +0 -1
- package/dist/examples/utils/balance-checking.d.ts +0 -158
- package/dist/examples/utils/balance-checking.d.ts.map +0 -1
- package/dist/examples/utils/bridge-formatters.d.ts +0 -188
- package/dist/examples/utils/bridge-formatters.d.ts.map +0 -1
- package/dist/examples/utils/bridge-setup.d.ts +0 -235
- package/dist/examples/utils/bridge-setup.d.ts.map +0 -1
- package/dist/examples/utils/bridge-transaction-logger.d.ts +0 -42
- package/dist/examples/utils/bridge-transaction-logger.d.ts.map +0 -1
- package/dist/examples/utils/cli-input.d.ts +0 -41
- package/dist/examples/utils/cli-input.d.ts.map +0 -1
- package/dist/examples/utils/demo-config.d.ts +0 -155
- package/dist/examples/utils/demo-config.d.ts.map +0 -1
- package/dist/examples/utils/demo-registry.d.ts +0 -155
- package/dist/examples/utils/demo-registry.d.ts.map +0 -1
- package/dist/examples/utils/error-handler.d.ts +0 -85
- package/dist/examples/utils/error-handler.d.ts.map +0 -1
- package/dist/examples/utils/formatting.d.ts +0 -195
- package/dist/examples/utils/formatting.d.ts.map +0 -1
- package/dist/examples/utils/get-environment.d.ts +0 -17
- package/dist/examples/utils/get-environment.d.ts.map +0 -1
- package/dist/examples/utils/index.d.ts +0 -44
- package/dist/examples/utils/index.d.ts.map +0 -1
- package/dist/examples/utils/indexing.d.ts +0 -48
- package/dist/examples/utils/indexing.d.ts.map +0 -1
- package/dist/examples/utils/load-env.d.ts +0 -90
- package/dist/examples/utils/load-env.d.ts.map +0 -1
- package/dist/examples/utils/logger.d.ts +0 -52
- package/dist/examples/utils/logger.d.ts.map +0 -1
- package/dist/examples/utils/pool-helpers.d.ts +0 -226
- package/dist/examples/utils/pool-helpers.d.ts.map +0 -1
- package/dist/examples/utils/punchlist.d.ts +0 -104
- package/dist/examples/utils/punchlist.d.ts.map +0 -1
- package/dist/examples/utils/sdk-setup.d.ts +0 -423
- package/dist/examples/utils/sdk-setup.d.ts.map +0 -1
- package/dist/examples/utils/suppress-logging.d.ts +0 -11
- package/dist/examples/utils/suppress-logging.d.ts.map +0 -1
- package/dist/examples/utils/token-naming.d.ts +0 -117
- package/dist/examples/utils/token-naming.d.ts.map +0 -1
- package/dist/examples/utils/trade-helpers.d.ts +0 -195
- package/dist/examples/utils/trade-helpers.d.ts.map +0 -1
- package/dist/examples/utils/transaction-helpers.d.ts +0 -92
- package/dist/examples/utils/transaction-helpers.d.ts.map +0 -1
- package/dist/examples/wallet/wallet-initialization-complete.d.ts +0 -31
- package/dist/examples/wallet/wallet-initialization-complete.d.ts.map +0 -1
- package/dist/examples/wallet/wallet-key-rotation.d.ts +0 -28
- package/dist/examples/wallet/wallet-key-rotation.d.ts.map +0 -1
- package/dist/examples/wallet/wallet-recovery-patterns.d.ts +0 -29
- package/dist/examples/wallet/wallet-recovery-patterns.d.ts.map +0 -1
- package/dist/examples/wallet/wallet-signature-operations.d.ts +0 -28
- package/dist/examples/wallet/wallet-signature-operations.d.ts.map +0 -1
- package/dist/examples/wallet-tracking/wallet-balance-monitoring.d.ts +0 -21
- package/dist/examples/wallet-tracking/wallet-balance-monitoring.d.ts.map +0 -1
- package/dist/examples/wallet-tracking/wallet-portfolio-alerts.d.ts +0 -21
- package/dist/examples/wallet-tracking/wallet-portfolio-alerts.d.ts.map +0 -1
- package/dist/examples/wallet-tracking/wallet-transaction-tracking.d.ts +0 -21
- package/dist/examples/wallet-tracking/wallet-transaction-tracking.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-chat-advanced.d.ts +0 -26
- package/dist/examples/websocket/websocket-chat-advanced.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-chat-events-detailed.d.ts +0 -28
- package/dist/examples/websocket/websocket-chat-events-detailed.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-chat-events.d.ts +0 -26
- package/dist/examples/websocket/websocket-chat-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-combined-events.d.ts +0 -28
- package/dist/examples/websocket/websocket-combined-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-comprehensive.d.ts +0 -25
- package/dist/examples/websocket/websocket-comprehensive.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-connected-clients.d.ts +0 -30
- package/dist/examples/websocket/websocket-connected-clients.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-connection-management.d.ts +0 -28
- package/dist/examples/websocket/websocket-connection-management.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-content-events.d.ts +0 -28
- package/dist/examples/websocket/websocket-content-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-core-events.d.ts +0 -27
- package/dist/examples/websocket/websocket-core-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-dex-events.d.ts +0 -40
- package/dist/examples/websocket/websocket-dex-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-dex-pools.d.ts +0 -23
- package/dist/examples/websocket/websocket-dex-pools.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-download-recording.d.ts +0 -26
- package/dist/examples/websocket/websocket-download-recording.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-interactions.d.ts +0 -25
- package/dist/examples/websocket/websocket-interactions.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-moderation-events.d.ts +0 -26
- package/dist/examples/websocket/websocket-moderation-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-recording-events.d.ts +0 -24
- package/dist/examples/websocket/websocket-recording-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-room-events.d.ts +0 -27
- package/dist/examples/websocket/websocket-room-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-room-management.d.ts +0 -27
- package/dist/examples/websocket/websocket-room-management.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-simulcast-events.d.ts +0 -26
- package/dist/examples/websocket/websocket-simulcast-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-stream-auth.d.ts +0 -23
- package/dist/examples/websocket/websocket-stream-auth.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-stream-countdown.d.ts +0 -38
- package/dist/examples/websocket/websocket-stream-countdown.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-stream-events.d.ts +0 -26
- package/dist/examples/websocket/websocket-stream-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-stream-status.d.ts +0 -39
- package/dist/examples/websocket/websocket-stream-status.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-subscription-management.d.ts +0 -27
- package/dist/examples/websocket/websocket-subscription-management.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-token-creation-events.d.ts +0 -22
- package/dist/examples/websocket/websocket-token-creation-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-token-events.d.ts +0 -24
- package/dist/examples/websocket/websocket-token-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-token-subscription.d.ts +0 -26
- package/dist/examples/websocket/websocket-token-subscription.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-token-viewers.d.ts +0 -29
- package/dist/examples/websocket/websocket-token-viewers.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-unsubscribe.d.ts +0 -25
- package/dist/examples/websocket/websocket-unsubscribe.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-user-events.d.ts +0 -40
- package/dist/examples/websocket/websocket-user-events.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-user-presence.d.ts +0 -29
- package/dist/examples/websocket/websocket-user-presence.d.ts.map +0 -1
- package/dist/examples/websocket/websocket-viewer-analytics.d.ts +0 -38
- package/dist/examples/websocket/websocket-viewer-analytics.d.ts.map +0 -1
- package/dist/examples/wrap/wrap-status-tracking.d.ts +0 -19
- package/dist/examples/wrap/wrap-status-tracking.d.ts.map +0 -1
- package/dist/examples/wrap/wrap-token-discovery.d.ts +0 -20
- package/dist/examples/wrap/wrap-token-discovery.d.ts.map +0 -1
- package/dist/scripts/derive-public-key-from-private-key.d.ts +0 -8
- package/dist/scripts/derive-public-key-from-private-key.d.ts.map +0 -1
- package/dist/scripts/eslint-fixer.d.ts +0 -7
- package/dist/scripts/eslint-fixer.d.ts.map +0 -1
- package/dist/scripts/final-fixer.d.ts +0 -7
- package/dist/scripts/final-fixer.d.ts.map +0 -1
- package/dist/scripts/fix-all-remaining-boolean.d.ts +0 -7
- package/dist/scripts/fix-all-remaining-boolean.d.ts.map +0 -1
- package/dist/scripts/fix-boolean-expressions-advanced.d.ts +0 -7
- package/dist/scripts/fix-boolean-expressions-advanced.d.ts.map +0 -1
- package/dist/scripts/fix-boolean-expressions-ast.d.ts +0 -9
- package/dist/scripts/fix-boolean-expressions-ast.d.ts.map +0 -1
- package/dist/scripts/fix-boolean-expressions-auto.d.ts +0 -7
- package/dist/scripts/fix-boolean-expressions-auto.d.ts.map +0 -1
- package/dist/scripts/fix-final-aggressive.d.ts +0 -6
- package/dist/scripts/fix-final-aggressive.d.ts.map +0 -1
- package/dist/scripts/fix-final-boolean.d.ts +0 -7
- package/dist/scripts/fix-final-boolean.d.ts.map +0 -1
- package/dist/scripts/fix-remaining-boolean.d.ts +0 -7
- package/dist/scripts/fix-remaining-boolean.d.ts.map +0 -1
- package/dist/scripts/fix-strict-boolean-comprehensive.d.ts +0 -3
- package/dist/scripts/fix-strict-boolean-comprehensive.d.ts.map +0 -1
- package/dist/scripts/fix-strict-boolean-expressions.d.ts +0 -2
- package/dist/scripts/fix-strict-boolean-expressions.d.ts.map +0 -1
- package/dist/scripts/fix-strict-boolean-final.d.ts +0 -13
- package/dist/scripts/fix-strict-boolean-final.d.ts.map +0 -1
- package/dist/scripts/fixer-aggressive.d.ts +0 -7
- package/dist/scripts/fixer-aggressive.d.ts.map +0 -1
- package/dist/scripts/fixer-conservative.d.ts +0 -7
- package/dist/scripts/fixer-conservative.d.ts.map +0 -1
- package/dist/scripts/fixer-direct.d.ts +0 -7
- package/dist/scripts/fixer-direct.d.ts.map +0 -1
- package/dist/scripts/generate-demo-registry.d.ts +0 -14
- package/dist/scripts/generate-demo-registry.d.ts.map +0 -1
- package/dist/scripts/inject-version.d.ts +0 -8
- package/dist/scripts/inject-version.d.ts.map +0 -1
- package/dist/scripts/strict-boolean-fixer.d.ts +0 -9
- package/dist/scripts/strict-boolean-fixer.d.ts.map +0 -1
- package/dist/scripts/validate-demo-registry.d.ts +0 -17
- package/dist/scripts/validate-demo-registry.d.ts.map +0 -1
- package/dist/services/DexBackendClient.d.ts +0 -225
- package/dist/services/DexBackendClient.d.ts.map +0 -1
- package/dist/services/DexBackendTradeClient.d.ts +0 -34
- package/dist/services/DexBackendTradeClient.d.ts.map +0 -1
- package/dist/services/DexPoolService.d.ts +0 -152
- package/dist/services/DexPoolService.d.ts.map +0 -1
- package/dist/services/DexQuoteService.d.ts +0 -446
- package/dist/services/DexQuoteService.d.ts.map +0 -1
- package/dist/services/GSwapAssetService.d.ts +0 -96
- package/dist/services/GSwapAssetService.d.ts.map +0 -1
- package/dist/services/GSwapLiquidityMutationService.d.ts +0 -138
- package/dist/services/GSwapLiquidityMutationService.d.ts.map +0 -1
- package/dist/services/GSwapLiquidityQueryService.d.ts +0 -75
- package/dist/services/GSwapLiquidityQueryService.d.ts.map +0 -1
- package/dist/services/GSwapPoolCalculationService.d.ts +0 -187
- package/dist/services/GSwapPoolCalculationService.d.ts.map +0 -1
- package/dist/services/GSwapPoolQueryService.d.ts +0 -114
- package/dist/services/GSwapPoolQueryService.d.ts.map +0 -1
- package/dist/services/GSwapService.d.ts +0 -1207
- package/dist/services/GSwapService.d.ts.map +0 -1
- package/dist/services/GSwapSwapService.d.ts +0 -66
- package/dist/services/GSwapSwapService.d.ts.map +0 -1
- package/dist/services/MultiPoolStateManager.d.ts +0 -289
- package/dist/services/MultiPoolStateManager.d.ts.map +0 -1
- package/dist/services/PoolCacheManager.d.ts +0 -258
- package/dist/services/PoolCacheManager.d.ts.map +0 -1
- package/dist/services/PoolStateManager.d.ts +0 -176
- package/dist/services/PoolStateManager.d.ts.map +0 -1
- package/dist/services/SignatureService.d.ts +0 -113
- package/dist/services/SignatureService.d.ts.map +0 -1
- package/dist/services/SwapEventQueue.d.ts +0 -192
- package/dist/services/SwapEventQueue.d.ts.map +0 -1
- package/dist/src/LaunchpadSDK.d.ts +0 -10746
- package/dist/src/LaunchpadSDK.d.ts.map +0 -1
- package/dist/src/api/LaunchpadAPI.d.ts +0 -930
- package/dist/src/api/LaunchpadAPI.d.ts.map +0 -1
- package/dist/src/api/dto/BondingCurveDTOs.d.ts +0 -145
- package/dist/src/api/dto/BondingCurveDTOs.d.ts.map +0 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts +0 -89
- package/dist/src/api/dto/BurnTokensDto.d.ts.map +0 -1
- package/dist/src/api/dto/LockTokenDto.d.ts +0 -97
- package/dist/src/api/dto/LockTokenDto.d.ts.map +0 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts +0 -76
- package/dist/src/api/dto/TransferTokenDto.d.ts.map +0 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts +0 -86
- package/dist/src/api/dto/UnlockTokenDto.d.ts.map +0 -1
- package/dist/src/auth/JwtAuth.d.ts +0 -183
- package/dist/src/auth/JwtAuth.d.ts.map +0 -1
- package/dist/src/auth/SessionAuthService.d.ts +0 -151
- package/dist/src/auth/SessionAuthService.d.ts.map +0 -1
- package/dist/src/auth/SignatureAuth.d.ts +0 -181
- package/dist/src/auth/SignatureAuth.d.ts.map +0 -1
- package/dist/src/auth/storage.d.ts +0 -66
- package/dist/src/auth/storage.d.ts.map +0 -1
- package/dist/src/auth/types.d.ts +0 -50
- package/dist/src/auth/types.d.ts.map +0 -1
- package/dist/src/bridge/BridgeService.d.ts +0 -484
- package/dist/src/bridge/BridgeService.d.ts.map +0 -1
- package/dist/src/bridge/GalaConnectClient.d.ts +0 -170
- package/dist/src/bridge/GalaConnectClient.d.ts.map +0 -1
- package/dist/src/bridge/constants/index.d.ts +0 -7
- package/dist/src/bridge/constants/index.d.ts.map +0 -1
- package/dist/src/bridge/constants/tokens.d.ts +0 -212
- package/dist/src/bridge/constants/tokens.d.ts.map +0 -1
- package/dist/src/bridge/index.d.ts +0 -24
- package/dist/src/bridge/index.d.ts.map +0 -1
- package/dist/src/bridge/strategies/BridgeStrategy.d.ts +0 -160
- package/dist/src/bridge/strategies/BridgeStrategy.d.ts.map +0 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts +0 -200
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts.map +0 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts +0 -258
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts.map +0 -1
- package/dist/src/bridge/types/bridge.dto.d.ts +0 -772
- package/dist/src/bridge/types/bridge.dto.d.ts.map +0 -1
- package/dist/src/bridge/types/bridgeable-token.dto.d.ts +0 -205
- package/dist/src/bridge/types/bridgeable-token.dto.d.ts.map +0 -1
- package/dist/src/bridge/types/eip712.d.ts +0 -66
- package/dist/src/bridge/types/eip712.d.ts.map +0 -1
- package/dist/src/bridge/types/index.d.ts +0 -8
- package/dist/src/bridge/types/index.d.ts.map +0 -1
- package/dist/src/bridge/utils/RateLimiter.d.ts +0 -34
- package/dist/src/bridge/utils/RateLimiter.d.ts.map +0 -1
- package/dist/src/bridge/utils/address-formatter.d.ts +0 -25
- package/dist/src/bridge/utils/address-formatter.d.ts.map +0 -1
- package/dist/src/bridge/utils/addressValidation.d.ts +0 -200
- package/dist/src/bridge/utils/addressValidation.d.ts.map +0 -1
- package/dist/src/bridge/utils/balanceHelpers.d.ts +0 -215
- package/dist/src/bridge/utils/balanceHelpers.d.ts.map +0 -1
- package/dist/src/bridge/utils/bridgeErrors.d.ts +0 -98
- package/dist/src/bridge/utils/bridgeErrors.d.ts.map +0 -1
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts +0 -68
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts.map +0 -1
- package/dist/src/bridge/utils/bridgePayload.d.ts +0 -98
- package/dist/src/bridge/utils/bridgePayload.d.ts.map +0 -1
- package/dist/src/bridge/utils/bridgeStatusParser.d.ts +0 -75
- package/dist/src/bridge/utils/bridgeStatusParser.d.ts.map +0 -1
- package/dist/src/bridge/utils/eip712Helpers.d.ts +0 -66
- package/dist/src/bridge/utils/eip712Helpers.d.ts.map +0 -1
- package/dist/src/bridge/utils/index.d.ts +0 -19
- package/dist/src/bridge/utils/index.d.ts.map +0 -1
- package/dist/src/bridge/utils/retry.d.ts +0 -112
- package/dist/src/bridge/utils/retry.d.ts.map +0 -1
- package/dist/src/bridge/utils/strategyDelegation.d.ts +0 -69
- package/dist/src/bridge/utils/strategyDelegation.d.ts.map +0 -1
- package/dist/src/bridge/utils/tokenIdUtils.d.ts +0 -86
- package/dist/src/bridge/utils/tokenIdUtils.d.ts.map +0 -1
- package/dist/src/bridge/utils/tokenMath.d.ts +0 -39
- package/dist/src/bridge/utils/tokenMath.d.ts.map +0 -1
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts +0 -97
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts.map +0 -1
- package/dist/src/config/environments.d.ts +0 -51
- package/dist/src/config/environments.d.ts.map +0 -1
- package/dist/src/constants/bondingCurve.d.ts +0 -102
- package/dist/src/constants/bondingCurve.d.ts.map +0 -1
- package/dist/src/constants/config.d.ts +0 -30
- package/dist/src/constants/config.d.ts.map +0 -1
- package/dist/src/constants/decimals.d.ts +0 -63
- package/dist/src/constants/decimals.d.ts.map +0 -1
- package/dist/src/constants/endpoints.d.ts +0 -820
- package/dist/src/constants/endpoints.d.ts.map +0 -1
- package/dist/src/constants/enums.d.ts +0 -65
- package/dist/src/constants/enums.d.ts.map +0 -1
- package/dist/src/constants/error-messages.d.ts +0 -61
- package/dist/src/constants/error-messages.d.ts.map +0 -1
- package/dist/src/constants/events.d.ts +0 -53
- package/dist/src/constants/events.d.ts.map +0 -1
- package/dist/src/constants/jwt.d.ts +0 -41
- package/dist/src/constants/jwt.d.ts.map +0 -1
- package/dist/src/constants/nft-fees.d.ts +0 -30
- package/dist/src/constants/nft-fees.d.ts.map +0 -1
- package/dist/src/constants/pagination.d.ts +0 -66
- package/dist/src/constants/pagination.d.ts.map +0 -1
- package/dist/src/constants/query-fields.d.ts +0 -51
- package/dist/src/constants/query-fields.d.ts.map +0 -1
- package/dist/src/constants/sdk-defaults.d.ts +0 -37
- package/dist/src/constants/sdk-defaults.d.ts.map +0 -1
- package/dist/src/constants/version.d.ts +0 -6
- package/dist/src/constants/version.d.ts.map +0 -1
- package/dist/src/constants/version.generated.d.ts +0 -7
- package/dist/src/constants/version.generated.d.ts.map +0 -1
- package/dist/src/helpers/sdk.d.ts +0 -87
- package/dist/src/helpers/sdk.d.ts.map +0 -1
- package/dist/src/helpers/wallet.d.ts +0 -151
- package/dist/src/helpers/wallet.d.ts.map +0 -1
- package/dist/src/index.browser.d.ts +0 -149
- package/dist/src/index.browser.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -12
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.node.d.ts +0 -13
- package/dist/src/index.node.d.ts.map +0 -1
- package/dist/src/native.d.ts +0 -22
- package/dist/src/native.d.ts.map +0 -1
- package/dist/src/polyfills/file-global.d.ts +0 -12
- package/dist/src/polyfills/file-global.d.ts.map +0 -1
- package/dist/src/react/WalletContext.d.ts +0 -60
- package/dist/src/react/WalletContext.d.ts.map +0 -1
- package/dist/src/react/index.d.ts +0 -65
- package/dist/src/react/index.d.ts.map +0 -1
- package/dist/src/react/types.d.ts +0 -76
- package/dist/src/react/types.d.ts.map +0 -1
- package/dist/src/react/useWallet.d.ts +0 -123
- package/dist/src/react/useWallet.d.ts.map +0 -1
- package/dist/src/react/useWalletConnection.d.ts +0 -89
- package/dist/src/react/useWalletConnection.d.ts.map +0 -1
- package/dist/src/react/useWalletDetection.d.ts +0 -81
- package/dist/src/react/useWalletDetection.d.ts.map +0 -1
- package/dist/src/schemas/files.d.ts +0 -83
- package/dist/src/schemas/files.d.ts.map +0 -1
- package/dist/src/schemas/index.d.ts +0 -83
- package/dist/src/schemas/index.d.ts.map +0 -1
- package/dist/src/schemas/launchpad.d.ts +0 -135
- package/dist/src/schemas/launchpad.d.ts.map +0 -1
- package/dist/src/schemas/pagination.d.ts +0 -107
- package/dist/src/schemas/pagination.d.ts.map +0 -1
- package/dist/src/schemas/primitives.d.ts +0 -142
- package/dist/src/schemas/primitives.d.ts.map +0 -1
- package/dist/src/schemas/trade.d.ts +0 -140
- package/dist/src/schemas/trade.d.ts.map +0 -1
- package/dist/src/schemas/user.d.ts +0 -99
- package/dist/src/schemas/user.d.ts.map +0 -1
- package/dist/src/schemas/validators.d.ts +0 -332
- package/dist/src/schemas/validators.d.ts.map +0 -1
- package/dist/src/services/AIModerationService.d.ts +0 -217
- package/dist/src/services/AIModerationService.d.ts.map +0 -1
- package/dist/src/services/AbstractCacheService.d.ts +0 -227
- package/dist/src/services/AbstractCacheService.d.ts.map +0 -1
- package/dist/src/services/AbstractTokenFetchService.d.ts +0 -150
- package/dist/src/services/AbstractTokenFetchService.d.ts.map +0 -1
- package/dist/src/services/ApiKeyService.d.ts +0 -211
- package/dist/src/services/ApiKeyService.d.ts.map +0 -1
- package/dist/src/services/BanService.d.ts +0 -312
- package/dist/src/services/BanService.d.ts.map +0 -1
- package/dist/src/services/BaseService.d.ts +0 -116
- package/dist/src/services/BaseService.d.ts.map +0 -1
- package/dist/src/services/BatchedCacheService.d.ts +0 -133
- package/dist/src/services/BatchedCacheService.d.ts.map +0 -1
- package/dist/src/services/BridgeableTokenCache.d.ts +0 -120
- package/dist/src/services/BridgeableTokenCache.d.ts.map +0 -1
- package/dist/src/services/BridgeableTokenService.d.ts +0 -218
- package/dist/src/services/BridgeableTokenService.d.ts.map +0 -1
- package/dist/src/services/BundleService.d.ts +0 -245
- package/dist/src/services/BundleService.d.ts.map +0 -1
- package/dist/src/services/BundlerClientFactory.d.ts +0 -32
- package/dist/src/services/BundlerClientFactory.d.ts.map +0 -1
- package/dist/src/services/ChartService.d.ts +0 -106
- package/dist/src/services/ChartService.d.ts.map +0 -1
- package/dist/src/services/ClientConfigService.d.ts +0 -61
- package/dist/src/services/ClientConfigService.d.ts.map +0 -1
- package/dist/src/services/ContentFlagService.d.ts +0 -218
- package/dist/src/services/ContentFlagService.d.ts.map +0 -1
- package/dist/src/services/ContentReactionService.d.ts +0 -175
- package/dist/src/services/ContentReactionService.d.ts.map +0 -1
- package/dist/src/services/DexBackendClient.d.ts +0 -225
- package/dist/src/services/DexBackendClient.d.ts.map +0 -1
- package/dist/src/services/DexBackendTradeClient.d.ts +0 -34
- package/dist/src/services/DexBackendTradeClient.d.ts.map +0 -1
- package/dist/src/services/DexPoolService.d.ts +0 -152
- package/dist/src/services/DexPoolService.d.ts.map +0 -1
- package/dist/src/services/DexQuoteService.d.ts +0 -446
- package/dist/src/services/DexQuoteService.d.ts.map +0 -1
- package/dist/src/services/DexService.d.ts +0 -433
- package/dist/src/services/DexService.d.ts.map +0 -1
- package/dist/src/services/EventsBatcherService.d.ts +0 -111
- package/dist/src/services/EventsBatcherService.d.ts.map +0 -1
- package/dist/src/services/GSwapAssetService.d.ts +0 -96
- package/dist/src/services/GSwapAssetService.d.ts.map +0 -1
- package/dist/src/services/GSwapLiquidityMutationService.d.ts +0 -138
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +0 -1
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +0 -75
- package/dist/src/services/GSwapLiquidityQueryService.d.ts.map +0 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts +0 -187
- package/dist/src/services/GSwapPoolCalculationService.d.ts.map +0 -1
- package/dist/src/services/GSwapPoolQueryService.d.ts +0 -114
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +0 -1
- package/dist/src/services/GSwapService.d.ts +0 -1207
- package/dist/src/services/GSwapService.d.ts.map +0 -1
- package/dist/src/services/GSwapSwapService.d.ts +0 -66
- package/dist/src/services/GSwapSwapService.d.ts.map +0 -1
- package/dist/src/services/GalaChainBalanceService.d.ts +0 -155
- package/dist/src/services/GalaChainBalanceService.d.ts.map +0 -1
- package/dist/src/services/GalaChainLockService.d.ts +0 -144
- package/dist/src/services/GalaChainLockService.d.ts.map +0 -1
- package/dist/src/services/GalaChainService.d.ts +0 -400
- package/dist/src/services/GalaChainService.d.ts.map +0 -1
- package/dist/src/services/GalaChainTokenService.d.ts +0 -108
- package/dist/src/services/GalaChainTokenService.d.ts.map +0 -1
- package/dist/src/services/GalaChainTransferService.d.ts +0 -211
- package/dist/src/services/GalaChainTransferService.d.ts.map +0 -1
- package/dist/src/services/GdexStreamService.d.ts +0 -133
- package/dist/src/services/GdexStreamService.d.ts.map +0 -1
- package/dist/src/services/HolderService.d.ts +0 -181
- package/dist/src/services/HolderService.d.ts.map +0 -1
- package/dist/src/services/ImageService.d.ts +0 -173
- package/dist/src/services/ImageService.d.ts.map +0 -1
- package/dist/src/services/IntervalRegistry.d.ts +0 -79
- package/dist/src/services/IntervalRegistry.d.ts.map +0 -1
- package/dist/src/services/LaunchpadService.d.ts +0 -343
- package/dist/src/services/LaunchpadService.d.ts.map +0 -1
- package/dist/src/services/MessagesService.d.ts +0 -251
- package/dist/src/services/MessagesService.d.ts.map +0 -1
- package/dist/src/services/ModeratorService.d.ts +0 -311
- package/dist/src/services/ModeratorService.d.ts.map +0 -1
- package/dist/src/services/MultiPoolStateManager.d.ts +0 -289
- package/dist/src/services/MultiPoolStateManager.d.ts.map +0 -1
- package/dist/src/services/NetworkKeyedCacheService.d.ts +0 -185
- package/dist/src/services/NetworkKeyedCacheService.d.ts.map +0 -1
- package/dist/src/services/NftCollectionService.d.ts +0 -121
- package/dist/src/services/NftCollectionService.d.ts.map +0 -1
- package/dist/src/services/NotificationService.d.ts +0 -113
- package/dist/src/services/NotificationService.d.ts.map +0 -1
- package/dist/src/services/OEmbedService.d.ts +0 -152
- package/dist/src/services/OEmbedService.d.ts.map +0 -1
- package/dist/src/services/OverseerService.d.ts +0 -524
- package/dist/src/services/OverseerService.d.ts.map +0 -1
- package/dist/src/services/PlatformConfigService.d.ts +0 -149
- package/dist/src/services/PlatformConfigService.d.ts.map +0 -1
- package/dist/src/services/PlatformStatsService.d.ts +0 -72
- package/dist/src/services/PlatformStatsService.d.ts.map +0 -1
- package/dist/src/services/PoolCacheManager.d.ts +0 -258
- package/dist/src/services/PoolCacheManager.d.ts.map +0 -1
- package/dist/src/services/PoolService.d.ts +0 -316
- package/dist/src/services/PoolService.d.ts.map +0 -1
- package/dist/src/services/PoolStateManager.d.ts +0 -176
- package/dist/src/services/PoolStateManager.d.ts.map +0 -1
- package/dist/src/services/PriceHistoryService.d.ts +0 -207
- package/dist/src/services/PriceHistoryService.d.ts.map +0 -1
- package/dist/src/services/RestrictedNamesService.d.ts +0 -80
- package/dist/src/services/RestrictedNamesService.d.ts.map +0 -1
- package/dist/src/services/SignatureService.d.ts +0 -113
- package/dist/src/services/SignatureService.d.ts.map +0 -1
- package/dist/src/services/StreamChatService.d.ts +0 -259
- package/dist/src/services/StreamChatService.d.ts.map +0 -1
- package/dist/src/services/StreamTokenServiceBase.d.ts +0 -404
- package/dist/src/services/StreamTokenServiceBase.d.ts.map +0 -1
- package/dist/src/services/StreamWebSocketService.d.ts +0 -586
- package/dist/src/services/StreamWebSocketService.d.ts.map +0 -1
- package/dist/src/services/StreamingEventService.d.ts +0 -441
- package/dist/src/services/StreamingEventService.d.ts.map +0 -1
- package/dist/src/services/StreamingService.d.ts +0 -573
- package/dist/src/services/StreamingService.d.ts.map +0 -1
- package/dist/src/services/SwapEventQueue.d.ts +0 -192
- package/dist/src/services/SwapEventQueue.d.ts.map +0 -1
- package/dist/src/services/TokenBanService.d.ts +0 -217
- package/dist/src/services/TokenBanService.d.ts.map +0 -1
- package/dist/src/services/TokenClassKeyService.d.ts +0 -162
- package/dist/src/services/TokenClassKeyService.d.ts.map +0 -1
- package/dist/src/services/TokenMetadataCache.d.ts +0 -310
- package/dist/src/services/TokenMetadataCache.d.ts.map +0 -1
- package/dist/src/services/TokenMetadataService.d.ts +0 -509
- package/dist/src/services/TokenMetadataService.d.ts.map +0 -1
- package/dist/src/services/TokenResolverService.d.ts +0 -329
- package/dist/src/services/TokenResolverService.d.ts.map +0 -1
- package/dist/src/services/TradeService.d.ts +0 -286
- package/dist/src/services/TradeService.d.ts.map +0 -1
- package/dist/src/services/TradingQuotesService.d.ts +0 -162
- package/dist/src/services/TradingQuotesService.d.ts.map +0 -1
- package/dist/src/services/UserService.d.ts +0 -352
- package/dist/src/services/UserService.d.ts.map +0 -1
- package/dist/src/services/WebSocketAdminService.d.ts +0 -587
- package/dist/src/services/WebSocketAdminService.d.ts.map +0 -1
- package/dist/src/services/WebSocketService.d.ts +0 -189
- package/dist/src/services/WebSocketService.d.ts.map +0 -1
- package/dist/src/services/WeeklyChallengeService.d.ts +0 -114
- package/dist/src/services/WeeklyChallengeService.d.ts.map +0 -1
- package/dist/src/services/WrapService.d.ts +0 -172
- package/dist/src/services/WrapService.d.ts.map +0 -1
- package/dist/src/services/WrappableTokenCache.d.ts +0 -100
- package/dist/src/services/WrappableTokenCache.d.ts.map +0 -1
- package/dist/src/services/WrappableTokenService.d.ts +0 -130
- package/dist/src/services/WrappableTokenService.d.ts.map +0 -1
- package/dist/src/services/__mocks__/logger.mock.d.ts +0 -24
- package/dist/src/services/__mocks__/logger.mock.d.ts.map +0 -1
- package/dist/src/services/shared/cache-helpers.d.ts +0 -188
- package/dist/src/services/shared/cache-helpers.d.ts.map +0 -1
- package/dist/src/services/shared/http-helpers.d.ts +0 -146
- package/dist/src/services/shared/http-helpers.d.ts.map +0 -1
- package/dist/src/services/shared/pagination-helpers.d.ts +0 -167
- package/dist/src/services/shared/pagination-helpers.d.ts.map +0 -1
- package/dist/src/services/shared/service-validators.d.ts +0 -137
- package/dist/src/services/shared/service-validators.d.ts.map +0 -1
- package/dist/src/services/shared/websocket-helpers.d.ts +0 -158
- package/dist/src/services/shared/websocket-helpers.d.ts.map +0 -1
- package/dist/src/setup.d.ts +0 -8
- package/dist/src/setup.d.ts.map +0 -1
- package/dist/src/test-constants.d.ts +0 -29
- package/dist/src/test-constants.d.ts.map +0 -1
- package/dist/src/types/ai-moderation.dto.d.ts +0 -294
- package/dist/src/types/ai-moderation.dto.d.ts.map +0 -1
- package/dist/src/types/api-key.dto.d.ts +0 -373
- package/dist/src/types/api-key.dto.d.ts.map +0 -1
- package/dist/src/types/backend-responses.d.ts +0 -235
- package/dist/src/types/backend-responses.d.ts.map +0 -1
- package/dist/src/types/ban.dto.d.ts +0 -577
- package/dist/src/types/ban.dto.d.ts.map +0 -1
- package/dist/src/types/burn.dto.d.ts +0 -170
- package/dist/src/types/burn.dto.d.ts.map +0 -1
- package/dist/src/types/cache-management.dto.d.ts +0 -44
- package/dist/src/types/cache-management.dto.d.ts.map +0 -1
- package/dist/src/types/chat-messages.dto.d.ts +0 -193
- package/dist/src/types/chat-messages.dto.d.ts.map +0 -1
- package/dist/src/types/client-config.dto.d.ts +0 -43
- package/dist/src/types/client-config.dto.d.ts.map +0 -1
- package/dist/src/types/comment.dto.d.ts +0 -176
- package/dist/src/types/comment.dto.d.ts.map +0 -1
- package/dist/src/types/comments.dto.d.ts +0 -198
- package/dist/src/types/comments.dto.d.ts.map +0 -1
- package/dist/src/types/common.d.ts +0 -619
- package/dist/src/types/common.d.ts.map +0 -1
- package/dist/src/types/composite-pool.dto.d.ts +0 -101
- package/dist/src/types/composite-pool.dto.d.ts.map +0 -1
- package/dist/src/types/constraints.d.ts +0 -378
- package/dist/src/types/constraints.d.ts.map +0 -1
- package/dist/src/types/content-flag.dto.d.ts +0 -337
- package/dist/src/types/content-flag.dto.d.ts.map +0 -1
- package/dist/src/types/content-reactions.dto.d.ts +0 -132
- package/dist/src/types/content-reactions.dto.d.ts.map +0 -1
- package/dist/src/types/dex-pool.dto.d.ts +0 -230
- package/dist/src/types/dex-pool.dto.d.ts.map +0 -1
- package/dist/src/types/dto.d.ts +0 -183
- package/dist/src/types/dto.d.ts.map +0 -1
- package/dist/src/types/engagement-stats.dto.d.ts +0 -62
- package/dist/src/types/engagement-stats.dto.d.ts.map +0 -1
- package/dist/src/types/events.dto.d.ts +0 -80
- package/dist/src/types/events.dto.d.ts.map +0 -1
- package/dist/src/types/galachain-api.types.d.ts +0 -297
- package/dist/src/types/galachain-api.types.d.ts.map +0 -1
- package/dist/src/types/global-feed.dto.d.ts +0 -203
- package/dist/src/types/global-feed.dto.d.ts.map +0 -1
- package/dist/src/types/gswap-responses.types.d.ts +0 -369
- package/dist/src/types/gswap-responses.types.d.ts.map +0 -1
- package/dist/src/types/gswap.dto.d.ts +0 -448
- package/dist/src/types/gswap.dto.d.ts.map +0 -1
- package/dist/src/types/holder.types.d.ts +0 -106
- package/dist/src/types/holder.types.d.ts.map +0 -1
- package/dist/src/types/launchpad.dto.d.ts +0 -1263
- package/dist/src/types/launchpad.dto.d.ts.map +0 -1
- package/dist/src/types/launchpad.validation.d.ts +0 -43
- package/dist/src/types/launchpad.validation.d.ts.map +0 -1
- package/dist/src/types/liquidity-monitor.dto.d.ts +0 -177
- package/dist/src/types/liquidity-monitor.dto.d.ts.map +0 -1
- package/dist/src/types/lock.dto.d.ts +0 -261
- package/dist/src/types/lock.dto.d.ts.map +0 -1
- package/dist/src/types/messages.dto.d.ts +0 -386
- package/dist/src/types/messages.dto.d.ts.map +0 -1
- package/dist/src/types/moderator.dto.d.ts +0 -607
- package/dist/src/types/moderator.dto.d.ts.map +0 -1
- package/dist/src/types/nft.dto.d.ts +0 -155
- package/dist/src/types/nft.dto.d.ts.map +0 -1
- package/dist/src/types/notification.dto.d.ts +0 -92
- package/dist/src/types/notification.dto.d.ts.map +0 -1
- package/dist/src/types/oembed.dto.d.ts +0 -160
- package/dist/src/types/oembed.dto.d.ts.map +0 -1
- package/dist/src/types/options.dto.d.ts +0 -485
- package/dist/src/types/options.dto.d.ts.map +0 -1
- package/dist/src/types/overseer.dto.d.ts +0 -530
- package/dist/src/types/overseer.dto.d.ts.map +0 -1
- package/dist/src/types/platform-config.dto.d.ts +0 -89
- package/dist/src/types/platform-config.dto.d.ts.map +0 -1
- package/dist/src/types/platform-stats.dto.d.ts +0 -40
- package/dist/src/types/platform-stats.dto.d.ts.map +0 -1
- package/dist/src/types/pool-state-delta.dto.d.ts +0 -246
- package/dist/src/types/pool-state-delta.dto.d.ts.map +0 -1
- package/dist/src/types/pool.dto.d.ts +0 -111
- package/dist/src/types/pool.dto.d.ts.map +0 -1
- package/dist/src/types/priceHistory.dto.d.ts +0 -165
- package/dist/src/types/priceHistory.dto.d.ts.map +0 -1
- package/dist/src/types/restricted-names.dto.d.ts +0 -50
- package/dist/src/types/restricted-names.dto.d.ts.map +0 -1
- package/dist/src/types/result.types.d.ts +0 -104
- package/dist/src/types/result.types.d.ts.map +0 -1
- package/dist/src/types/session-auth.dto.d.ts +0 -99
- package/dist/src/types/session-auth.dto.d.ts.map +0 -1
- package/dist/src/types/stream-chat.dto.d.ts +0 -810
- package/dist/src/types/stream-chat.dto.d.ts.map +0 -1
- package/dist/src/types/streaming-events.dto.d.ts +0 -605
- package/dist/src/types/streaming-events.dto.d.ts.map +0 -1
- package/dist/src/types/streaming.dto.d.ts +0 -1178
- package/dist/src/types/streaming.dto.d.ts.map +0 -1
- package/dist/src/types/swap-monitor.dto.d.ts +0 -256
- package/dist/src/types/swap-monitor.dto.d.ts.map +0 -1
- package/dist/src/types/token-ban.dto.d.ts +0 -194
- package/dist/src/types/token-ban.dto.d.ts.map +0 -1
- package/dist/src/types/token-config.dto.d.ts +0 -117
- package/dist/src/types/token-config.dto.d.ts.map +0 -1
- package/dist/src/types/token.types.d.ts +0 -336
- package/dist/src/types/token.types.d.ts.map +0 -1
- package/dist/src/types/trade.dto.d.ts +0 -457
- package/dist/src/types/trade.dto.d.ts.map +0 -1
- package/dist/src/types/trades-query.dto.d.ts +0 -133
- package/dist/src/types/trades-query.dto.d.ts.map +0 -1
- package/dist/src/types/transfer.dto.d.ts +0 -186
- package/dist/src/types/transfer.dto.d.ts.map +0 -1
- package/dist/src/types/user.dto.d.ts +0 -880
- package/dist/src/types/user.dto.d.ts.map +0 -1
- package/dist/src/types/websocket-admin.dto.d.ts +0 -390
- package/dist/src/types/websocket-admin.dto.d.ts.map +0 -1
- package/dist/src/types/websocket-data.types.d.ts +0 -35
- package/dist/src/types/websocket-data.types.d.ts.map +0 -1
- package/dist/src/types/websocket-events.dto.d.ts +0 -472
- package/dist/src/types/websocket-events.dto.d.ts.map +0 -1
- package/dist/src/types/websocket.types.d.ts +0 -118
- package/dist/src/types/websocket.types.d.ts.map +0 -1
- package/dist/src/types/weekly-challenge.dto.d.ts +0 -130
- package/dist/src/types/weekly-challenge.dto.d.ts.map +0 -1
- package/dist/src/types/wrappable-token.dto.d.ts +0 -305
- package/dist/src/types/wrappable-token.dto.d.ts.map +0 -1
- package/dist/src/utils/LiquidityEventExtractor.d.ts +0 -106
- package/dist/src/utils/LiquidityEventExtractor.d.ts.map +0 -1
- package/dist/src/utils/Logger.d.ts +0 -136
- package/dist/src/utils/Logger.d.ts.map +0 -1
- package/dist/src/utils/MonitoringMetrics.d.ts +0 -151
- package/dist/src/utils/MonitoringMetrics.d.ts.map +0 -1
- package/dist/src/utils/PoolKeyNormalizer.d.ts +0 -135
- package/dist/src/utils/PoolKeyNormalizer.d.ts.map +0 -1
- package/dist/src/utils/ReconnectionManager.d.ts +0 -142
- package/dist/src/utils/ReconnectionManager.d.ts.map +0 -1
- package/dist/src/utils/SignatureHelper.d.ts +0 -140
- package/dist/src/utils/SignatureHelper.d.ts.map +0 -1
- package/dist/src/utils/SwapEventExtractor.d.ts +0 -152
- package/dist/src/utils/SwapEventExtractor.d.ts.map +0 -1
- package/dist/src/utils/adapters.d.ts +0 -111
- package/dist/src/utils/adapters.d.ts.map +0 -1
- package/dist/src/utils/address-formatter.d.ts +0 -318
- package/dist/src/utils/address-formatter.d.ts.map +0 -1
- package/dist/src/utils/agent-config.d.ts +0 -288
- package/dist/src/utils/agent-config.d.ts.map +0 -1
- package/dist/src/utils/amount-validator.d.ts +0 -268
- package/dist/src/utils/amount-validator.d.ts.map +0 -1
- package/dist/src/utils/api-patterns.d.ts +0 -347
- package/dist/src/utils/api-patterns.d.ts.map +0 -1
- package/dist/src/utils/array-helpers.d.ts +0 -115
- package/dist/src/utils/array-helpers.d.ts.map +0 -1
- package/dist/src/utils/assetUrls.d.ts +0 -450
- package/dist/src/utils/assetUrls.d.ts.map +0 -1
- package/dist/src/utils/async-patterns.d.ts +0 -272
- package/dist/src/utils/async-patterns.d.ts.map +0 -1
- package/dist/src/utils/auto-pagination.d.ts +0 -549
- package/dist/src/utils/auto-pagination.d.ts.map +0 -1
- package/dist/src/utils/bignumber-helpers.d.ts +0 -446
- package/dist/src/utils/bignumber-helpers.d.ts.map +0 -1
- package/dist/src/utils/bignumber-pool-cache.d.ts +0 -169
- package/dist/src/utils/bignumber-pool-cache.d.ts.map +0 -1
- package/dist/src/utils/bondingCurveCalculations.d.ts +0 -144
- package/dist/src/utils/bondingCurveCalculations.d.ts.map +0 -1
- package/dist/src/utils/cacheWarmingHelpers.d.ts +0 -110
- package/dist/src/utils/cacheWarmingHelpers.d.ts.map +0 -1
- package/dist/src/utils/composite-pool-converter.d.ts +0 -121
- package/dist/src/utils/composite-pool-converter.d.ts.map +0 -1
- package/dist/src/utils/crypto-compat.d.ts +0 -40
- package/dist/src/utils/crypto-compat.d.ts.map +0 -1
- package/dist/src/utils/data-transform-patterns.d.ts +0 -393
- package/dist/src/utils/data-transform-patterns.d.ts.map +0 -1
- package/dist/src/utils/date-utils.d.ts +0 -205
- package/dist/src/utils/date-utils.d.ts.map +0 -1
- package/dist/src/utils/delimiter-parser.d.ts +0 -139
- package/dist/src/utils/delimiter-parser.d.ts.map +0 -1
- package/dist/src/utils/error-factories.d.ts +0 -701
- package/dist/src/utils/error-factories.d.ts.map +0 -1
- package/dist/src/utils/error-handling-patterns.d.ts +0 -390
- package/dist/src/utils/error-handling-patterns.d.ts.map +0 -1
- package/dist/src/utils/error-patterns.d.ts +0 -360
- package/dist/src/utils/error-patterns.d.ts.map +0 -1
- package/dist/src/utils/error-utils.d.ts +0 -463
- package/dist/src/utils/error-utils.d.ts.map +0 -1
- package/dist/src/utils/error-wrapper.d.ts +0 -208
- package/dist/src/utils/error-wrapper.d.ts.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -552
- package/dist/src/utils/errors.d.ts.map +0 -1
- package/dist/src/utils/http-factory.d.ts +0 -36
- package/dist/src/utils/http-factory.d.ts.map +0 -1
- package/dist/src/utils/http.d.ts +0 -113
- package/dist/src/utils/http.d.ts.map +0 -1
- package/dist/src/utils/load-env.d.ts +0 -31
- package/dist/src/utils/load-env.d.ts.map +0 -1
- package/dist/src/utils/multipart-helpers.d.ts +0 -38
- package/dist/src/utils/multipart-helpers.d.ts.map +0 -1
- package/dist/src/utils/multipart.d.ts +0 -63
- package/dist/src/utils/multipart.d.ts.map +0 -1
- package/dist/src/utils/nft-helpers.d.ts +0 -62
- package/dist/src/utils/nft-helpers.d.ts.map +0 -1
- package/dist/src/utils/numeric-patterns.d.ts +0 -289
- package/dist/src/utils/numeric-patterns.d.ts.map +0 -1
- package/dist/src/utils/numeric-wrappers.d.ts +0 -149
- package/dist/src/utils/numeric-wrappers.d.ts.map +0 -1
- package/dist/src/utils/object-extractors.d.ts +0 -115
- package/dist/src/utils/object-extractors.d.ts.map +0 -1
- package/dist/src/utils/object-patterns.d.ts +0 -81
- package/dist/src/utils/object-patterns.d.ts.map +0 -1
- package/dist/src/utils/pagination-helpers.d.ts +0 -161
- package/dist/src/utils/pagination-helpers.d.ts.map +0 -1
- package/dist/src/utils/pagination-validation.d.ts +0 -88
- package/dist/src/utils/pagination-validation.d.ts.map +0 -1
- package/dist/src/utils/pool-pair-parser.d.ts +0 -57
- package/dist/src/utils/pool-pair-parser.d.ts.map +0 -1
- package/dist/src/utils/pool-state-validator.d.ts +0 -207
- package/dist/src/utils/pool-state-validator.d.ts.map +0 -1
- package/dist/src/utils/position-filters.d.ts +0 -252
- package/dist/src/utils/position-filters.d.ts.map +0 -1
- package/dist/src/utils/primitives.d.ts +0 -76
- package/dist/src/utils/primitives.d.ts.map +0 -1
- package/dist/src/utils/query-params.d.ts +0 -89
- package/dist/src/utils/query-params.d.ts.map +0 -1
- package/dist/src/utils/response-handlers.d.ts +0 -225
- package/dist/src/utils/response-handlers.d.ts.map +0 -1
- package/dist/src/utils/response-helpers.d.ts +0 -28
- package/dist/src/utils/response-helpers.d.ts.map +0 -1
- package/dist/src/utils/response-normalizers.d.ts +0 -115
- package/dist/src/utils/response-normalizers.d.ts.map +0 -1
- package/dist/src/utils/safe-parsers.d.ts +0 -487
- package/dist/src/utils/safe-parsers.d.ts.map +0 -1
- package/dist/src/utils/service-validators.d.ts +0 -268
- package/dist/src/utils/service-validators.d.ts.map +0 -1
- package/dist/src/utils/slippage-utils.d.ts +0 -70
- package/dist/src/utils/slippage-utils.d.ts.map +0 -1
- package/dist/src/utils/string-patterns.d.ts +0 -404
- package/dist/src/utils/string-patterns.d.ts.map +0 -1
- package/dist/src/utils/string-transforms.d.ts +0 -89
- package/dist/src/utils/string-transforms.d.ts.map +0 -1
- package/dist/src/utils/string-utils.d.ts +0 -108
- package/dist/src/utils/string-utils.d.ts.map +0 -1
- package/dist/src/utils/swap-delta-calculator.d.ts +0 -231
- package/dist/src/utils/swap-delta-calculator.d.ts.map +0 -1
- package/dist/src/utils/tick-crossing-handler.d.ts +0 -250
- package/dist/src/utils/tick-crossing-handler.d.ts.map +0 -1
- package/dist/src/utils/token-format-converter.d.ts +0 -175
- package/dist/src/utils/token-format-converter.d.ts.map +0 -1
- package/dist/src/utils/token-parser.d.ts +0 -235
- package/dist/src/utils/token-parser.d.ts.map +0 -1
- package/dist/src/utils/token-stringification.d.ts +0 -168
- package/dist/src/utils/token-stringification.d.ts.map +0 -1
- package/dist/src/utils/tokenNameNormalizer.d.ts +0 -96
- package/dist/src/utils/tokenNameNormalizer.d.ts.map +0 -1
- package/dist/src/utils/tokenNormalizer.d.ts +0 -167
- package/dist/src/utils/tokenNormalizer.d.ts.map +0 -1
- package/dist/src/utils/trade-transformers.d.ts +0 -28
- package/dist/src/utils/trade-transformers.d.ts.map +0 -1
- package/dist/src/utils/transfer-validation.d.ts +0 -58
- package/dist/src/utils/transfer-validation.d.ts.map +0 -1
- package/dist/src/utils/type-guard-factory.d.ts +0 -260
- package/dist/src/utils/type-guard-factory.d.ts.map +0 -1
- package/dist/src/utils/unique-key-generator.d.ts +0 -148
- package/dist/src/utils/unique-key-generator.d.ts.map +0 -1
- package/dist/src/utils/validation-helpers.d.ts +0 -1074
- package/dist/src/utils/validation-helpers.d.ts.map +0 -1
- package/dist/src/utils/validation-patterns.d.ts +0 -768
- package/dist/src/utils/validation-patterns.d.ts.map +0 -1
- package/dist/src/utils/validation.d.ts +0 -140
- package/dist/src/utils/validation.d.ts.map +0 -1
- package/dist/src/utils/wallet.d.ts +0 -185
- package/dist/src/utils/wallet.d.ts.map +0 -1
- package/dist/src/utils/websocket-errors.d.ts +0 -30
- package/dist/src/utils/websocket-errors.d.ts.map +0 -1
- package/dist/src/utils/websocket-patterns.d.ts +0 -680
- package/dist/src/utils/websocket-patterns.d.ts.map +0 -1
- package/dist/src/utils/websocket-validators.d.ts +0 -30
- package/dist/src/utils/websocket-validators.d.ts.map +0 -1
- package/dist/src/wallet/ExternalWalletProvider.d.ts +0 -109
- package/dist/src/wallet/ExternalWalletProvider.d.ts.map +0 -1
- package/dist/src/wallet/GalaChainConnectProvider.d.ts +0 -125
- package/dist/src/wallet/GalaChainConnectProvider.d.ts.map +0 -1
- package/dist/src/wallet/GalaWalletProvider.d.ts +0 -141
- package/dist/src/wallet/GalaWalletProvider.d.ts.map +0 -1
- package/dist/src/wallet/PrivateKeyProvider.d.ts +0 -90
- package/dist/src/wallet/PrivateKeyProvider.d.ts.map +0 -1
- package/dist/src/wallet/detection.d.ts +0 -107
- package/dist/src/wallet/detection.d.ts.map +0 -1
- package/dist/src/wallet/index.d.ts +0 -52
- package/dist/src/wallet/index.d.ts.map +0 -1
- package/dist/src/wallet/types.d.ts +0 -267
- package/dist/src/wallet/types.d.ts.map +0 -1
- package/dist/src/wallet/utils.d.ts +0 -117
- package/dist/src/wallet/utils.d.ts.map +0 -1
- package/dist/types/composite-pool.dto.d.ts +0 -101
- package/dist/types/composite-pool.dto.d.ts.map +0 -1
- package/dist/types/dex-pool.dto.d.ts +0 -230
- package/dist/types/dex-pool.dto.d.ts.map +0 -1
- package/dist/types/gswap-responses.types.d.ts +0 -369
- package/dist/types/gswap-responses.types.d.ts.map +0 -1
- package/dist/types/gswap.dto.d.ts +0 -448
- package/dist/types/gswap.dto.d.ts.map +0 -1
- package/dist/types/liquidity-monitor.dto.d.ts +0 -177
- package/dist/types/liquidity-monitor.dto.d.ts.map +0 -1
- package/dist/types/pool-state-delta.dto.d.ts +0 -246
- package/dist/types/pool-state-delta.dto.d.ts.map +0 -1
- package/dist/types/swap-monitor.dto.d.ts +0 -256
- package/dist/types/swap-monitor.dto.d.ts.map +0 -1
- package/dist/utils/LiquidityEventExtractor.d.ts +0 -106
- package/dist/utils/LiquidityEventExtractor.d.ts.map +0 -1
- package/dist/utils/MonitoringMetrics.d.ts +0 -151
- package/dist/utils/MonitoringMetrics.d.ts.map +0 -1
- package/dist/utils/PoolKeyNormalizer.d.ts +0 -135
- package/dist/utils/PoolKeyNormalizer.d.ts.map +0 -1
- package/dist/utils/SignatureHelper.d.ts +0 -140
- package/dist/utils/SignatureHelper.d.ts.map +0 -1
- package/dist/utils/SwapEventExtractor.d.ts +0 -152
- package/dist/utils/SwapEventExtractor.d.ts.map +0 -1
- package/dist/utils/bignumber-pool-cache.d.ts +0 -169
- package/dist/utils/bignumber-pool-cache.d.ts.map +0 -1
- package/dist/utils/composite-pool-converter.d.ts +0 -121
- package/dist/utils/composite-pool-converter.d.ts.map +0 -1
- package/dist/utils/pool-pair-parser.d.ts +0 -57
- package/dist/utils/pool-pair-parser.d.ts.map +0 -1
- package/dist/utils/pool-state-validator.d.ts +0 -207
- package/dist/utils/pool-state-validator.d.ts.map +0 -1
- package/dist/utils/position-filters.d.ts +0 -252
- package/dist/utils/position-filters.d.ts.map +0 -1
- package/dist/utils/swap-delta-calculator.d.ts +0 -231
- package/dist/utils/swap-delta-calculator.d.ts.map +0 -1
- package/dist/utils/tick-crossing-handler.d.ts +0 -250
- package/dist/utils/tick-crossing-handler.d.ts.map +0 -1
package/dist/LaunchpadSDK.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Wallet } from 'ethers';
|
|
2
|
+
import { GSwap } from '@gala-chain/gswap-sdk';
|
|
2
3
|
import type { BridgeFeeEstimate, BridgeInParams, BridgeOutParams, BridgeStatus, BridgeToken, BridgeTransaction, EstimateBridgeFeeParams, EthereumTransactionStatus, EthereumWalletBalanceResult, ExternalChainBalance, SolanaTransactionStatus, SolanaWalletBalanceResult } from './bridge/types/bridge.dto';
|
|
3
4
|
import type { BridgeableNetwork, FetchBridgeableTokensOptions, FetchBridgeableTokensResult, IsTokenBridgeableOptions, IsTokenBridgeableResult } from './bridge/types/bridgeable-token.dto';
|
|
5
|
+
import type { Environment } from './config/environments';
|
|
4
6
|
import { EventsBatcherService } from './services/EventsBatcherService';
|
|
5
7
|
import { GdexStreamService } from './services/GdexStreamService';
|
|
6
8
|
import type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
9
|
+
import { LaunchpadWrites } from './launchpad/writes';
|
|
10
|
+
import type { HttpRequestor } from './launchpad/bundle-submission';
|
|
11
|
+
import type { LaunchpadSigner } from './signing';
|
|
12
|
+
import { TokenWrites } from './tokens/transfers';
|
|
7
13
|
import type { GetAIModerationOptions, GetAIModerationResult, GetAIModerationSettingsResult, GetAIModerationStatusResult, TriggerAIModerationOptions, TriggerAIModerationResult, UpdateAIModerationSettingsOptions, UpdateAIModerationSettingsResult } from './types/ai-moderation.dto';
|
|
8
14
|
import type { ApiKeyData, ApiKeyListResponse, CreateApiKeyOptions, CreateApiKeyResponse, ListApiKeysOptions, UpdateApiKeyOptions } from './types/api-key.dto';
|
|
9
15
|
import type { ActiveUsersResult, BanListResult, BanStatusResult, CreateBanOptions, CreateBanResult, CreateGlobalBanOptions, CreateGlobalBanResult, GetActiveUsersOptions, GetBanStatusOptions, GetGlobalBanOptions, GlobalBanListResult, GlobalBanStatusResult, ListBansOptions, ListGlobalBansOptions, RemoveBanOptions, RemoveBanResult, RemoveGlobalBanOptions, RemoveGlobalBanResult } from './types/ban.dto';
|
|
@@ -16,7 +22,7 @@ import type { AddressFormat, ApiResponse, SDKConfig, TokenClassKey, TokenId } fr
|
|
|
16
22
|
import type { ActionFlagOptions, ActionFlagResult, CreateFlagOptions, CreateFlagResult, DismissFlagOptions, DismissFlagResult, FlagListResult, ListFlagsOptions, ListGlobalFlagsOptions } from './types/content-flag.dto';
|
|
17
23
|
import type { AddContentReactionOptions, AddContentReactionResult, RemoveContentReactionOptions, RemoveContentReactionResult } from './types/content-reactions.dto';
|
|
18
24
|
import type { FetchTokenStatsResult } from './types/engagement-stats.dto';
|
|
19
|
-
import type { AmountCalculationResult, DexAggregatedVolumeSummary, DexSeason, FetchPoolsOptions, GalaChainTokenDetails, GraduationCalculationResult, GraphDataResult, LaunchTokenData, LeaderboardResult, PoolData, PoolsResult, SaleDetailsResult,
|
|
25
|
+
import type { AmountCalculationResult, DexAggregatedVolumeSummary, DexSeason, FetchPoolsOptions, GalaChainTokenDetails, GraduationCalculationResult, GraphDataResult, LaunchTokenData, LeaderboardResult, PoolData, PoolsResult, SaleDetailsResult, TokenClassWithSupply, TokenDistributionResult, TokenHolder, TokenSpotPrice, TradeQuoteParams, UserHolderContext, ValidateTokenResponse } from './types/launchpad.dto';
|
|
20
26
|
import type { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
21
27
|
import type { CreateMessageOptions, CreateMessageResult, DeleteMessageResult, FetchMessagesOptions, FetchMessagesResult, GetPinnedMessageResult, MessageStats, PinMessageResult, UpdateMessageOptions, UpdateMessageResult, UpdateTokenConfigOptions } from './types/messages.dto';
|
|
22
28
|
import type { ClaimModeratorInviteOptions, ClaimModeratorInviteResult, CreateModeratorInviteOptions, CreateModeratorInviteResult, GetModeratedTokensOptions, ListModeratorInvitesOptions, ModeratedTokensResult, ModeratorInviteListResult, PublicInviteInfo, UpdateInviteRoleOptions, UpdateInviteRoleResult, UpdateModeratorInviteOptions, UpdateModeratorInviteResult } from './types/moderator.dto';
|
|
@@ -29,13 +35,12 @@ import type { GetPlatformStatsResult } from './types/platform-stats.dto';
|
|
|
29
35
|
import type { GetRestrictedNamesResult, UpdateRestrictedNamesRequest, UpdateRestrictedNamesResult } from './types/restricted-names.dto';
|
|
30
36
|
import type { TokenLaunchResult, TradeResult } from './types/result.types';
|
|
31
37
|
import type { LoginResponse, RefreshResponse, SessionInfo } from './types/session-auth.dto';
|
|
32
|
-
import type { EngagementStatsResult, GetEngagementStatsOptions, GlobalChatStatus } from './types/stream-chat.dto';
|
|
33
38
|
import type { AddSimulcastTargetOptions, AddSimulcastTargetResult, FetchRecordingsOptions, GetStreamRoleOptions, GetTokenAccessOptions, GlobalStreamingStatus, RecordingDownloadResult, RecordingsResult, ResetStreamKeyResult, SimulcastTargetsResult, StartStreamResult, StreamCredentialsResult, StreamRoleResponse, StreamSubscribedEvent, TokenAccessResult } from './types/streaming.dto';
|
|
34
39
|
import type { BanTokenOptions, BanTokenResult, GetTokenBanOptions, ListTokenBansOptions, TokenBanListResult, TokenBanStatusResult, UnbanTokenOptions, UnbanTokenResult } from './types/token-ban.dto';
|
|
35
40
|
import type { PoolDetailsData, TradesResult } from './types/trade.dto';
|
|
36
41
|
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
37
42
|
import type { GalaChainTransferReceipt, TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
38
|
-
import type { AllReferralsResult, AvailableBalanceResult, FetchReferralsOptions, FetchReferralsSummaryOptions, FetchTokenBalanceOptions,
|
|
43
|
+
import type { AllReferralsResult, AvailableBalanceResult, FetchReferralsOptions, FetchReferralsSummaryOptions, FetchTokenBalanceOptions, GetManagedTokensOptions, LockedBalanceResult, ManagedTokensResult, ReferralsResult, ReferralsSummaryResult, ReferralUrlResult, TokenBalanceResult, UpdateProfileData, UploadProfileImageOptions, UserTokenListResult } from './types/user.dto';
|
|
39
44
|
import type { BalanceUpdatedPayload, ChatMessagePayload, ChatStatusPayload, ConnectedClient, ConnectedClientsResponse, DownloadReadyPayload, FeatureStatusPayload, GetConnectedClientsOptions, ModeratorAddedPayload, ModeratorRemovedPayload, RecordingsCountUpdatedPayload, RecordingStatusPayload, SiteConfigChangedPayload, StreamCountdownPayload, StreamStatusPayload, TokenBannedPayload, TokenUnbannedPayload, TradeExecutedPayload, TypingIndicatorPayload, UserProfileUpdatedPayload, ViewerCountPayload } from './types/websocket-admin.dto';
|
|
40
45
|
import type { EngagementStatsUpdatedEvent } from './types/websocket-events.dto';
|
|
41
46
|
import type { GetTokenWeeklyHistoryOptions, GetTokenWeeklyHistoryResult, GetWeeklyChallengeOptions, GetWeeklyChallengeResult } from './types/weekly-challenge.dto';
|
|
@@ -43,17 +48,11 @@ import type { FetchWrappableTokensOptions, FetchWrappableTokensResult, IsTokenWr
|
|
|
43
48
|
import { TransactionFailedError, WebSocketError, WebSocketTimeoutError } from './utils/websocket-errors';
|
|
44
49
|
import type { WalletProvider } from './wallet/types';
|
|
45
50
|
export { TransactionFailedError, WebSocketError, WebSocketTimeoutError, };
|
|
46
|
-
import type { CalculateDexPoolQuoteOptions, CompositePoolDataResult, DexPoolQuoteResult, FetchCompositePoolDataOptions } from './types/composite-pool.dto';
|
|
47
|
-
import type { DexPoolData, DexPoolsResult, FetchDexPoolsOptions } from './types/dex-pool.dto';
|
|
48
|
-
import type { AddLiquidityByPriceArgs, AddLiquidityByTicksArgs, AvailableDexTokensResult, CollectFeesArgs, DexToken, ExecuteSwapResult, FetchAvailableDexTokensOptions, GetLiquidityPositionsOptions, GetLiquidityPositionsResult, GSwapPosition, PoolInfo, PoolPriceData, RemoveLiquidityArgs, SwapQuoteResult, UserAsset } from './types/gswap.dto';
|
|
49
|
-
import type { GSwapAddLiquidityResult, GSwapEstimateRemoveLiquidityResult } from './types/gswap-responses.types';
|
|
50
|
-
import type { LiquidityChangedCallback, LiquidityCleanupFunction, SubscribeLiquidityOptions } from './types/liquidity-monitor.dto';
|
|
51
51
|
import type { BuyTokenOptions, CalculateBuyAmountForGraduationOptions, CalculateBuyAmountLocalOptions, CalculateBuyAmountOptions, CalculateSellAmountLocalOptions, CalculateSellAmountOptions, FetchTokensCreatedOptions, FetchTokensHeldOptions, FetchTokenSpotPriceParams, FetchTradesOptions, FetchVolumeDataOptions, GraduateTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions } from './types/options.dto';
|
|
52
52
|
import type { FetchPriceHistoryOptions, PriceHistoryResult } from './types/priceHistory.dto';
|
|
53
53
|
import type { GetPinnedMessageResult as LegacyGetPinnedMessageResult, PinMessageResult as LegacyPinMessageResult, UnpinMessageResult as LegacyUnpinMessageResult } from './types/stream-chat.dto';
|
|
54
54
|
import type { AvailableRolesResponse } from './types/streaming.dto';
|
|
55
55
|
import type { AuthenticatedEvent, BanEnforcementEvent, ChatStatusChangedEvent, ConnectionEvent, ContentFlaggedEvent, ContentReactionAddedEvent, ContentReactionRemovedEvent, DownloadReadyEvent, FlagResolvedEvent, RecordingsCountUpdatedEvent, RecordingStatusChangedEvent, RoomLeftEvent, RoomSubscribedEvent, SimulcastStatusChangedEvent, StreamChatDeletedEvent, StreamChatMessageEvent, StreamChatPinnedEvent, StreamChatUnpinnedEvent, StreamChatUpdatedEvent, StreamControlStatusChangedEvent, StreamCountdownUpdatedEvent, StreamLanguageUpdatedEvent, StreamReactionEvent, StreamStatusChangedEvent, TokenSubscribedEvent, TokenUnsubscribedEvent, UserBannedEvent, UserTypingEvent, UserUnbannedEvent, ViewerCountChangedEvent } from './types/streaming-events.dto';
|
|
56
|
-
import type { CleanupFunction, SubscribeSwapOptions, SwapEventCallback, SwapMonitorConfig } from './types/swap-monitor.dto';
|
|
57
56
|
/**
|
|
58
57
|
* Configuration for initializing the Launchpad SDK
|
|
59
58
|
*
|
|
@@ -71,7 +70,7 @@ import type { CleanupFunction, SubscribeSwapOptions, SwapEventCallback, SwapMoni
|
|
|
71
70
|
* // Environment-based configuration (recommended)
|
|
72
71
|
* const config: LaunchpadSDKConfig = {
|
|
73
72
|
* wallet,
|
|
74
|
-
* env: '
|
|
73
|
+
* env: 'stage', // or 'prod'
|
|
75
74
|
* timeout: 30000,
|
|
76
75
|
* debug: false
|
|
77
76
|
* };
|
|
@@ -79,8 +78,8 @@ import type { CleanupFunction, SubscribeSwapOptions, SwapEventCallback, SwapMoni
|
|
|
79
78
|
* // With URL overrides
|
|
80
79
|
* const configWithOverrides: LaunchpadSDKConfig = {
|
|
81
80
|
* wallet,
|
|
82
|
-
* env: '
|
|
83
|
-
*
|
|
81
|
+
* env: 'prod',
|
|
82
|
+
* gatewayBaseUrl: 'https://custom-gateway.example.com'
|
|
84
83
|
* };
|
|
85
84
|
* ```
|
|
86
85
|
*/
|
|
@@ -89,9 +88,9 @@ import type { CleanupFunction, SubscribeSwapOptions, SwapEventCallback, SwapMoni
|
|
|
89
88
|
* Contains configuration values excluding sensitive wallet data
|
|
90
89
|
* @since 4.0.20
|
|
91
90
|
*/
|
|
92
|
-
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet' | 'walletProvider' | 'streamAdminApiKey' | 'userApiKey' | 'accessToken' | 'headers'> & {
|
|
93
|
-
/** Current environment (
|
|
94
|
-
environment:
|
|
91
|
+
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet' | 'walletProvider' | 'signer' | 'httpRequestor' | 'streamAdminApiKey' | 'userApiKey' | 'accessToken' | 'headers'> & {
|
|
92
|
+
/** Current environment (`stage` or `prod`). */
|
|
93
|
+
environment: Environment;
|
|
95
94
|
/** GalaChain gas fee in GALA (fixed at "1" GALA) */
|
|
96
95
|
gasFee: string;
|
|
97
96
|
/** Stream admin API key presence indicator — always '[REDACTED]' if configured */
|
|
@@ -104,6 +103,12 @@ export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet' | 'wa
|
|
|
104
103
|
headers?: Record<string, '[REDACTED]'>;
|
|
105
104
|
};
|
|
106
105
|
export interface LaunchpadSDKConfig extends SDKConfig {
|
|
106
|
+
/** Native or typed-data signer used by the v6 write surfaces. */
|
|
107
|
+
signer?: LaunchpadSigner;
|
|
108
|
+
/** Registered GalaChain address used as the write sender and bundler header. */
|
|
109
|
+
walletAddress?: string;
|
|
110
|
+
/** Fetch-compatible requestor used by v6 write surfaces and tests. */
|
|
111
|
+
httpRequestor?: HttpRequestor;
|
|
107
112
|
/**
|
|
108
113
|
* The ethers wallet for authentication (optional)
|
|
109
114
|
* - Required for: Trading (buy/sell), transfers, token creation, profile updates
|
|
@@ -130,7 +135,7 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
130
135
|
* const provider = new PrivateKeyProvider('0x...');
|
|
131
136
|
* const sdk = new LaunchpadSDK({
|
|
132
137
|
* walletProvider: provider,
|
|
133
|
-
* env: '
|
|
138
|
+
* env: 'prod'
|
|
134
139
|
* });
|
|
135
140
|
* ```
|
|
136
141
|
*
|
|
@@ -144,13 +149,13 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
144
149
|
*
|
|
145
150
|
* const sdk = new LaunchpadSDK({
|
|
146
151
|
* walletProvider: provider,
|
|
147
|
-
* env: '
|
|
152
|
+
* env: 'prod'
|
|
148
153
|
* });
|
|
149
154
|
* ```
|
|
150
155
|
*/
|
|
151
156
|
walletProvider?: WalletProvider;
|
|
152
157
|
/** Optional GalaChain gateway URL override - defaults based on main API environment */
|
|
153
|
-
|
|
158
|
+
gatewayBaseUrl?: string;
|
|
154
159
|
/** Optional Bundle service URL override - defaults based on main API environment */
|
|
155
160
|
bundleBaseUrl?: string;
|
|
156
161
|
/** Optional WebSocket URL override for transaction monitoring - defaults based on main API environment */
|
|
@@ -163,6 +168,8 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
163
168
|
dexBackendBaseUrl?: string;
|
|
164
169
|
/** Optional Launchpad Frontend URL override - defaults based on main API environment */
|
|
165
170
|
launchpadFrontendUrl?: string;
|
|
171
|
+
/** Optional Launchpad API URL override used by launchpad write confirmation reads. */
|
|
172
|
+
launchpadBaseUrl?: string;
|
|
166
173
|
/** Optional global slippage tolerance factor (e.g., 0.05 = 5% slippage tolerance) - defaults to 0.15 */
|
|
167
174
|
slippageToleranceFactor?: number;
|
|
168
175
|
/** Optional global reverse bonding curve fee slippage factor (e.g., 0.01 = 1% fee slippage) - defaults to 0.01 */
|
|
@@ -218,8 +225,8 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
218
225
|
* Optional Ethereum RPC URL override for bridge operations.
|
|
219
226
|
*
|
|
220
227
|
* If not provided, defaults to Gala internal endpoints:
|
|
221
|
-
* -
|
|
222
|
-
* -
|
|
228
|
+
* - prod: `https://eth.gala.games`
|
|
229
|
+
* - stage: `https://dev.eth.gala.games`
|
|
223
230
|
*
|
|
224
231
|
* @example
|
|
225
232
|
* ```typescript
|
|
@@ -234,8 +241,8 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
234
241
|
* Optional Solana RPC URL override for bridge operations.
|
|
235
242
|
*
|
|
236
243
|
* If not provided, defaults to public Solana endpoints:
|
|
237
|
-
* -
|
|
238
|
-
* -
|
|
244
|
+
* - prod: `https://api.mainnet-beta.solana.com`
|
|
245
|
+
* - stage: `https://api.devnet.solana.com`
|
|
239
246
|
*
|
|
240
247
|
* For faster/more reliable operations, use a dedicated RPC provider like Helius.
|
|
241
248
|
*
|
|
@@ -259,7 +266,7 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
259
266
|
* ```typescript
|
|
260
267
|
* const sdk = new LaunchpadSDK({
|
|
261
268
|
* wallet,
|
|
262
|
-
* streamWebSocketUrl: '
|
|
269
|
+
* streamWebSocketUrl: getEnvironmentConfig('stage').launchpadBaseUrl
|
|
263
270
|
* });
|
|
264
271
|
* ```
|
|
265
272
|
*/
|
|
@@ -276,73 +283,13 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
276
283
|
*/
|
|
277
284
|
streamAdminApiKey?: string;
|
|
278
285
|
}
|
|
279
|
-
/**
|
|
280
|
-
* Main Launchpad SDK class providing access to all Gala Launchpad functionality
|
|
281
|
-
*
|
|
282
|
-
* This is the primary entry point for interacting with the Gala Launchpad backend.
|
|
283
|
-
* It provides a clean, type-safe interface for all API operations including pool creation,
|
|
284
|
-
* token trading, and user management.
|
|
285
|
-
*
|
|
286
|
-
* Features:
|
|
287
|
-
* - Automatic signature-based authentication
|
|
288
|
-
* - Type-safe API interfaces
|
|
289
|
-
* - Built-in error handling and retry logic
|
|
290
|
-
* - Address format conversion (eth|xxx ↔ 0xxxx)
|
|
291
|
-
* - Bonding curve trading for launchpad tokens
|
|
292
|
-
* - EIP-712 signature generation for all wallet types
|
|
293
|
-
* - Bundle transaction processing
|
|
294
|
-
* - Real-time transaction monitoring via WebSocket
|
|
295
|
-
* - Comprehensive validation
|
|
296
|
-
*
|
|
297
|
-
* @category Main SDK
|
|
298
|
-
* @since 1.0.0
|
|
299
|
-
* @agent-capability Primary interface for all Gala Launchpad operations including token creation, trading, and user management
|
|
300
|
-
* @agent-prerequisites Initialized with valid LaunchpadSDKConfig containing wallet
|
|
301
|
-
* @agent-errors
|
|
302
|
-
* - WALLET_001: Invalid wallet configuration - Reinitialize with valid ethers.js Wallet
|
|
303
|
-
* - NETWORK_001: Connection timeout - Check network and retry with higher timeout
|
|
304
|
-
* - AUTH_001: Authentication failed - Verify wallet has valid private key
|
|
305
|
-
* @agent-example
|
|
306
|
-
* ```typescript
|
|
307
|
-
* import { Wallet } from 'ethers';
|
|
308
|
-
* import { LaunchpadSDK, createWallet } from '@gala-chain/launchpad-sdk';
|
|
309
|
-
*
|
|
310
|
-
* // Generate or import wallet
|
|
311
|
-
* const wallet = createWallet(process.env.PRIVATE_KEY).wallet;
|
|
312
|
-
*
|
|
313
|
-
* // Initialize SDK
|
|
314
|
-
* const sdk = new LaunchpadSDK({
|
|
315
|
-
* wallet,
|
|
316
|
-
* debug: true
|
|
317
|
-
* });
|
|
318
|
-
*
|
|
319
|
-
* // Verify setup
|
|
320
|
-
* console.log('SDK Address:', sdk.getAddress()); // eth|{address}
|
|
321
|
-
* console.log('Ethereum Address:', sdk.getEthereumAddress()); // 0x{address}
|
|
322
|
-
*
|
|
323
|
-
* // SDK is ready for operations
|
|
324
|
-
* const balance = await sdk.fetchGalaBalance(sdk.getAddress());
|
|
325
|
-
* ```
|
|
326
|
-
*
|
|
327
|
-
* @example Error handling pattern
|
|
328
|
-
* ```typescript
|
|
329
|
-
* try {
|
|
330
|
-
* const transactionId = await sdk.launchToken(tokenData);
|
|
331
|
-
* console.log('Token launched successfully:', transactionId);
|
|
332
|
-
* return transactionId;
|
|
333
|
-
* } catch (error) {
|
|
334
|
-
* console.error('Operation failed:', error.message);
|
|
335
|
-
* // Implement retry logic or alternative action
|
|
336
|
-
* }
|
|
337
|
-
* ```
|
|
338
|
-
*/
|
|
339
286
|
export declare class LaunchpadSDK {
|
|
340
287
|
/** Default slippage tolerance factor (15%) - Higher for volatile bonding curve tokens */
|
|
341
288
|
static readonly DEFAULT_SLIPPAGE_TOLERANCE_FACTOR = 0.15;
|
|
342
289
|
/** Default reverse bonding curve fee slippage factor (1%) - Applied to maxAcceptableReverseBondingCurveFee */
|
|
343
290
|
static readonly DEFAULT_MAX_ACCEPTABLE_REVERSE_BONDING_CURVE_FEE_SLIPPAGE_FACTOR = 0.01;
|
|
344
291
|
/** Default maximum total supply for launchpad tokens (10,000,000) - Used when token-specific maxSupply not provided */
|
|
345
|
-
static readonly DEFAULT_LAUNCHPAD_TOKEN_MAX_SUPPLY
|
|
292
|
+
static readonly DEFAULT_LAUNCHPAD_TOKEN_MAX_SUPPLY: 10000000;
|
|
346
293
|
/** Default calculation mode for all amount calculations - 'local' for instant client-side bonding curve calculations */
|
|
347
294
|
static readonly DEFAULT_CALCULATE_AMOUNT_MODE: 'local' | 'external';
|
|
348
295
|
private wallet;
|
|
@@ -361,8 +308,8 @@ export declare class LaunchpadSDK {
|
|
|
361
308
|
private readonly slippageToleranceFactor;
|
|
362
309
|
private readonly maxAcceptableReverseBondingCurveFeeSlippageFactor;
|
|
363
310
|
private readonly calculateAmountMode;
|
|
364
|
-
private readonly pricingConcurrency;
|
|
365
311
|
private readonly logger;
|
|
312
|
+
private readonly dexClient;
|
|
366
313
|
private readonly tokenResolverService;
|
|
367
314
|
private readonly launchpadService;
|
|
368
315
|
private readonly galaChainService;
|
|
@@ -370,9 +317,6 @@ export declare class LaunchpadSDK {
|
|
|
370
317
|
private readonly bundleService;
|
|
371
318
|
private readonly websocketService;
|
|
372
319
|
private readonly priceHistoryService;
|
|
373
|
-
private readonly gswapService;
|
|
374
|
-
private readonly dexPoolService;
|
|
375
|
-
private readonly dexQuoteService;
|
|
376
320
|
private readonly cache;
|
|
377
321
|
private _bridgeService?;
|
|
378
322
|
private _bridgeableTokenService?;
|
|
@@ -405,6 +349,10 @@ export declare class LaunchpadSDK {
|
|
|
405
349
|
private readonly nftCollectionService;
|
|
406
350
|
private readonly tradingQuotesService;
|
|
407
351
|
private readonly launchpadAPI;
|
|
352
|
+
/** v6 launchpad write surface. */
|
|
353
|
+
readonly launchpad: LaunchpadWrites;
|
|
354
|
+
/** v6 native token write surface. */
|
|
355
|
+
readonly tokens: TokenWrites;
|
|
408
356
|
constructor(config: LaunchpadSDKConfig);
|
|
409
357
|
/**
|
|
410
358
|
* Creates a temporary SDK instance with a different wallet for privateKey override operations.
|
|
@@ -416,6 +364,18 @@ export declare class LaunchpadSDK {
|
|
|
416
364
|
* @throws Error if privateKey format is invalid
|
|
417
365
|
*/
|
|
418
366
|
private createOverrideSdk;
|
|
367
|
+
/**
|
|
368
|
+
* Access the shared GSwap DEX client.
|
|
369
|
+
*
|
|
370
|
+
* @returns The single `@gala-chain/gswap-sdk` client configured with this SDK's signer and hosts.
|
|
371
|
+
*
|
|
372
|
+
* @example
|
|
373
|
+
* ```typescript
|
|
374
|
+
* const quote = await sdk.dex.quoting.quoteExactInput('GALA', 'GUSDC', '1');
|
|
375
|
+
* console.log(quote.amountOut);
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
378
|
+
get dex(): GSwap;
|
|
419
379
|
/**
|
|
420
380
|
* Gets the authenticated user's address in backend format
|
|
421
381
|
*
|
|
@@ -664,7 +624,7 @@ export declare class LaunchpadSDK {
|
|
|
664
624
|
*
|
|
665
625
|
* @category Configuration
|
|
666
626
|
* @returns SDK configuration object including:
|
|
667
|
-
* - environment: Current environment (
|
|
627
|
+
* - environment: Current environment (`stage` or `prod`)
|
|
668
628
|
* - gasFee: GalaChain gas fee (fixed at "1" GALA)
|
|
669
629
|
* - slippageToleranceFactor: Effective slippage tolerance
|
|
670
630
|
* - calculateAmountMode: Calculation mode (local or external)
|
|
@@ -722,17 +682,17 @@ export declare class LaunchpadSDK {
|
|
|
722
682
|
*
|
|
723
683
|
* @example Get token URL
|
|
724
684
|
* ```typescript
|
|
725
|
-
* const sdk = new LaunchpadSDK({ wallet, env: '
|
|
685
|
+
* const sdk = new LaunchpadSDK({ wallet, env: 'prod' });
|
|
726
686
|
* const url = sdk.getUrlByTokenName('dragnrkti');
|
|
727
687
|
* console.log(url);
|
|
728
|
-
* // Output:
|
|
688
|
+
* // Output: `${getEnvironmentConfig('prod').launchpadFrontendUrl}/buy-sell/dragnrkti`
|
|
729
689
|
* ```
|
|
730
690
|
*
|
|
731
691
|
* @example With custom frontend URL
|
|
732
692
|
* ```typescript
|
|
733
693
|
* const sdk = new LaunchpadSDK({
|
|
734
694
|
* wallet,
|
|
735
|
-
* env: '
|
|
695
|
+
* env: 'stage',
|
|
736
696
|
* launchpadFrontendUrl: 'https://custom-frontend.example.com'
|
|
737
697
|
* });
|
|
738
698
|
* const url = sdk.getUrlByTokenName('mytoken');
|
|
@@ -872,266 +832,6 @@ export declare class LaunchpadSDK {
|
|
|
872
832
|
tokenName?: string;
|
|
873
833
|
type?: 'recent' | 'popular';
|
|
874
834
|
}): Promise<PoolsResult>;
|
|
875
|
-
/**
|
|
876
|
-
* Fetch DEX pools with pagination and filtering
|
|
877
|
-
*
|
|
878
|
-
* Queries the GalaSwap DEX backend for available liquidity pools with support for:
|
|
879
|
-
* - Pagination (max 20 per page)
|
|
880
|
-
* - Sorting by TVL, 30-day volume, or 1-day volume
|
|
881
|
-
* - Search filtering by token symbols
|
|
882
|
-
*
|
|
883
|
-
* Perfect for discovering trading pairs and analyzing liquidity across the DEX.
|
|
884
|
-
*
|
|
885
|
-
* @category DEX Pool Discovery
|
|
886
|
-
* @param options Optional pagination, sorting, and filtering options
|
|
887
|
-
* @returns Promise<DexPoolsResult> Paginated pool data with metadata
|
|
888
|
-
* @since 3.28.0
|
|
889
|
-
*
|
|
890
|
-
* @example Fetch top 10 pools by volume
|
|
891
|
-
* ```typescript
|
|
892
|
-
* const result = await sdk.fetchDexPools({
|
|
893
|
-
* sortBy: 'volume1d',
|
|
894
|
-
* sortOrder: 'desc',
|
|
895
|
-
* pageSize: 10
|
|
896
|
-
* });
|
|
897
|
-
*
|
|
898
|
-
* console.log(`Found ${result.total} total pools`);
|
|
899
|
-
* console.log(`Showing page ${result.page} of ${result.totalPages}`);
|
|
900
|
-
*
|
|
901
|
-
* result.items.forEach(pool => {
|
|
902
|
-
* console.log(`${pool.poolName}: $${pool.tvl.toFixed(2)} TVL`);
|
|
903
|
-
* });
|
|
904
|
-
* ```
|
|
905
|
-
*
|
|
906
|
-
* @example Search for GALA pools
|
|
907
|
-
* ```typescript
|
|
908
|
-
* const galaPools = await sdk.fetchDexPools({
|
|
909
|
-
* search: 'GALA',
|
|
910
|
-
* pageSize: 20
|
|
911
|
-
* });
|
|
912
|
-
*
|
|
913
|
-
* console.log(`Found ${galaPools.items.length} GALA trading pairs`);
|
|
914
|
-
* ```
|
|
915
|
-
*
|
|
916
|
-
* @example Get pools sorted by TVL (default)
|
|
917
|
-
* ```typescript
|
|
918
|
-
* const topTvl = await sdk.fetchDexPools({
|
|
919
|
-
* sortBy: 'tvl',
|
|
920
|
-
* sortOrder: 'desc',
|
|
921
|
-
* pageSize: 5
|
|
922
|
-
* });
|
|
923
|
-
* ```
|
|
924
|
-
*/
|
|
925
|
-
fetchDexPools(options?: FetchDexPoolsOptions): Promise<DexPoolsResult>;
|
|
926
|
-
/**
|
|
927
|
-
* Fetch ALL DEX pools with automatic pagination
|
|
928
|
-
*
|
|
929
|
-
* Convenience method that automatically handles pagination to retrieve all available
|
|
930
|
-
* DEX pools in one call. Uses maximum page size (20) internally for efficiency.
|
|
931
|
-
*
|
|
932
|
-
* This is useful when you need complete pool data regardless of result size.
|
|
933
|
-
* For large result sets or when you prefer manual pagination, use fetchDexPools().
|
|
934
|
-
*
|
|
935
|
-
* @category DEX Pool Discovery
|
|
936
|
-
* @param options Optional sorting and filtering options (no pagination fields)
|
|
937
|
-
* @returns Promise<DexPoolsResult> All pools with flattened pagination metadata
|
|
938
|
-
* @since 3.28.0
|
|
939
|
-
*
|
|
940
|
-
* @example Fetch all pools sorted by TVL
|
|
941
|
-
* ```typescript
|
|
942
|
-
* const allPools = await sdk.fetchAllDexPools({
|
|
943
|
-
* sortBy: 'tvl',
|
|
944
|
-
* sortOrder: 'desc'
|
|
945
|
-
* });
|
|
946
|
-
*
|
|
947
|
-
* console.log(`Total pools: ${allPools.total}`);
|
|
948
|
-
*
|
|
949
|
-
* // Find top GALA pools
|
|
950
|
-
* const galaPools = allPools.items
|
|
951
|
-
* .filter(p => p.poolName.includes('GALA'))
|
|
952
|
-
* .slice(0, 10);
|
|
953
|
-
*
|
|
954
|
-
* galaPools.forEach(pool => {
|
|
955
|
-
* console.log(`${pool.poolName}: APR ${pool.apr1d.toFixed(2)}%`);
|
|
956
|
-
* });
|
|
957
|
-
* ```
|
|
958
|
-
*
|
|
959
|
-
* @example Analyze token pairs
|
|
960
|
-
* ```typescript
|
|
961
|
-
* const allPools = await sdk.fetchAllDexPools();
|
|
962
|
-
*
|
|
963
|
-
* // Find pools by token
|
|
964
|
-
* const guscPairs = allPools.items.filter(p =>
|
|
965
|
-
* p.poolName.includes('GUSDC')
|
|
966
|
-
* );
|
|
967
|
-
*
|
|
968
|
-
* console.log(`GUSDC trading pairs: ${guscPairs.length}`);
|
|
969
|
-
* ```
|
|
970
|
-
*/
|
|
971
|
-
fetchAllDexPools(options?: Omit<FetchDexPoolsOptions, 'page' | 'limit'>): Promise<DexPoolsResult>;
|
|
972
|
-
/**
|
|
973
|
-
* Fetch composite pool data from GalaChain for offline DEX quote calculations
|
|
974
|
-
*
|
|
975
|
-
* Retrieves complete pool state including liquidity, tick data, token balances, and decimals.
|
|
976
|
-
* This data is required for offline quote calculations using local bonding curve math.
|
|
977
|
-
*
|
|
978
|
-
* The composite pool data can be fetched once and reused for multiple quote calculations,
|
|
979
|
-
* making it efficient for bulk pricing operations.
|
|
980
|
-
*
|
|
981
|
-
* @param options Pool identification options with token pair and fee tier
|
|
982
|
-
* @returns CompositePoolDataResult containing complete pool state for offline calculations
|
|
983
|
-
* @throws DexPoolNotFoundError if the pool does not exist
|
|
984
|
-
* @throws DexQuoteError on API or conversion errors
|
|
985
|
-
* @since 3.32.0
|
|
986
|
-
* @category DEX Quotes
|
|
987
|
-
*
|
|
988
|
-
* @example Fetch and reuse composite pool data
|
|
989
|
-
* ```typescript
|
|
990
|
-
* // Step 1: Fetch composite data (one network call)
|
|
991
|
-
* const composite = await sdk.fetchCompositePoolData({
|
|
992
|
-
* token0: 'GALA|Unit|none|none',
|
|
993
|
-
* token1: 'Token|Unit|BENE|client:5c806869e7fd0e2384461ce9',
|
|
994
|
-
* fee: 3000 // 0.30%
|
|
995
|
-
* });
|
|
996
|
-
*
|
|
997
|
-
* // Step 2: Calculate multiple quotes using same composite data (instant, local)
|
|
998
|
-
* const quote1 = await sdk.calculateDexPoolQuoteExactAmountLocal({
|
|
999
|
-
* compositePoolData: composite,
|
|
1000
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1001
|
-
* toToken: 'Token|Unit|BENE|client:5c806869e7fd0e2384461ce9',
|
|
1002
|
-
* amount: '100'
|
|
1003
|
-
* });
|
|
1004
|
-
*
|
|
1005
|
-
* const quote2 = await sdk.calculateDexPoolQuoteExactAmountLocal({
|
|
1006
|
-
* compositePoolData: composite,
|
|
1007
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1008
|
-
* toToken: 'Token|Unit|BENE|client:5c806869e7fd0e2384461ce9',
|
|
1009
|
-
* amount: '500'
|
|
1010
|
-
* });
|
|
1011
|
-
*
|
|
1012
|
-
* // Step 3: Compare with a real-time quote from the DEX backend
|
|
1013
|
-
* const liveQuote = await sdk.calculateDexPoolQuoteExactAmountExternal({
|
|
1014
|
-
* compositePoolData: composite,
|
|
1015
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1016
|
-
* toToken: 'Token|Unit|BENE|client:5c806869e7fd0e2384461ce9',
|
|
1017
|
-
* amount: '100'
|
|
1018
|
-
* });
|
|
1019
|
-
* ```
|
|
1020
|
-
*/
|
|
1021
|
-
fetchCompositePoolData(options: FetchCompositePoolDataOptions): Promise<CompositePoolDataResult>;
|
|
1022
|
-
/**
|
|
1023
|
-
* Calculate DEX pool quote using LOCAL client-side calculation
|
|
1024
|
-
*
|
|
1025
|
-
* Instant quotes without network calls using pre-fetched composite pool data and
|
|
1026
|
-
* the @gala-chain/dex bonding curve math library.
|
|
1027
|
-
*
|
|
1028
|
-
* Perfect for bulk pricing operations, simulations, and price discovery where
|
|
1029
|
-
* network latency is unacceptable.
|
|
1030
|
-
*
|
|
1031
|
-
* @param options Quote calculation options (must include pre-fetched compositePoolData)
|
|
1032
|
-
* @returns DexPoolQuoteResult with input/output amounts and execution prices
|
|
1033
|
-
* @throws DexQuoteError on calculation errors
|
|
1034
|
-
* @since 3.32.0
|
|
1035
|
-
* @category DEX Quotes
|
|
1036
|
-
*
|
|
1037
|
-
* @example Fast bulk pricing
|
|
1038
|
-
* ```typescript
|
|
1039
|
-
* const composite = await sdk.fetchCompositePoolData({
|
|
1040
|
-
* token0: 'GALA|Unit|none|none',
|
|
1041
|
-
* token1: 'Token|Unit|BENE|client:123',
|
|
1042
|
-
* fee: 3000
|
|
1043
|
-
* });
|
|
1044
|
-
*
|
|
1045
|
-
* // Get 100 instant quotes without any network calls
|
|
1046
|
-
* const amounts = ['10', '50', '100', '500', '1000'];
|
|
1047
|
-
* const quotes = await Promise.all(
|
|
1048
|
-
* amounts.map(amount =>
|
|
1049
|
-
* sdk.calculateDexPoolQuoteExactAmountLocal({
|
|
1050
|
-
* compositePoolData: composite,
|
|
1051
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1052
|
-
* toToken: 'Token|Unit|BENE|client:123',
|
|
1053
|
-
* amount
|
|
1054
|
-
* })
|
|
1055
|
-
* )
|
|
1056
|
-
* );
|
|
1057
|
-
* ```
|
|
1058
|
-
*/
|
|
1059
|
-
calculateDexPoolQuoteExactAmountLocal(options: CalculateDexPoolQuoteOptions): Promise<DexPoolQuoteResult>;
|
|
1060
|
-
/**
|
|
1061
|
-
* Calculate DEX pool quote using the external DEX backend endpoint
|
|
1062
|
-
*
|
|
1063
|
-
* Real-time quotes using current backend pool state. Slower than local calculation
|
|
1064
|
-
* and useful for final price verification.
|
|
1065
|
-
*
|
|
1066
|
-
* @param options Quote calculation options (compositePoolData provides token metadata)
|
|
1067
|
-
* @returns DexPoolQuoteResult with current pool state
|
|
1068
|
-
* @throws DexQuoteError on network or calculation errors
|
|
1069
|
-
* @since 3.32.0
|
|
1070
|
-
* @category DEX Quotes
|
|
1071
|
-
*
|
|
1072
|
-
* @example Verify quote with live chain data
|
|
1073
|
-
* ```typescript
|
|
1074
|
-
* const composite = await sdk.fetchCompositePoolData({
|
|
1075
|
-
* token0: 'GALA|Unit|none|none',
|
|
1076
|
-
* token1: 'Token|Unit|BENE|client:123',
|
|
1077
|
-
* fee: 3000
|
|
1078
|
-
* });
|
|
1079
|
-
*
|
|
1080
|
-
* // Local estimate (instant)
|
|
1081
|
-
* const estimate = await sdk.calculateDexPoolQuoteExactAmountLocal({
|
|
1082
|
-
* compositePoolData: composite,
|
|
1083
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1084
|
-
* toToken: 'Token|Unit|BENE|client:123',
|
|
1085
|
-
* amount: '1000'
|
|
1086
|
-
* });
|
|
1087
|
-
*
|
|
1088
|
-
* // Live verification from the DEX backend
|
|
1089
|
-
* const liveQuote = await sdk.calculateDexPoolQuoteExactAmountExternal({
|
|
1090
|
-
* compositePoolData: composite,
|
|
1091
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1092
|
-
* toToken: 'Token|Unit|BENE|client:123',
|
|
1093
|
-
* amount: '1000'
|
|
1094
|
-
* });
|
|
1095
|
-
*
|
|
1096
|
-
* console.log(`Difference: ${estimate.amount1} vs ${liveQuote.amount1}`);
|
|
1097
|
-
* ```
|
|
1098
|
-
*/
|
|
1099
|
-
calculateDexPoolQuoteExactAmountExternal(options: CalculateDexPoolQuoteOptions): Promise<DexPoolQuoteResult>;
|
|
1100
|
-
/**
|
|
1101
|
-
* Calculate DEX pool quote with automatic mode selection
|
|
1102
|
-
*
|
|
1103
|
-
* Main quote calculation method that delegates to local or external based on mode parameter.
|
|
1104
|
-
* Defaults to local (instant) calculation.
|
|
1105
|
-
*
|
|
1106
|
-
* @param options Quote calculation options
|
|
1107
|
-
* @param mode 'local' (instant, client-side) or 'external' (real-time, backend) - defaults to 'local'
|
|
1108
|
-
* @returns DexPoolQuoteResult with amounts and prices
|
|
1109
|
-
* @since 3.32.0
|
|
1110
|
-
* @category DEX Quotes
|
|
1111
|
-
*
|
|
1112
|
-
* @example Using default local mode
|
|
1113
|
-
* ```typescript
|
|
1114
|
-
* const quote = await sdk.calculateDexPoolQuoteExactAmount({
|
|
1115
|
-
* compositePoolData: composite,
|
|
1116
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1117
|
-
* toToken: 'Token|Unit|BENE|client:123',
|
|
1118
|
-
* amount: '1000'
|
|
1119
|
-
* });
|
|
1120
|
-
* // Returns instant local quote
|
|
1121
|
-
* ```
|
|
1122
|
-
*
|
|
1123
|
-
* @example Explicit external mode for real-time
|
|
1124
|
-
* ```typescript
|
|
1125
|
-
* const liveQuote = await sdk.calculateDexPoolQuoteExactAmount({
|
|
1126
|
-
* compositePoolData: composite,
|
|
1127
|
-
* fromToken: 'GALA|Unit|none|none',
|
|
1128
|
-
* toToken: 'Token|Unit|BENE|client:123',
|
|
1129
|
-
* amount: '1000'
|
|
1130
|
-
* }, 'external');
|
|
1131
|
-
* // Returns a real-time quote from the DEX backend
|
|
1132
|
-
* ```
|
|
1133
|
-
*/
|
|
1134
|
-
calculateDexPoolQuoteExactAmount(options: CalculateDexPoolQuoteOptions, mode?: 'local' | 'external'): Promise<DexPoolQuoteResult>;
|
|
1135
835
|
/**
|
|
1136
836
|
* Fetch token ownership distribution with holder percentages
|
|
1137
837
|
*
|
|
@@ -1311,37 +1011,13 @@ export declare class LaunchpadSDK {
|
|
|
1311
1011
|
* ```
|
|
1312
1012
|
*/
|
|
1313
1013
|
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<UserHolderContext>;
|
|
1314
|
-
/**
|
|
1315
|
-
* Fetch token achievement badges and metadata
|
|
1316
|
-
*
|
|
1317
|
-
* Retrieves badge data for a token including achievement milestones, special recognitions,
|
|
1318
|
-
* and platform-assigned attributes. Badges provide additional context about token
|
|
1319
|
-
* performance, community engagement, and platform status.
|
|
1320
|
-
*
|
|
1321
|
-
* @category Token Information
|
|
1322
|
-
* @param tokenName - Token name to fetch badges for (e.g., 'anime', 'mytoken')
|
|
1323
|
-
* @returns Promise with badge data including badge types, timestamps, and metadata
|
|
1324
|
-
* @throws {ValidationError} If tokenName is invalid or empty
|
|
1325
|
-
* @throws {NetworkError} If API request fails
|
|
1326
|
-
* @since 4.0.4-beta.0
|
|
1327
|
-
*
|
|
1328
|
-
* @example Fetch token badges
|
|
1329
|
-
* ```typescript
|
|
1330
|
-
* const badges = await sdk.fetchTokenBadges('anime');
|
|
1331
|
-
* console.log(`Token has ${badges.length} badges`);
|
|
1332
|
-
* badges.forEach(badge => {
|
|
1333
|
-
* console.log(`Badge: ${badge.name} - ${badge.description}`);
|
|
1334
|
-
* });
|
|
1335
|
-
* ```
|
|
1336
|
-
*/
|
|
1337
|
-
fetchTokenBadges(tokenName: string): Promise<TokenBadgesResult>;
|
|
1338
1014
|
/**
|
|
1339
1015
|
* Fetch USD spot price for any token with smart routing
|
|
1340
1016
|
*
|
|
1341
1017
|
* Unified smart router that accepts either tokenName (launchpad tokens) or tokenId (DEX tokens).
|
|
1342
1018
|
* Automatically detects token type and routes to the correct backend:
|
|
1343
1019
|
* - **tokenName** → Launchpad token with graduation detection (bonding curve or DEX pricing)
|
|
1344
|
-
* - **tokenId** → DEX Backend API `/
|
|
1020
|
+
* - **tokenId** → DEX Backend API `/market/price` (direct pricing)
|
|
1345
1021
|
*
|
|
1346
1022
|
* @param params Options with either tokenName or tokenId (mutually exclusive)
|
|
1347
1023
|
* @returns Promise<TokenSpotPrice> Single token's spot price data
|
|
@@ -2144,6 +1820,9 @@ export declare class LaunchpadSDK {
|
|
|
2144
1820
|
* @internal
|
|
2145
1821
|
*/
|
|
2146
1822
|
private getContentReactionService;
|
|
1823
|
+
private toLegacyPinnedMessage;
|
|
1824
|
+
private buildMessageFetchOptions;
|
|
1825
|
+
private resolveReferralAddress;
|
|
2147
1826
|
/**
|
|
2148
1827
|
* Get or create the MessagesService instance.
|
|
2149
1828
|
*
|
|
@@ -2291,13 +1970,13 @@ export declare class LaunchpadSDK {
|
|
|
2291
1970
|
/**
|
|
2292
1971
|
* Request SOL airdrop from Solana devnet faucet.
|
|
2293
1972
|
*
|
|
2294
|
-
* Only available in
|
|
1973
|
+
* Only available in stage environment (Solana devnet) for testing purposes.
|
|
2295
1974
|
* Will throw an error if called in production environment.
|
|
2296
1975
|
*
|
|
2297
1976
|
* @param amount - Amount of SOL to request (default: 1, max: 2 per request)
|
|
2298
1977
|
* @param address - Optional recipient Solana address (defaults to configured wallet)
|
|
2299
1978
|
* @returns Transaction signature
|
|
2300
|
-
* @throws Error if not in
|
|
1979
|
+
* @throws Error if not in stage environment, Solana not configured, or airdrop fails
|
|
2301
1980
|
*
|
|
2302
1981
|
* @example Airdrop 1 SOL to configured wallet
|
|
2303
1982
|
* ```typescript
|
|
@@ -3533,32 +3212,6 @@ export declare class LaunchpadSDK {
|
|
|
3533
3212
|
*
|
|
3534
3213
|
* Deprecated: Chat status is now included in token details (GET /v1/tokens/:tokenName)
|
|
3535
3214
|
*/
|
|
3536
|
-
/**
|
|
3537
|
-
* Get engagement statistics for a token.
|
|
3538
|
-
*
|
|
3539
|
-
* Returns aggregated engagement metrics including:
|
|
3540
|
-
* - Chat: message count, unique chatters, session start time
|
|
3541
|
-
* - Comments: total count, unique commenters
|
|
3542
|
-
*
|
|
3543
|
-
* Chat stats are scoped to the current/last stream session.
|
|
3544
|
-
* Comment stats are all-time for the token.
|
|
3545
|
-
*
|
|
3546
|
-
* @param options - Token name to fetch stats for
|
|
3547
|
-
* @returns Promise resolving with engagement statistics
|
|
3548
|
-
*
|
|
3549
|
-
* @since 5.10.0
|
|
3550
|
-
* @category Chat
|
|
3551
|
-
*
|
|
3552
|
-
* @example Get engagement stats
|
|
3553
|
-
* ```typescript
|
|
3554
|
-
* const stats = await sdk.getEngagementStats({ tokenName: 'mytoken' });
|
|
3555
|
-
* console.log('Chat messages:', stats.chat.messageCount);
|
|
3556
|
-
* console.log('Unique chatters:', stats.chat.uniqueChatters);
|
|
3557
|
-
* console.log('Total comments:', stats.comments.count);
|
|
3558
|
-
* console.log('Unique commenters:', stats.comments.uniqueCommenters);
|
|
3559
|
-
* ```
|
|
3560
|
-
*/
|
|
3561
|
-
getEngagementStats(options: GetEngagementStatsOptions): Promise<EngagementStatsResult>;
|
|
3562
3215
|
/**
|
|
3563
3216
|
* Disable chat for a specific token.
|
|
3564
3217
|
*
|
|
@@ -3600,31 +3253,6 @@ export declare class LaunchpadSDK {
|
|
|
3600
3253
|
tokenName: string;
|
|
3601
3254
|
status?: string;
|
|
3602
3255
|
}>;
|
|
3603
|
-
/**
|
|
3604
|
-
* Get global chat status.
|
|
3605
|
-
*
|
|
3606
|
-
* Returns platform-wide chat status.
|
|
3607
|
-
*
|
|
3608
|
-
* @returns Promise resolving to global chat status
|
|
3609
|
-
*
|
|
3610
|
-
* @since 5.1.0
|
|
3611
|
-
* @category Chat
|
|
3612
|
-
*/
|
|
3613
|
-
getGlobalChatStatus(): Promise<GlobalChatStatus>;
|
|
3614
|
-
/**
|
|
3615
|
-
* Enable or disable chat globally (Admin only).
|
|
3616
|
-
*
|
|
3617
|
-
* Controls platform-wide chat capability.
|
|
3618
|
-
*
|
|
3619
|
-
* @param enabled - Whether chat should be enabled
|
|
3620
|
-
* @returns Promise resolving when updated
|
|
3621
|
-
* @throws Error if admin API key is not configured
|
|
3622
|
-
*
|
|
3623
|
-
* @since 5.1.0
|
|
3624
|
-
* @category Chat
|
|
3625
|
-
* @admin Requires streamAdminApiKey configuration
|
|
3626
|
-
*/
|
|
3627
|
-
setGlobalChatEnabled(enabled: boolean): Promise<GlobalChatStatus>;
|
|
3628
3256
|
/**
|
|
3629
3257
|
* Get the currently pinned chat message for a token (v6.x.0+)
|
|
3630
3258
|
*
|
|
@@ -7736,7 +7364,7 @@ export declare class LaunchpadSDK {
|
|
|
7736
7364
|
* **Use simple `tokenName`** (e.g., `"anime"`), NOT full TokenClassKey format.
|
|
7737
7365
|
*
|
|
7738
7366
|
* This method is for **bonding curve tokens only** (pre-graduation). For DEX trading
|
|
7739
|
-
* of graduated tokens, use {@link
|
|
7367
|
+
* of graduated tokens, use `sdk.dex.swaps.swap()` (the {@link GSwap} client exposed via {@link dex}) with full TokenClassKey format.
|
|
7740
7368
|
*
|
|
7741
7369
|
* ```typescript
|
|
7742
7370
|
* // ✅ CORRECT - Simple token name
|
|
@@ -7857,7 +7485,7 @@ export declare class LaunchpadSDK {
|
|
|
7857
7485
|
* **Use simple `tokenName`** (e.g., `"anime"`), NOT full TokenClassKey format.
|
|
7858
7486
|
*
|
|
7859
7487
|
* This method is for **bonding curve tokens only** (pre-graduation). For DEX trading
|
|
7860
|
-
* of graduated tokens, use {@link
|
|
7488
|
+
* of graduated tokens, use `sdk.dex.swaps.swap()` (the {@link GSwap} client exposed via {@link dex}) with full TokenClassKey format.
|
|
7861
7489
|
*
|
|
7862
7490
|
* ```typescript
|
|
7863
7491
|
* // ✅ CORRECT - Simple token name
|
|
@@ -8201,54 +7829,6 @@ export declare class LaunchpadSDK {
|
|
|
8201
7829
|
* ```
|
|
8202
7830
|
*/
|
|
8203
7831
|
fetchTokenStats(tokenName: string): Promise<FetchTokenStatsResult>;
|
|
8204
|
-
/**
|
|
8205
|
-
* Fetch all token balances for a user (v7.1.0+)
|
|
8206
|
-
*
|
|
8207
|
-
* Returns a paginated list of all tokens held by the user with balance information,
|
|
8208
|
-
* graduation status, and optional USD/GALA valuations.
|
|
8209
|
-
*
|
|
8210
|
-
* @param options Fetch options (address required, pageSize optional)
|
|
8211
|
-
* @returns User balance results
|
|
8212
|
-
* @throws ValidationError if address format is invalid
|
|
8213
|
-
*
|
|
8214
|
-
* @category User Account
|
|
8215
|
-
* @since 7.1.0
|
|
8216
|
-
*
|
|
8217
|
-
* @example
|
|
8218
|
-
* ```typescript
|
|
8219
|
-
* const result = await sdk.fetchUserBalances({
|
|
8220
|
-
* address: 'eth|...',
|
|
8221
|
-
* pageSize: 20
|
|
8222
|
-
* });
|
|
8223
|
-
* console.log(`User holds ${result.balances.length} tokens`);
|
|
8224
|
-
* ```
|
|
8225
|
-
*/
|
|
8226
|
-
fetchUserBalances(options: FetchUserBalancesOptions): Promise<FetchUserBalancesResult>;
|
|
8227
|
-
/**
|
|
8228
|
-
* Fetch comprehensive user report (Overseer only) (v7.1.0+)
|
|
8229
|
-
*
|
|
8230
|
-
* Returns detailed profile, activity, and reputation information for a user.
|
|
8231
|
-
* This endpoint is restricted to overseers and requires JWT authentication.
|
|
8232
|
-
*
|
|
8233
|
-
* @param options Fetch options (address required)
|
|
8234
|
-
* @returns User report result
|
|
8235
|
-
* @throws ValidationError if address format is invalid
|
|
8236
|
-
* @throws ConfigurationError if JWT is not configured
|
|
8237
|
-
*
|
|
8238
|
-
* @category User Account
|
|
8239
|
-
* @since 7.1.0
|
|
8240
|
-
*
|
|
8241
|
-
* @example
|
|
8242
|
-
* ```typescript
|
|
8243
|
-
* const result = await sdk.fetchUserReport({
|
|
8244
|
-
* address: 'eth|...'
|
|
8245
|
-
* });
|
|
8246
|
-
* const { profile, activity, reputation } = result.report;
|
|
8247
|
-
* console.log(`User: ${profile.fullName}`);
|
|
8248
|
-
* console.log(`Tokens created: ${activity.tokensCreated}`);
|
|
8249
|
-
* ```
|
|
8250
|
-
*/
|
|
8251
|
-
fetchUserReport(options: FetchUserReportOptions): Promise<FetchUserReportResult>;
|
|
8252
7832
|
/**
|
|
8253
7833
|
* Fetch user profile information by wallet address
|
|
8254
7834
|
*
|
|
@@ -9088,784 +8668,85 @@ export declare class LaunchpadSDK {
|
|
|
9088
8668
|
*/
|
|
9089
8669
|
private warmCacheFromPools;
|
|
9090
8670
|
/**
|
|
9091
|
-
*
|
|
9092
|
-
*
|
|
9093
|
-
* Queries GalaSwap DEX for a quote when swapping from one token to another,
|
|
9094
|
-
* specifying the exact amount you want to spend.
|
|
8671
|
+
* Connect to WebSocket for real-time events
|
|
9095
8672
|
*
|
|
9096
|
-
*
|
|
8673
|
+
* Establishes a WebSocket connection for receiving real-time transaction status updates.
|
|
8674
|
+
* This method returns immediately - connection happens asynchronously.
|
|
9097
8675
|
*
|
|
9098
|
-
*
|
|
8676
|
+
* @category WebSocket
|
|
8677
|
+
* @since 3.29.0
|
|
9099
8678
|
*
|
|
8679
|
+
* @example Connect WebSocket
|
|
9100
8680
|
* ```typescript
|
|
9101
|
-
*
|
|
9102
|
-
*
|
|
9103
|
-
*
|
|
9104
|
-
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9105
|
-
* await sdk.getSwapQuoteExactInput('GALA', 'GUSDC', '100'); // Error!
|
|
8681
|
+
* const sdk = createLaunchpadSDK({ wallet });
|
|
8682
|
+
* sdk.connectWebSocket();
|
|
9106
8683
|
* ```
|
|
9107
8684
|
*
|
|
9108
|
-
*
|
|
9109
|
-
* - Delegates to GSwapService which uses GSwap SDK quoting engine
|
|
9110
|
-
* - Returns quote with estimated output, fee tier, and price impact
|
|
9111
|
-
* - Automatically selects optimal liquidity pool for best pricing
|
|
9112
|
-
*
|
|
9113
|
-
* @category DEX Trading
|
|
9114
|
-
* @param fromToken Source token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9115
|
-
* @param toToken Destination token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9116
|
-
* @param amount Amount of source token to spend
|
|
9117
|
-
* @returns Promise<SwapQuoteResult> Quote with estimated output and fees
|
|
9118
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9119
|
-
* @since 3.23.0
|
|
9120
|
-
*
|
|
9121
|
-
* @example Get swap quote
|
|
8685
|
+
* @example Pre-connect before transactions
|
|
9122
8686
|
* ```typescript
|
|
9123
|
-
* const
|
|
9124
|
-
*
|
|
9125
|
-
*
|
|
9126
|
-
*
|
|
8687
|
+
* const sdk = createLaunchpadSDK({ wallet });
|
|
8688
|
+
* sdk.connectWebSocket(); // Connect first
|
|
8689
|
+
*
|
|
8690
|
+
* const result = await sdk.buy({ tokenName: 'anime', amount: '10' });
|
|
8691
|
+
* // WebSocket ready to monitor transaction immediately
|
|
9127
8692
|
* ```
|
|
9128
8693
|
*/
|
|
9129
|
-
|
|
8694
|
+
connectWebSocket(): void;
|
|
9130
8695
|
/**
|
|
9131
|
-
*
|
|
9132
|
-
*
|
|
9133
|
-
* Queries GalaSwap DEX for a quote when swapping from one token to another,
|
|
9134
|
-
* specifying the exact amount you want to receive.
|
|
8696
|
+
* Disconnect from WebSocket
|
|
9135
8697
|
*
|
|
9136
|
-
*
|
|
8698
|
+
* Closes the WebSocket connection and cleans up all listeners.
|
|
8699
|
+
* Safe to call even if not connected.
|
|
9137
8700
|
*
|
|
9138
|
-
*
|
|
8701
|
+
* @category WebSocket
|
|
8702
|
+
* @since 3.29.0
|
|
9139
8703
|
*
|
|
8704
|
+
* @example Disconnect WebSocket
|
|
9140
8705
|
* ```typescript
|
|
9141
|
-
*
|
|
9142
|
-
* await sdk.getSwapQuoteExactOutput('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '50');
|
|
9143
|
-
*
|
|
9144
|
-
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9145
|
-
* await sdk.getSwapQuoteExactOutput('GALA', 'GUSDC', '50'); // Error!
|
|
8706
|
+
* sdk.disconnectWebSocket();
|
|
9146
8707
|
* ```
|
|
8708
|
+
*/
|
|
8709
|
+
disconnectWebSocket(): void;
|
|
8710
|
+
/**
|
|
8711
|
+
* Check if WebSocket is connected
|
|
9147
8712
|
*
|
|
9148
|
-
*
|
|
9149
|
-
* - Delegates to GSwapService which uses GSwap SDK quoting engine
|
|
9150
|
-
* - Calculates required input amount for exact output target
|
|
9151
|
-
* - Returns quote with required input, fee tier, and price impact
|
|
9152
|
-
* - Ensures amount constraints are satisfied with slippage buffer
|
|
8713
|
+
* @returns true if WebSocket is currently connected, false otherwise
|
|
9153
8714
|
*
|
|
9154
|
-
* @category
|
|
9155
|
-
* @
|
|
9156
|
-
* @param toToken Destination token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9157
|
-
* @param amount Desired amount of destination token to receive
|
|
9158
|
-
* @returns Promise<SwapQuoteResult> Quote with required input and fees
|
|
9159
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9160
|
-
* @since 3.23.0
|
|
8715
|
+
* @category WebSocket
|
|
8716
|
+
* @since 3.29.0
|
|
9161
8717
|
*
|
|
9162
|
-
* @example
|
|
8718
|
+
* @example Check connection status
|
|
9163
8719
|
* ```typescript
|
|
9164
|
-
*
|
|
9165
|
-
*
|
|
9166
|
-
*
|
|
9167
|
-
*
|
|
8720
|
+
* if (sdk.isWebSocketConnected()) {
|
|
8721
|
+
* console.log('Real-time features enabled');
|
|
8722
|
+
* } else {
|
|
8723
|
+
* console.log('Real-time features disabled');
|
|
8724
|
+
* }
|
|
9168
8725
|
* ```
|
|
9169
8726
|
*/
|
|
9170
|
-
|
|
8727
|
+
isWebSocketConnected(): boolean;
|
|
9171
8728
|
/**
|
|
9172
|
-
*
|
|
9173
|
-
*
|
|
9174
|
-
* Executes a swap transaction with slippage protection. Requires a signer wallet.
|
|
9175
|
-
* Use quote methods first to get expected output amounts.
|
|
8729
|
+
* Subscribe to WebSocket events on a specific channel
|
|
9176
8730
|
*
|
|
9177
|
-
*
|
|
8731
|
+
* Allows custom subscription to WebSocket events. Returns a cleanup function
|
|
8732
|
+
* that removes the listener when called.
|
|
9178
8733
|
*
|
|
9179
|
-
*
|
|
8734
|
+
* @typeParam T - Type of event data
|
|
8735
|
+
* @param channel - Event channel name
|
|
8736
|
+
* @param callback - Function called when event is received
|
|
8737
|
+
* @returns Cleanup function to unsubscribe from the event
|
|
9180
8738
|
*
|
|
9181
|
-
*
|
|
9182
|
-
*
|
|
8739
|
+
* @category WebSocket
|
|
8740
|
+
* @since 3.29.0
|
|
9183
8741
|
*
|
|
8742
|
+
* @example Subscribe to custom channel
|
|
9184
8743
|
* ```typescript
|
|
9185
|
-
*
|
|
9186
|
-
*
|
|
9187
|
-
*
|
|
9188
|
-
*
|
|
9189
|
-
*
|
|
9190
|
-
*
|
|
9191
|
-
* // ❌ WRONG - Simple token names don't work here
|
|
9192
|
-
* await sdk.executeSwap('anime', 'GALA|Unit|none|none', ...); // Error!
|
|
9193
|
-
* ```
|
|
9194
|
-
*
|
|
9195
|
-
* **Common TokenClassKeys:**
|
|
9196
|
-
* - GALA: `'GALA|Unit|none|none'`
|
|
9197
|
-
* - GUSDC: `'GUSDC|Unit|none|eth:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'`
|
|
9198
|
-
* - Graduated token: Get from pool's `tokenClassKey` field
|
|
9199
|
-
*
|
|
9200
|
-
* @category DEX Trading
|
|
9201
|
-
* @param fromToken Source token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9202
|
-
* @param toToken Destination token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9203
|
-
* @param inputAmount Amount of source token to spend
|
|
9204
|
-
* @param estimatedOutput Expected output amount from quote
|
|
9205
|
-
* @param feeTier Fee tier for the swap (500, 3000, or 10000 basis points)
|
|
9206
|
-
* @param slippageTolerance Maximum acceptable slippage (default: 0.01 = 1%)
|
|
9207
|
-
* @returns Promise<ExecuteSwapResult> Swap result with transaction details
|
|
9208
|
-
* @since 3.23.0
|
|
9209
|
-
* @throws ValidationError if wallet is not configured or if bare symbols are provided
|
|
9210
|
-
*
|
|
9211
|
-
* @example Execute swap
|
|
9212
|
-
* ```typescript
|
|
9213
|
-
* // 1. Get quote first
|
|
9214
|
-
* const quote = await sdk.getSwapQuoteExactInput('GALA|Unit|none|none', 'GUSDC|Unit|none|none', '100');
|
|
9215
|
-
*
|
|
9216
|
-
* // 2. Execute swap with quoted amounts
|
|
9217
|
-
* const result = await sdk.executeSwap(
|
|
9218
|
-
* 'GALA|Unit|none|none',
|
|
9219
|
-
* 'GUSDC|Unit|none|none',
|
|
9220
|
-
* '100',
|
|
9221
|
-
* quote.estimatedOutput,
|
|
9222
|
-
* quote.feeTier,
|
|
9223
|
-
* 0.01 // 1% slippage tolerance
|
|
9224
|
-
* );
|
|
9225
|
-
*
|
|
9226
|
-
* console.log(`Swapped successfully!`);
|
|
9227
|
-
* console.log(`Transaction: ${result.transactionId}`);
|
|
9228
|
-
* ```
|
|
9229
|
-
*/
|
|
9230
|
-
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<ExecuteSwapResult>;
|
|
9231
|
-
/**
|
|
9232
|
-
* Get user's token assets/balances from GalaSwap
|
|
9233
|
-
*
|
|
9234
|
-
* Retrieves all token balances for a wallet address.
|
|
9235
|
-
*
|
|
9236
|
-
* @category DEX Trading
|
|
9237
|
-
* @param walletAddress User's wallet address
|
|
9238
|
-
* @returns Promise<UserAsset[]> Array of user assets with balances
|
|
9239
|
-
* @since 3.23.0
|
|
9240
|
-
*
|
|
9241
|
-
* @example Get user assets
|
|
9242
|
-
* ```typescript
|
|
9243
|
-
* const assets = await sdk.getSwapUserAssets(sdk.getEthereumAddress());
|
|
9244
|
-
* assets.forEach(asset => {
|
|
9245
|
-
* console.log(`${asset.symbol}: ${asset.balance}`);
|
|
9246
|
-
* });
|
|
9247
|
-
* ```
|
|
9248
|
-
*/
|
|
9249
|
-
getSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
9250
|
-
/**
|
|
9251
|
-
* Get all user assets across all pages (auto-paginated)
|
|
9252
|
-
*
|
|
9253
|
-
* Automatically handles pagination to fetch all assets a user holds.
|
|
9254
|
-
* Optimization: Stops fetching when quantity=0 is encountered (results are ordered by quantity desc).
|
|
9255
|
-
*
|
|
9256
|
-
* @category DEX Trading
|
|
9257
|
-
* @param walletAddress User's wallet address
|
|
9258
|
-
* @returns Promise<UserAsset[]> All user assets with balances > 0 and rich metadata
|
|
9259
|
-
* @since 3.23.0
|
|
9260
|
-
* @since 4.1.0 Now returns rich metadata (image, name, description, verified)
|
|
9261
|
-
*/
|
|
9262
|
-
getAllSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
9263
|
-
/**
|
|
9264
|
-
* Fetch available DEX tokens (token discovery)
|
|
9265
|
-
*
|
|
9266
|
-
* Fetches all tokens available on the DEX without requiring a wallet address.
|
|
9267
|
-
* Use for token discovery, listings, and market analysis.
|
|
9268
|
-
*
|
|
9269
|
-
* @category DEX Trading
|
|
9270
|
-
* @param options Fetch options (search, limit, page)
|
|
9271
|
-
* @returns Promise<AvailableDexTokensResult> Paginated result with token metadata
|
|
9272
|
-
* @since 4.1.0
|
|
9273
|
-
*
|
|
9274
|
-
* @example Fetch first page of available tokens
|
|
9275
|
-
* ```typescript
|
|
9276
|
-
* const result = await sdk.fetchAvailableDexTokens({ limit: 20, page: 1 });
|
|
9277
|
-
* console.log(`Found ${result.count} tokens on DEX`);
|
|
9278
|
-
* result.tokens.forEach(token => {
|
|
9279
|
-
* console.log(`${token.symbol}: ${token.name} (${token.image})`);
|
|
9280
|
-
* });
|
|
9281
|
-
* ```
|
|
9282
|
-
*
|
|
9283
|
-
* @example Search for tokens
|
|
9284
|
-
* ```typescript
|
|
9285
|
-
* const result = await sdk.fetchAvailableDexTokens({ search: 'GALA', limit: 10, page: 1 });
|
|
9286
|
-
* console.log(`Found ${result.count} tokens matching 'GALA'`);
|
|
9287
|
-
* ```
|
|
9288
|
-
*/
|
|
9289
|
-
fetchAvailableDexTokens(options?: FetchAvailableDexTokensOptions): Promise<AvailableDexTokensResult>;
|
|
9290
|
-
/**
|
|
9291
|
-
* Fetch all available DEX tokens (auto-paginated)
|
|
9292
|
-
*
|
|
9293
|
-
* Fetches ALL tokens available on the DEX with automatic pagination.
|
|
9294
|
-
* Use for complete token listings and comprehensive market analysis.
|
|
9295
|
-
*
|
|
9296
|
-
* @category DEX Trading
|
|
9297
|
-
* @param options Fetch options (search filter)
|
|
9298
|
-
* @returns Promise<DexToken[]> All available tokens on the DEX
|
|
9299
|
-
* @since 4.1.0
|
|
9300
|
-
*
|
|
9301
|
-
* @example Fetch all tokens
|
|
9302
|
-
* ```typescript
|
|
9303
|
-
* const tokens = await sdk.fetchAllAvailableDexTokens();
|
|
9304
|
-
* console.log(`Total tokens on DEX: ${tokens.length}`);
|
|
9305
|
-
*
|
|
9306
|
-
* // Filter verified tokens
|
|
9307
|
-
* const verified = tokens.filter(t => t.verified);
|
|
9308
|
-
* console.log(`Verified tokens: ${verified.length}`);
|
|
9309
|
-
* ```
|
|
9310
|
-
*
|
|
9311
|
-
* @example Search all tokens
|
|
9312
|
-
* ```typescript
|
|
9313
|
-
* const tokens = await sdk.fetchAllAvailableDexTokens({ search: 'SDK' });
|
|
9314
|
-
* tokens.forEach(token => console.log(`${token.symbol}: ${token.description}`));
|
|
9315
|
-
* ```
|
|
9316
|
-
*/
|
|
9317
|
-
fetchAllAvailableDexTokens(options?: Omit<FetchAvailableDexTokensOptions, 'page' | 'limit'>): Promise<DexToken[]>;
|
|
9318
|
-
/**
|
|
9319
|
-
* Get pool information for a token pair
|
|
9320
|
-
*
|
|
9321
|
-
* Retrieves liquidity and fee tier information for a trading pair.
|
|
9322
|
-
*
|
|
9323
|
-
* @category DEX Trading
|
|
9324
|
-
* @param tokenA First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9325
|
-
* @param tokenB Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9326
|
-
* @returns Promise<PoolInfo> Pool information with liquidity and available fee tiers
|
|
9327
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9328
|
-
* @since 3.23.0
|
|
9329
|
-
*
|
|
9330
|
-
* @example Get pool info
|
|
9331
|
-
* ```typescript
|
|
9332
|
-
* const poolInfo = await sdk.getSwapPoolInfo('GALA|Unit|none|none', 'GUSDC|Unit|none|none');
|
|
9333
|
-
* console.log(`Liquidity: ${poolInfo.liquidity}`);
|
|
9334
|
-
* console.log(`Available fees: ${poolInfo.feeTiers.join(', ')} bps`);
|
|
9335
|
-
* console.log(`Active swaps: ${poolInfo.swapCount}`);
|
|
9336
|
-
* ```
|
|
9337
|
-
*/
|
|
9338
|
-
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<PoolInfo>;
|
|
9339
|
-
/**
|
|
9340
|
-
* Get current market price for a DEX pool
|
|
9341
|
-
*
|
|
9342
|
-
* Fetches the current pool state (sqrtPrice and tick) from the GalaChain Gateway
|
|
9343
|
-
* and calculates the token1/token0 price ratio. This is useful for determining
|
|
9344
|
-
* the current price and whether a liquidity position is in-range.
|
|
9345
|
-
*
|
|
9346
|
-
* @category DEX Market Data
|
|
9347
|
-
* @since 3.31.0
|
|
9348
|
-
*
|
|
9349
|
-
* @param token0 - First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9350
|
-
* @param token1 - Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9351
|
-
* @param fee - Fee tier in basis points (500, 3000, or 10000)
|
|
9352
|
-
* @returns PoolPriceData with current price, sqrtPrice, tick, and liquidity
|
|
9353
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9354
|
-
*
|
|
9355
|
-
* @example Get current pool price
|
|
9356
|
-
* ```typescript
|
|
9357
|
-
* const priceData = await sdk.getSwapPoolPrice('GALA|Unit|none|none', 'GUSDC|Unit|none|none', 3000);
|
|
9358
|
-
* console.log(`Current price: ${priceData.price} GUSDC per GALA`);
|
|
9359
|
-
* console.log(`Current tick: ${priceData.tick}`);
|
|
9360
|
-
* console.log(`Pool liquidity: ${priceData.liquidity}`);
|
|
9361
|
-
*
|
|
9362
|
-
* // Determine if position is in-range
|
|
9363
|
-
* const position = await sdk.getSwapLiquidityPositionById(ownerAddress, positionId);
|
|
9364
|
-
* const inRange = priceData.tick >= position.tickLower && priceData.tick <= position.tickUpper;
|
|
9365
|
-
* console.log(`Position in-range: ${inRange}`);
|
|
9366
|
-
* ```
|
|
9367
|
-
*/
|
|
9368
|
-
getSwapPoolPrice(token0: string, token1: string, fee: number): Promise<PoolPriceData>;
|
|
9369
|
-
/**
|
|
9370
|
-
* Get liquidity positions for a wallet (single page)
|
|
9371
|
-
*
|
|
9372
|
-
* Retrieves a single page of liquidity positions for the specified wallet address.
|
|
9373
|
-
* Includes position details like token pair, liquidity amount, and accumulated fees.
|
|
9374
|
-
* Optionally fetches real-time pricing for each position's pool.
|
|
9375
|
-
*
|
|
9376
|
-
* For complete enumeration across all pages, use getAllSwapUserLiquidityPositions().
|
|
9377
|
-
*
|
|
9378
|
-
* @category DEX Liquidity Management
|
|
9379
|
-
* @since 3.25.0
|
|
9380
|
-
*
|
|
9381
|
-
* @param ownerAddress - Wallet address (eth|0x... format or standard 0x...)
|
|
9382
|
-
* @param pageSize - Optional page size for positions to return
|
|
9383
|
-
* @param bookmarkOrOptions - Optional pagination bookmark (deprecated) or options object
|
|
9384
|
-
* @param options - Optional options object with pricing configuration
|
|
9385
|
-
* @returns Object with items array (liquidity positions), optional nextBookmark for pagination, and optional prices map
|
|
9386
|
-
*
|
|
9387
|
-
* @example Get single page of positions
|
|
9388
|
-
* ```typescript
|
|
9389
|
-
* const result = await sdk.getSwapUserLiquidityPositions('eth|0x123...');
|
|
9390
|
-
* console.log(`Positions on page: ${result.items.length}`);
|
|
9391
|
-
* result.items.forEach(pos => {
|
|
9392
|
-
* console.log(`Position ${pos.positionId}:`);
|
|
9393
|
-
* console.log(` Tokens: ${pos.token0} / ${pos.token1}`);
|
|
9394
|
-
* console.log(` Liquidity: ${pos.liquidity}`);
|
|
9395
|
-
* console.log(` Fee0: ${pos.feeAmount0}, Fee1: ${pos.feeAmount1}`);
|
|
9396
|
-
* });
|
|
9397
|
-
*
|
|
9398
|
-
* // Fetch next page if bookmark available
|
|
9399
|
-
* if (result.nextBookmark) {
|
|
9400
|
-
* const nextPage = await sdk.getSwapUserLiquidityPositions('eth|0x123...', undefined, result.nextBookmark);
|
|
9401
|
-
* }
|
|
9402
|
-
* ```
|
|
9403
|
-
*
|
|
9404
|
-
* @example Get positions with real-time pricing (5 concurrent requests)
|
|
9405
|
-
* ```typescript
|
|
9406
|
-
* const result = await sdk.getSwapUserLiquidityPositions('eth|0x123...', 10, { withPrices: true });
|
|
9407
|
-
* result.items.forEach(pos => {
|
|
9408
|
-
* const poolKey = `${pos.token0}|${pos.token1}|${pos.feeTier}`;
|
|
9409
|
-
* const price = result.prices?.get(poolKey);
|
|
9410
|
-
* if (price) {
|
|
9411
|
-
* console.log(`Current price: 1 ${pos.token0} = ${price.currentPrice} ${pos.token1}`);
|
|
9412
|
-
* }
|
|
9413
|
-
* });
|
|
9414
|
-
* ```
|
|
9415
|
-
*/
|
|
9416
|
-
getSwapUserLiquidityPositions(ownerAddress: string, limit?: number, bookmarkOrOptions?: string | GetLiquidityPositionsOptions, options?: GetLiquidityPositionsOptions): Promise<GetLiquidityPositionsResult>;
|
|
9417
|
-
/**
|
|
9418
|
-
* Get ALL user liquidity positions with automatic pagination
|
|
9419
|
-
*
|
|
9420
|
-
* Fetches all liquidity positions for a wallet across all pages automatically.
|
|
9421
|
-
* This is the recommended method for complete position enumeration.
|
|
9422
|
-
* Optionally fetches real-time pricing for each position's pool.
|
|
9423
|
-
*
|
|
9424
|
-
* @category DEX Liquidity Management
|
|
9425
|
-
* @since 3.31.3
|
|
9426
|
-
*
|
|
9427
|
-
* @param ownerAddress - User's wallet address
|
|
9428
|
-
* @param options - Optional options object with pricing configuration
|
|
9429
|
-
* @returns Array of all liquidity positions (auto-paginated) or result object with positions and pricing
|
|
9430
|
-
*
|
|
9431
|
-
* @example Get all positions automatically
|
|
9432
|
-
* ```typescript
|
|
9433
|
-
* const allPositions = await sdk.getAllSwapUserLiquidityPositions('eth|0x123...');
|
|
9434
|
-
* console.log(`Total positions: ${allPositions.length}`);
|
|
9435
|
-
* allPositions.forEach(pos => {
|
|
9436
|
-
* console.log(`Position ${pos.positionId}:`);
|
|
9437
|
-
* console.log(` Tokens: ${pos.token0} / ${pos.token1}`);
|
|
9438
|
-
* console.log(` Liquidity: ${pos.liquidity}`);
|
|
9439
|
-
* console.log(` Fees: ${pos.feeAmount0} ${pos.token0}, ${pos.feeAmount1} ${pos.token1}`);
|
|
9440
|
-
* });
|
|
9441
|
-
* ```
|
|
9442
|
-
*
|
|
9443
|
-
* @example Get all positions with real-time pricing (default 5 concurrent requests)
|
|
9444
|
-
* ```typescript
|
|
9445
|
-
* const result = await sdk.getAllSwapUserLiquidityPositions('eth|0x123...', { withPrices: true });
|
|
9446
|
-
* console.log(`Total positions: ${result.items.length}`);
|
|
9447
|
-
* result.items.forEach(pos => {
|
|
9448
|
-
* const poolKey = `${pos.token0}|${pos.token1}|${pos.feeTier}`;
|
|
9449
|
-
* const price = result.prices?.get(poolKey);
|
|
9450
|
-
* if (price) {
|
|
9451
|
-
* console.log(`Current price: 1 ${pos.token0} = ${price.currentPrice} ${pos.token1}`);
|
|
9452
|
-
* console.log(`Price Impact: ${price.priceImpact}%`);
|
|
9453
|
-
* }
|
|
9454
|
-
* });
|
|
9455
|
-
* ```
|
|
9456
|
-
*
|
|
9457
|
-
* @example Get all positions with custom concurrency (10 concurrent pricing requests)
|
|
9458
|
-
* ```typescript
|
|
9459
|
-
* const result = await sdk.getAllSwapUserLiquidityPositions('eth|0x123...', {
|
|
9460
|
-
* withPrices: true,
|
|
9461
|
-
* pricingConcurrency: 10 // Speed up pricing with more concurrent requests
|
|
9462
|
-
* });
|
|
9463
|
-
* ```
|
|
9464
|
-
*/
|
|
9465
|
-
getAllSwapUserLiquidityPositions(ownerAddress: string, options?: GetLiquidityPositionsOptions): Promise<GSwapPosition[] | GetLiquidityPositionsResult>;
|
|
9466
|
-
/**
|
|
9467
|
-
* Get specific liquidity position by token pair
|
|
9468
|
-
*
|
|
9469
|
-
* Retrieves a specific liquidity position identified by the owner, token pair, and price range.
|
|
9470
|
-
*
|
|
9471
|
-
* @category DEX Liquidity Management
|
|
9472
|
-
* @since 3.25.0
|
|
9473
|
-
*
|
|
9474
|
-
* @param ownerAddress - Wallet address
|
|
9475
|
-
* @param position - Position specifier:
|
|
9476
|
-
* - token0: First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9477
|
-
* - token1: Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9478
|
-
* - fee: Fee tier (500, 3000, or 10000 basis points)
|
|
9479
|
-
* - tickLower/tickUpper: Tick boundaries
|
|
9480
|
-
* @returns Liquidity position details or undefined if not found
|
|
9481
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9482
|
-
*
|
|
9483
|
-
* @example Get position by token pair
|
|
9484
|
-
* ```typescript
|
|
9485
|
-
* const position = await sdk.getSwapLiquidityPosition(
|
|
9486
|
-
* 'eth|0x123...',
|
|
9487
|
-
* {
|
|
9488
|
-
* token0: 'GALA|Unit|none|none',
|
|
9489
|
-
* token1: 'GUSDC|Unit|none|none',
|
|
9490
|
-
* fee: 3000,
|
|
9491
|
-
* tickLower: -60,
|
|
9492
|
-
* tickUpper: 60
|
|
9493
|
-
* }
|
|
9494
|
-
* );
|
|
9495
|
-
* ```
|
|
9496
|
-
*/
|
|
9497
|
-
getSwapLiquidityPosition(ownerAddress: string, position: {
|
|
9498
|
-
token0: string;
|
|
9499
|
-
token1: string;
|
|
9500
|
-
fee: number;
|
|
9501
|
-
tickLower: number;
|
|
9502
|
-
tickUpper: number;
|
|
9503
|
-
}): Promise<GSwapPosition>;
|
|
9504
|
-
/**
|
|
9505
|
-
* Get liquidity position by position ID
|
|
9506
|
-
*
|
|
9507
|
-
* Retrieves a specific liquidity position by its unique identifier.
|
|
9508
|
-
* Optionally accepts token information for more efficient compound key lookups.
|
|
9509
|
-
*
|
|
9510
|
-
* @category DEX Liquidity Management
|
|
9511
|
-
* @since 3.25.0
|
|
9512
|
-
*
|
|
9513
|
-
* @param ownerAddress - Wallet address
|
|
9514
|
-
* @param positionId - Unique position identifier
|
|
9515
|
-
* @param token0 - Optional token0 for compound key lookup (improves lookup reliability)
|
|
9516
|
-
* @param token1 - Optional token1 for compound key lookup (improves lookup reliability)
|
|
9517
|
-
* @param feeTier - Optional fee tier for compound key lookup (improves lookup reliability)
|
|
9518
|
-
* @param tickLower - Optional lower tick boundary for compound key lookup
|
|
9519
|
-
* @param tickUpper - Optional upper tick boundary for compound key lookup
|
|
9520
|
-
* @returns Liquidity position details
|
|
9521
|
-
*
|
|
9522
|
-
* @example Get position by ID with token information
|
|
9523
|
-
* ```typescript
|
|
9524
|
-
* const position = await sdk.getSwapLiquidityPositionById(
|
|
9525
|
-
* 'eth|0x123...',
|
|
9526
|
-
* 'pos-abc123',
|
|
9527
|
-
* 'GALA',
|
|
9528
|
-
* 'GUSDC',
|
|
9529
|
-
* 3000,
|
|
9530
|
-
* -1080, // tickLower
|
|
9531
|
-
* 900 // tickUpper
|
|
9532
|
-
* );
|
|
9533
|
-
* ```
|
|
9534
|
-
*/
|
|
9535
|
-
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string, unknown>, token1?: string | Record<string, unknown>, feeTier?: number, tickLower?: number, tickUpper?: number): Promise<GSwapPosition>;
|
|
9536
|
-
/**
|
|
9537
|
-
* Fetch a single liquidity position using ONLY the compound key (most efficient)
|
|
9538
|
-
*
|
|
9539
|
-
* Makes a direct HTTP call to GalaChain Gateway using token0, token1, fee, and tick range.
|
|
9540
|
-
* This is the most efficient method when you already have all position parameters.
|
|
9541
|
-
*
|
|
9542
|
-
* @param params - Position lookup parameters (all required):
|
|
9543
|
-
* - token0: First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9544
|
-
* - token1: Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9545
|
-
* - fee: Fee tier (500, 3000, or 10000 basis points)
|
|
9546
|
-
* - tickLower: Lower tick boundary
|
|
9547
|
-
* - tickUpper: Upper tick boundary
|
|
9548
|
-
* - owner: Wallet address (e.g., "eth|0x...")
|
|
9549
|
-
* @returns Detailed liquidity position information
|
|
9550
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9551
|
-
*
|
|
9552
|
-
* @example
|
|
9553
|
-
* ```typescript
|
|
9554
|
-
* const position = await sdk.fetchSwapPositionDirect({
|
|
9555
|
-
* token0: 'GALA|Unit|none|none',
|
|
9556
|
-
* token1: 'GUSDC|Unit|none|none',
|
|
9557
|
-
* fee: 3000,
|
|
9558
|
-
* tickLower: -26440,
|
|
9559
|
-
* tickUpper: -22390,
|
|
9560
|
-
* owner: 'eth|A278F228BB9Ea280C537763974FF1c1d427c85bb'
|
|
9561
|
-
* });
|
|
9562
|
-
* ```
|
|
9563
|
-
*
|
|
9564
|
-
* @category DEX Liquidity Queries
|
|
9565
|
-
* @since 3.35.0
|
|
9566
|
-
*
|
|
9567
|
-
* @remarks
|
|
9568
|
-
* - Single direct HTTP call (most efficient path)
|
|
9569
|
-
* - Does NOT require or accept positionId
|
|
9570
|
-
* - No GSwap SDK dependency
|
|
9571
|
-
* - All parameters are required
|
|
9572
|
-
*/
|
|
9573
|
-
fetchSwapPositionDirect(params: {
|
|
9574
|
-
token0: string;
|
|
9575
|
-
token1: string;
|
|
9576
|
-
fee: number;
|
|
9577
|
-
tickLower: number;
|
|
9578
|
-
tickUpper: number;
|
|
9579
|
-
owner: string;
|
|
9580
|
-
}): Promise<GSwapPosition>;
|
|
9581
|
-
/**
|
|
9582
|
-
* Estimate tokens to receive when removing liquidity
|
|
9583
|
-
*
|
|
9584
|
-
* Previews the amounts of tokens that would be received
|
|
9585
|
-
* if liquidity were removed at current market prices.
|
|
9586
|
-
*
|
|
9587
|
-
* @category DEX Liquidity Management
|
|
9588
|
-
* @since 3.25.0
|
|
9589
|
-
*
|
|
9590
|
-
* @param args - Removal estimation parameters:
|
|
9591
|
-
* - token0: First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9592
|
-
* - token1: Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9593
|
-
* - fee: Fee tier (500, 3000, or 10000 basis points)
|
|
9594
|
-
* - liquidity: Liquidity amount to remove
|
|
9595
|
-
* - tickLower: Lower tick boundary
|
|
9596
|
-
* - tickUpper: Upper tick boundary
|
|
9597
|
-
* - owner: Wallet address (e.g., "eth|0x...")
|
|
9598
|
-
* @returns Estimated token amounts
|
|
9599
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9600
|
-
*
|
|
9601
|
-
* @example Estimate liquidity removal
|
|
9602
|
-
* ```typescript
|
|
9603
|
-
* const estimate = await sdk.getSwapEstimateRemoveLiquidity({
|
|
9604
|
-
* token0: 'GALA|Unit|none|none',
|
|
9605
|
-
* token1: 'GUSDC|Unit|none|none',
|
|
9606
|
-
* fee: 3000,
|
|
9607
|
-
* liquidity: '1000000',
|
|
9608
|
-
* tickLower: -60,
|
|
9609
|
-
* tickUpper: 60,
|
|
9610
|
-
* owner: 'eth|0x1234...'
|
|
9611
|
-
* });
|
|
9612
|
-
* console.log(`Would receive: ${estimate.amount0} + ${estimate.amount1}`);
|
|
9613
|
-
* ```
|
|
9614
|
-
*/
|
|
9615
|
-
getSwapEstimateRemoveLiquidity(args: {
|
|
9616
|
-
token0: string;
|
|
9617
|
-
token1: string;
|
|
9618
|
-
fee: number;
|
|
9619
|
-
liquidity: string;
|
|
9620
|
-
tickLower: number;
|
|
9621
|
-
tickUpper: number;
|
|
9622
|
-
owner: string;
|
|
9623
|
-
}): Promise<GSwapEstimateRemoveLiquidityResult>;
|
|
9624
|
-
/**
|
|
9625
|
-
* Add liquidity using price range
|
|
9626
|
-
*
|
|
9627
|
-
* Creates a new liquidity position by specifying the desired price range.
|
|
9628
|
-
* The SDK automatically calculates the appropriate tick boundaries.
|
|
9629
|
-
* Recommended for most users.
|
|
9630
|
-
*
|
|
9631
|
-
* ## Token Format (IMPORTANT)
|
|
9632
|
-
*
|
|
9633
|
-
* **Use full `tokenClassKey` format** for token0 and token1.
|
|
9634
|
-
*
|
|
9635
|
-
* ```typescript
|
|
9636
|
-
* // ✅ CORRECT - Full tokenClassKey format
|
|
9637
|
-
* { token0: 'GALA|Unit|none|none', token1: 'GUSDC|Unit|none|eth:0xa0b...' }
|
|
9638
|
-
*
|
|
9639
|
-
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9640
|
-
* { token0: 'GALA', token1: 'GUSDC' } // Error!
|
|
9641
|
-
* ```
|
|
9642
|
-
*
|
|
9643
|
-
* @category DEX Liquidity Management
|
|
9644
|
-
* @since 3.25.0
|
|
9645
|
-
*
|
|
9646
|
-
* @param args - Liquidity parameters with price range:
|
|
9647
|
-
* - token0: First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9648
|
-
* - token1: Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9649
|
-
* - fee: Fee tier (500, 3000, or 10000 basis points)
|
|
9650
|
-
* - minPrice/maxPrice: Price range boundaries
|
|
9651
|
-
* - amount0Desired/amount1Desired: Token amounts to provide
|
|
9652
|
-
* @returns Transaction result with position ID
|
|
9653
|
-
* @throws {TypeError} If required parameters are missing or of wrong type
|
|
9654
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9655
|
-
*
|
|
9656
|
-
* @example Add liquidity with price range
|
|
9657
|
-
* ```typescript
|
|
9658
|
-
* const result = await sdk.addSwapLiquidityByPrice({
|
|
9659
|
-
* token0: 'GALA|Unit|none|none',
|
|
9660
|
-
* token1: 'GUSDC|Unit|none|none',
|
|
9661
|
-
* fee: 3000,
|
|
9662
|
-
* minPrice: '0.90',
|
|
9663
|
-
* maxPrice: '1.10',
|
|
9664
|
-
* amount0Desired: '1000',
|
|
9665
|
-
* amount1Desired: '1000',
|
|
9666
|
-
* amount0Min: '900',
|
|
9667
|
-
* amount1Min: '900'
|
|
9668
|
-
* });
|
|
9669
|
-
* console.log(`Position created: ${result.positionId}`);
|
|
9670
|
-
* ```
|
|
9671
|
-
*/
|
|
9672
|
-
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<GSwapAddLiquidityResult & {
|
|
9673
|
-
timestamp?: Date;
|
|
9674
|
-
wait?: (timeoutMs?: number) => Promise<void>;
|
|
9675
|
-
}>;
|
|
9676
|
-
/**
|
|
9677
|
-
* Add liquidity using tick range
|
|
9678
|
-
*
|
|
9679
|
-
* Creates a new liquidity position by specifying exact tick boundaries.
|
|
9680
|
-
* For advanced users who need precise control over the price range.
|
|
9681
|
-
*
|
|
9682
|
-
* @category DEX Liquidity Management
|
|
9683
|
-
* @since 3.25.0
|
|
9684
|
-
*
|
|
9685
|
-
* @param args - Liquidity parameters with tick range:
|
|
9686
|
-
* - token0: First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9687
|
-
* - token1: Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9688
|
-
* - feeTier: Fee tier (500, 3000, or 10000 basis points)
|
|
9689
|
-
* - tickLower/tickUpper: Exact tick boundaries
|
|
9690
|
-
* - amount0Desired/amount1Desired: Token amounts to provide
|
|
9691
|
-
* @returns Transaction result with position ID
|
|
9692
|
-
* @throws {ValidationError} If wallet is not configured or if bare symbols are provided
|
|
9693
|
-
* @throws {TypeError} If required parameters are missing or of wrong type
|
|
9694
|
-
*
|
|
9695
|
-
* @example Add liquidity with tick range
|
|
9696
|
-
* ```typescript
|
|
9697
|
-
* const result = await sdk.addSwapLiquidityByTicks({
|
|
9698
|
-
* token0: 'GALA|Unit|none|none',
|
|
9699
|
-
* token1: 'GUSDC|Unit|none|none',
|
|
9700
|
-
* feeTier: 3000,
|
|
9701
|
-
* tickLower: -60,
|
|
9702
|
-
* tickUpper: 60,
|
|
9703
|
-
* amount0Desired: '1000',
|
|
9704
|
-
* amount1Desired: '1000'
|
|
9705
|
-
* });
|
|
9706
|
-
* console.log(`Position created: ${result.positionId}`);
|
|
9707
|
-
* ```
|
|
9708
|
-
*/
|
|
9709
|
-
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<GSwapAddLiquidityResult & {
|
|
9710
|
-
timestamp?: Date;
|
|
9711
|
-
wait?: (timeoutMs?: number) => Promise<void>;
|
|
9712
|
-
}>;
|
|
9713
|
-
/**
|
|
9714
|
-
* Remove liquidity from a position
|
|
9715
|
-
*
|
|
9716
|
-
* Withdraws liquidity and underlying tokens from an open position.
|
|
9717
|
-
* Can be used to close the position entirely or reduce exposure.
|
|
9718
|
-
*
|
|
9719
|
-
* **Important:** This method requires full pool information (token0, token1, fee, tickLower, tickUpper)
|
|
9720
|
-
* to resolve token class keys and construct the transaction. You must either:
|
|
9721
|
-
* 1. Provide these directly if you know the pool details, or
|
|
9722
|
-
* 2. Fetch them using `getSwapLiquidityPositionById()` if you only have the position ID
|
|
9723
|
-
*
|
|
9724
|
-
* @category DEX Liquidity Management
|
|
9725
|
-
* @since 3.25.0
|
|
9726
|
-
*
|
|
9727
|
-
* @param args - Removal parameters:
|
|
9728
|
-
* - token0: First token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
9729
|
-
* - token1: Second token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
9730
|
-
* - fee: Fee tier (500, 3000, or 10000 basis points)
|
|
9731
|
-
* - tickLower/tickUpper: Tick boundaries
|
|
9732
|
-
* - liquidity: Liquidity amount to remove
|
|
9733
|
-
* @returns Transaction result confirming removal
|
|
9734
|
-
* @throws {TypeError} If required pool parameters are missing
|
|
9735
|
-
* @throws ValidationError if bare symbols are provided (use full tokenId format)
|
|
9736
|
-
*
|
|
9737
|
-
* @example Remove liquidity with known pool details
|
|
9738
|
-
* ```typescript
|
|
9739
|
-
* const result = await sdk.removeSwapLiquidity({
|
|
9740
|
-
* token0: 'GALA|Unit|none|none',
|
|
9741
|
-
* token1: 'GUSDC|Unit|none|none',
|
|
9742
|
-
* fee: 3000,
|
|
9743
|
-
* tickLower: -10000,
|
|
9744
|
-
* tickUpper: 10000,
|
|
9745
|
-
* liquidity: '1000000000000000000',
|
|
9746
|
-
* amount0Min: '0',
|
|
9747
|
-
* amount1Min: '0'
|
|
9748
|
-
* });
|
|
9749
|
-
* ```
|
|
9750
|
-
*
|
|
9751
|
-
* @example Remove liquidity by fetching position first
|
|
9752
|
-
* ```typescript
|
|
9753
|
-
* const position = await sdk.getSwapLiquidityPositionById(walletAddress, positionId);
|
|
9754
|
-
* const result = await sdk.removeSwapLiquidity({
|
|
9755
|
-
* token0: position.token0, // Already in pipe-delimited format from API
|
|
9756
|
-
* token1: position.token1,
|
|
9757
|
-
* fee: position.feeTier,
|
|
9758
|
-
* tickLower: position.tickLower,
|
|
9759
|
-
* tickUpper: position.tickUpper,
|
|
9760
|
-
* liquidity: position.liquidity
|
|
9761
|
-
* });
|
|
9762
|
-
* ```
|
|
9763
|
-
*/
|
|
9764
|
-
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<GSwapAddLiquidityResult>;
|
|
9765
|
-
/**
|
|
9766
|
-
* Collect accumulated position fees
|
|
9767
|
-
*
|
|
9768
|
-
* Harvests accumulated trading fees from a liquidity position without
|
|
9769
|
-
* modifying the position itself.
|
|
9770
|
-
*
|
|
9771
|
-
* @category DEX Liquidity Management
|
|
9772
|
-
* @since 3.25.0
|
|
9773
|
-
*
|
|
9774
|
-
* @param args - Collection parameters with position details
|
|
9775
|
-
* @returns Transaction result with collected amounts
|
|
9776
|
-
* @throws {ValidationError} If wallet is not configured
|
|
9777
|
-
* @throws {TypeError} If required parameters are missing or of wrong type
|
|
9778
|
-
*
|
|
9779
|
-
* @example Collect fees
|
|
9780
|
-
* ```typescript
|
|
9781
|
-
* const result = await sdk.collectSwapPositionFees({
|
|
9782
|
-
* ownerAddress: 'eth|0x123...',
|
|
9783
|
-
* positionId: 'pos-abc123'
|
|
9784
|
-
* });
|
|
9785
|
-
* console.log(`Collected: ${result.amount0} token0, ${result.amount1} token1`);
|
|
9786
|
-
* ```
|
|
9787
|
-
*/
|
|
9788
|
-
collectSwapPositionFees(args: CollectFeesArgs): Promise<GSwapAddLiquidityResult>;
|
|
9789
|
-
/**
|
|
9790
|
-
* Connect to WebSocket for real-time events
|
|
9791
|
-
*
|
|
9792
|
-
* Establishes a WebSocket connection for receiving real-time transaction status updates.
|
|
9793
|
-
* This method returns immediately - connection happens asynchronously.
|
|
9794
|
-
*
|
|
9795
|
-
* @category WebSocket
|
|
9796
|
-
* @since 3.29.0
|
|
9797
|
-
*
|
|
9798
|
-
* @example Connect WebSocket
|
|
9799
|
-
* ```typescript
|
|
9800
|
-
* const sdk = createLaunchpadSDK({ wallet });
|
|
9801
|
-
* sdk.connectWebSocket();
|
|
9802
|
-
* ```
|
|
9803
|
-
*
|
|
9804
|
-
* @example Pre-connect before transactions
|
|
9805
|
-
* ```typescript
|
|
9806
|
-
* const sdk = createLaunchpadSDK({ wallet });
|
|
9807
|
-
* sdk.connectWebSocket(); // Connect first
|
|
9808
|
-
*
|
|
9809
|
-
* const result = await sdk.buy({ tokenName: 'anime', amount: '10' });
|
|
9810
|
-
* // WebSocket ready to monitor transaction immediately
|
|
9811
|
-
* ```
|
|
9812
|
-
*/
|
|
9813
|
-
connectWebSocket(): void;
|
|
9814
|
-
/**
|
|
9815
|
-
* Disconnect from WebSocket
|
|
9816
|
-
*
|
|
9817
|
-
* Closes the WebSocket connection and cleans up all listeners.
|
|
9818
|
-
* Safe to call even if not connected.
|
|
9819
|
-
*
|
|
9820
|
-
* @category WebSocket
|
|
9821
|
-
* @since 3.29.0
|
|
9822
|
-
*
|
|
9823
|
-
* @example Disconnect WebSocket
|
|
9824
|
-
* ```typescript
|
|
9825
|
-
* sdk.disconnectWebSocket();
|
|
9826
|
-
* ```
|
|
9827
|
-
*/
|
|
9828
|
-
disconnectWebSocket(): void;
|
|
9829
|
-
/**
|
|
9830
|
-
* Check if WebSocket is connected
|
|
9831
|
-
*
|
|
9832
|
-
* @returns true if WebSocket is currently connected, false otherwise
|
|
9833
|
-
*
|
|
9834
|
-
* @category WebSocket
|
|
9835
|
-
* @since 3.29.0
|
|
9836
|
-
*
|
|
9837
|
-
* @example Check connection status
|
|
9838
|
-
* ```typescript
|
|
9839
|
-
* if (sdk.isWebSocketConnected()) {
|
|
9840
|
-
* console.log('Real-time features enabled');
|
|
9841
|
-
* } else {
|
|
9842
|
-
* console.log('Real-time features disabled');
|
|
9843
|
-
* }
|
|
9844
|
-
* ```
|
|
9845
|
-
*/
|
|
9846
|
-
isWebSocketConnected(): boolean;
|
|
9847
|
-
/**
|
|
9848
|
-
* Subscribe to WebSocket events on a specific channel
|
|
9849
|
-
*
|
|
9850
|
-
* Allows custom subscription to WebSocket events. Returns a cleanup function
|
|
9851
|
-
* that removes the listener when called.
|
|
9852
|
-
*
|
|
9853
|
-
* @typeParam T - Type of event data
|
|
9854
|
-
* @param channel - Event channel name
|
|
9855
|
-
* @param callback - Function called when event is received
|
|
9856
|
-
* @returns Cleanup function to unsubscribe from the event
|
|
9857
|
-
*
|
|
9858
|
-
* @category WebSocket
|
|
9859
|
-
* @since 3.29.0
|
|
9860
|
-
*
|
|
9861
|
-
* @example Subscribe to custom channel
|
|
9862
|
-
* ```typescript
|
|
9863
|
-
* const unsubscribe = sdk.subscribeToEvent<PoolCreatedEvent>(
|
|
9864
|
-
* 'pool:created',
|
|
9865
|
-
* (event) => {
|
|
9866
|
-
* console.log(`New pool: ${event.token0}/${event.token1}`);
|
|
9867
|
-
* }
|
|
9868
|
-
* );
|
|
8744
|
+
* const unsubscribe = sdk.subscribeToEvent<PoolCreatedEvent>(
|
|
8745
|
+
* 'pool:created',
|
|
8746
|
+
* (event) => {
|
|
8747
|
+
* console.log(`New pool: ${event.token0}/${event.token1}`);
|
|
8748
|
+
* }
|
|
8749
|
+
* );
|
|
9869
8750
|
*
|
|
9870
8751
|
* // Later: Stop listening
|
|
9871
8752
|
* unsubscribe();
|
|
@@ -9881,61 +8762,7 @@ export declare class LaunchpadSDK {
|
|
|
9881
8762
|
* cleanup2();
|
|
9882
8763
|
* ```
|
|
9883
8764
|
*/
|
|
9884
|
-
subscribeToEvent<T>(channel: string, callback: (data: T) => void): () => void;
|
|
9885
|
-
/**
|
|
9886
|
-
* Watch for new DEX pool creation events in real-time
|
|
9887
|
-
*
|
|
9888
|
-
* Polls for newly created DEX pools at regular intervals and invokes the callback
|
|
9889
|
-
* for each new pool detected. Automatically deduplicates pools to avoid duplicate callbacks.
|
|
9890
|
-
*
|
|
9891
|
-
* **Memory Management:** This watcher maintains a bounded history of the 1000 most recently
|
|
9892
|
-
* seen pools using LRU (Least Recently Used) cleanup. This prevents unbounded memory growth
|
|
9893
|
-
* even when watching for extended periods.
|
|
9894
|
-
*
|
|
9895
|
-
* @param callback - Called when a new pool is created
|
|
9896
|
-
* @param options - Configuration options for pool watching
|
|
9897
|
-
* @param options.intervalMs - Poll interval in milliseconds (default: 30000 / 30 seconds)
|
|
9898
|
-
* @param options.minTVL - Only notify about pools with TVL >= minTVL (optional, in USD)
|
|
9899
|
-
* @param options.tokens - Only notify about pools containing these token symbols (optional)
|
|
9900
|
-
* @returns Cleanup function to stop watching
|
|
9901
|
-
*
|
|
9902
|
-
* @category Watchers
|
|
9903
|
-
* @since 3.29.0
|
|
9904
|
-
*
|
|
9905
|
-
* @example Watch all new pools
|
|
9906
|
-
* ```typescript
|
|
9907
|
-
* const unsubscribe = sdk.onDexPoolCreation((pool) => {
|
|
9908
|
-
* console.log(`New pool: ${pool.poolName}`);
|
|
9909
|
-
* console.log(`TVL: $${(pool.token0Tvl + pool.token1Tvl) / 2}`);
|
|
9910
|
-
* });
|
|
9911
|
-
*
|
|
9912
|
-
* // Later: stop watching
|
|
9913
|
-
* unsubscribe();
|
|
9914
|
-
* ```
|
|
9915
|
-
*
|
|
9916
|
-
* @example Watch high-value pools only
|
|
9917
|
-
* ```typescript
|
|
9918
|
-
* const unsubscribe = sdk.onDexPoolCreation(
|
|
9919
|
-
* (pool) => {
|
|
9920
|
-
* console.log(`High-value pool: ${pool.poolName}`);
|
|
9921
|
-
* },
|
|
9922
|
-
* { minTVL: 100000 } // Only pools with >$100k TVL
|
|
9923
|
-
* );
|
|
9924
|
-
* ```
|
|
9925
|
-
*
|
|
9926
|
-
* @example Watch specific token pairs
|
|
9927
|
-
* ```typescript
|
|
9928
|
-
* const unsubscribe = sdk.onDexPoolCreation(
|
|
9929
|
-
* (pool) => console.log(`GALA pool: ${pool.poolName}`),
|
|
9930
|
-
* { tokens: ['GALA', 'GUSDC'], intervalMs: 15000 }
|
|
9931
|
-
* );
|
|
9932
|
-
* ```
|
|
9933
|
-
*/
|
|
9934
|
-
onDexPoolCreation(callback: (pool: DexPoolData) => void | Promise<void>, options?: {
|
|
9935
|
-
intervalMs?: number;
|
|
9936
|
-
minTVL?: number;
|
|
9937
|
-
tokens?: string[];
|
|
9938
|
-
}): () => void;
|
|
8765
|
+
subscribeToEvent<T>(channel: string, callback: (data: T) => void): () => void;
|
|
9939
8766
|
/**
|
|
9940
8767
|
* Watch for new launchpad token creation events in real-time
|
|
9941
8768
|
*
|
|
@@ -9980,116 +8807,6 @@ export declare class LaunchpadSDK {
|
|
|
9980
8807
|
}): () => void;
|
|
9981
8808
|
private static readonly TOKEN_CREATION_SOCKET_WAIT_ATTEMPTS;
|
|
9982
8809
|
private static readonly TOKEN_CREATION_SOCKET_POLL_INTERVAL_MS;
|
|
9983
|
-
private static readonly DEX_POOL_SOCKET_WAIT_ATTEMPTS;
|
|
9984
|
-
private static readonly DEX_POOL_SOCKET_POLL_INTERVAL_MS;
|
|
9985
|
-
/**
|
|
9986
|
-
* Normalize fee tier to standard format (500, 3000, or 10000)
|
|
9987
|
-
*
|
|
9988
|
-
* Handles various fee formats: percentage strings ("0.3", "1"), basis points (500, 3000, 10000)
|
|
9989
|
-
*
|
|
9990
|
-
* @param value - Fee value in any format
|
|
9991
|
-
* @returns Normalized fee tier (500, 3000, 10000) or null if invalid
|
|
9992
|
-
* @private
|
|
9993
|
-
*/
|
|
9994
|
-
private normalizeFee;
|
|
9995
|
-
/**
|
|
9996
|
-
* Extract a field from an object with multiple possible key names
|
|
9997
|
-
*
|
|
9998
|
-
* @param obj - Object to search
|
|
9999
|
-
* @param keys - Possible key names to try in order
|
|
10000
|
-
* @returns Value of first matching key or empty string
|
|
10001
|
-
* @private
|
|
10002
|
-
*/
|
|
10003
|
-
private extractField;
|
|
10004
|
-
/**
|
|
10005
|
-
* Check if a string looks like a pool pair format
|
|
10006
|
-
*
|
|
10007
|
-
* Format: "token0/token1/fee" or full format with class keys
|
|
10008
|
-
*
|
|
10009
|
-
* @param value - Value to check
|
|
10010
|
-
* @returns Normalized pool pair string or null
|
|
10011
|
-
* @private
|
|
10012
|
-
*/
|
|
10013
|
-
private looksLikePoolPair;
|
|
10014
|
-
/**
|
|
10015
|
-
* Build pool pair from object with token and fee fields
|
|
10016
|
-
*
|
|
10017
|
-
* Tries multiple field name patterns to extract token0, token1, and fee
|
|
10018
|
-
*
|
|
10019
|
-
* @param obj - Object potentially containing pool data
|
|
10020
|
-
* @returns Pool pair string or null
|
|
10021
|
-
* @private
|
|
10022
|
-
*/
|
|
10023
|
-
private buildPoolPairFromObject;
|
|
10024
|
-
/**
|
|
10025
|
-
* Parse pool pair string into token0, token1, and fee
|
|
10026
|
-
*
|
|
10027
|
-
* Format: "token0ClassKey/token1ClassKey/feeTier"
|
|
10028
|
-
* Example: "GALA|Unit|none|none/GUSDC|Unit|none|none/10000"
|
|
10029
|
-
*
|
|
10030
|
-
* @param poolPairString - Pool pair string
|
|
10031
|
-
* @returns Pool data or null if invalid
|
|
10032
|
-
* @private
|
|
10033
|
-
*/
|
|
10034
|
-
private parsePoolPairString;
|
|
10035
|
-
/**
|
|
10036
|
-
* Serialize balance token object to classKey format
|
|
10037
|
-
* Used by buildPoolPairFromBalances to convert balance objects to token symbols
|
|
10038
|
-
*
|
|
10039
|
-
* Format: "collection|category|type|additionalKey"
|
|
10040
|
-
* Example: "GALA|Unit|none|none"
|
|
10041
|
-
*
|
|
10042
|
-
* @param balance - Balance object with collection, category, type fields
|
|
10043
|
-
* @returns Serialized token string or empty string if invalid
|
|
10044
|
-
* @private
|
|
10045
|
-
*/
|
|
10046
|
-
private serializeBalanceToken;
|
|
10047
|
-
/**
|
|
10048
|
-
* Build pool pair from balance delta objects
|
|
10049
|
-
* Handles extraction from swap and liquidity events that include balance changes
|
|
10050
|
-
*
|
|
10051
|
-
* Looks for:
|
|
10052
|
-
* - userBalanceDelta, balanceDelta, or delta objects
|
|
10053
|
-
* - token0Balance/token0/baseBalance/primaryBalance fields
|
|
10054
|
-
* - token1Balance/token1/quoteBalance/secondaryBalance fields
|
|
10055
|
-
* - Fee from poolFee, feeTier, fee, feeTierBps, or liquidityFeeBps
|
|
10056
|
-
*
|
|
10057
|
-
* @param obj - Object that may contain balance delta data
|
|
10058
|
-
* @returns Pool pair string or null if extraction failed
|
|
10059
|
-
* @private
|
|
10060
|
-
*/
|
|
10061
|
-
private buildPoolPairFromBalances;
|
|
10062
|
-
/**
|
|
10063
|
-
* Extract pool data from WebSocket event payload
|
|
10064
|
-
*
|
|
10065
|
-
* Tries multiple patterns in order to find pool data:
|
|
10066
|
-
* 1. Direct poolPair string
|
|
10067
|
-
* 2. Direct poolPair field
|
|
10068
|
-
* 3. Balance delta patterns (from swap/liquidity events) - CRITICAL for event detection
|
|
10069
|
-
* 4. Object fields (token0, token1, fee)
|
|
10070
|
-
* 5. Nested pool object
|
|
10071
|
-
*
|
|
10072
|
-
* Order matches reference implementation (newPoolsWatch.js) for maximum compatibility
|
|
10073
|
-
*
|
|
10074
|
-
* @param payload - WebSocket event payload
|
|
10075
|
-
* @returns Pool data or null if not found
|
|
10076
|
-
* @private
|
|
10077
|
-
*/
|
|
10078
|
-
private extractPoolDataFromPayload;
|
|
10079
|
-
/**
|
|
10080
|
-
* Check if a pool matches the optional filters
|
|
10081
|
-
*
|
|
10082
|
-
* Implements position-independent token matching:
|
|
10083
|
-
* - tokenFilter matches if token appears in EITHER position (token0 OR token1)
|
|
10084
|
-
* - pairTokens matches if BOTH tokens are present regardless of order
|
|
10085
|
-
* - feeTierFilter matches the fee tier
|
|
10086
|
-
*
|
|
10087
|
-
* @param pool - Pool data to check
|
|
10088
|
-
* @param options - Optional filters
|
|
10089
|
-
* @returns true if pool matches all specified filters
|
|
10090
|
-
* @private
|
|
10091
|
-
*/
|
|
10092
|
-
private matchesPoolFilter;
|
|
10093
8810
|
/**
|
|
10094
8811
|
* Check if a token creation event matches the optional creator filter
|
|
10095
8812
|
*
|
|
@@ -10194,421 +8911,6 @@ export declare class LaunchpadSDK {
|
|
|
10194
8911
|
creatorFilter?: string;
|
|
10195
8912
|
onError?: (error: Error) => void;
|
|
10196
8913
|
}): () => void;
|
|
10197
|
-
/**
|
|
10198
|
-
* Recursively walk WebSocket event payload to find all pools
|
|
10199
|
-
*
|
|
10200
|
-
* Exhaustively searches through entire payload tree, including nested objects.
|
|
10201
|
-
* Matches reference implementation (newPoolsWatch.js walkPayload) for complete event coverage.
|
|
10202
|
-
*
|
|
10203
|
-
* Uses WeakSet to track visited objects and prevent infinite loops on circular references.
|
|
10204
|
-
* Deduplicates pools using the provided seenPools Set.
|
|
10205
|
-
*
|
|
10206
|
-
* @param payload - Event payload to walk (can be string, object, or any value)
|
|
10207
|
-
* @param seenPools - Set of already-seen pool pair strings (for deduplication)
|
|
10208
|
-
* @param visited - WeakSet of visited objects (to prevent circular reference loops)
|
|
10209
|
-
* @returns Array of newly discovered pool data objects
|
|
10210
|
-
* @private
|
|
10211
|
-
*/
|
|
10212
|
-
private walkPayloadForPools;
|
|
10213
|
-
/**
|
|
10214
|
-
* Subscribe to real-time DEX pool creation broadcasts
|
|
10215
|
-
*
|
|
10216
|
-
* Listens to WebSocket broadcasts for DEX pool creation events globally.
|
|
10217
|
-
* Provides real-time notifications when new liquidity pools are added (~1-2 second latency).
|
|
10218
|
-
*
|
|
10219
|
-
* **Use Case:**
|
|
10220
|
-
* Monitor for graduated tokens becoming swappable on the DEX. When a token graduates from
|
|
10221
|
-
* bonding curve to DEX, a pool is created and this subscription notifies in real-time.
|
|
10222
|
-
*
|
|
10223
|
-
* **Position-Independent Token Matching:**
|
|
10224
|
-
* Token filters work regardless of position (token0 vs token1):
|
|
10225
|
-
* - `tokenFilter: 'GALA'` matches both GALA/USDC and USDC/GALA pools
|
|
10226
|
-
* - `pairTokens: ['GALA', 'USDC']` matches the specific pair in any order
|
|
10227
|
-
*
|
|
10228
|
-
* **Connection Management:**
|
|
10229
|
-
* - If WebSocket is already connected, listener is registered immediately
|
|
10230
|
-
* - If not connected, automatically initiates connection with 3-second timeout
|
|
10231
|
-
* - Connection failures are logged and can be handled via error callback
|
|
10232
|
-
*
|
|
10233
|
-
* **Cleanup Function:**
|
|
10234
|
-
* - Safe to call multiple times (idempotent)
|
|
10235
|
-
* - Removes listener and cleans up tracking state
|
|
10236
|
-
* - Returns immediately if listener was never registered
|
|
10237
|
-
*
|
|
10238
|
-
* @param callback - Called when a new DEX pool is created
|
|
10239
|
-
* @param options - Optional filtering and error handling
|
|
10240
|
-
* @param options.tokenFilter - Only receive pools containing this token (in either position)
|
|
10241
|
-
* @param options.pairTokens - Only receive pools with this specific token pair (order-independent)
|
|
10242
|
-
* @param options.feeTierFilter - Only receive pools with this fee tier (500, 3000, or 10000)
|
|
10243
|
-
* @param options.onError - Called if WebSocket connection fails
|
|
10244
|
-
* @returns Cleanup function to stop listening - safe to call multiple times
|
|
10245
|
-
*
|
|
10246
|
-
* @category Real-time Monitoring
|
|
10247
|
-
* @since 4.1.0
|
|
10248
|
-
*
|
|
10249
|
-
* @throws Error if WebSocket service not initialized
|
|
10250
|
-
*
|
|
10251
|
-
* @example Listen to all new pools
|
|
10252
|
-
* ```typescript
|
|
10253
|
-
* const cleanup = sdk.subscribeToDexPoolAdded((pool) => {
|
|
10254
|
-
* console.log(`New pool: ${pool.token0}/${pool.token1} (${pool.fee}% fee)`);
|
|
10255
|
-
* });
|
|
10256
|
-
*
|
|
10257
|
-
* // Stop listening when done
|
|
10258
|
-
* cleanup();
|
|
10259
|
-
* ```
|
|
10260
|
-
*
|
|
10261
|
-
* @example Listen for GALA pools only
|
|
10262
|
-
* ```typescript
|
|
10263
|
-
* const cleanup = sdk.subscribeToDexPoolAdded(
|
|
10264
|
-
* (pool) => {
|
|
10265
|
-
* if (pool.token0 === 'GALA' || pool.token1 === 'GALA') {
|
|
10266
|
-
* console.log(`GALA pool created: ${pool.poolPair}`);
|
|
10267
|
-
* }
|
|
10268
|
-
* },
|
|
10269
|
-
* { tokenFilter: 'GALA' }
|
|
10270
|
-
* );
|
|
10271
|
-
* ```
|
|
10272
|
-
*
|
|
10273
|
-
* @example Monitor specific pair with fee tier
|
|
10274
|
-
* ```typescript
|
|
10275
|
-
* const cleanup = sdk.subscribeToDexPoolAdded(
|
|
10276
|
-
* (pool) => {
|
|
10277
|
-
* console.log(`GALA/GUSDC 0.3% pool created!`);
|
|
10278
|
-
* },
|
|
10279
|
-
* {
|
|
10280
|
-
* pairTokens: ['GALA', 'GUSDC'],
|
|
10281
|
-
* feeTierFilter: 3000, // 0.3%
|
|
10282
|
-
* onError: (error) => console.error('Connection failed:', error)
|
|
10283
|
-
* }
|
|
10284
|
-
* );
|
|
10285
|
-
* ```
|
|
10286
|
-
*
|
|
10287
|
-
* @example Monitor graduated tokens (all pools, real-time)
|
|
10288
|
-
* ```typescript
|
|
10289
|
-
* // Watch for ANY new pools - indicates graduated tokens
|
|
10290
|
-
* const cleanup = sdk.subscribeToDexPoolAdded(
|
|
10291
|
-
* (pool) => {
|
|
10292
|
-
* console.log(`Graduated token detected: ${pool.token0}/${pool.token1}`);
|
|
10293
|
-
* // Could trigger automatic trading strategies
|
|
10294
|
-
* }
|
|
10295
|
-
* );
|
|
10296
|
-
* ```
|
|
10297
|
-
*/
|
|
10298
|
-
subscribeToDexPoolAdded(callback: (pool: {
|
|
10299
|
-
token0: string;
|
|
10300
|
-
token1: string;
|
|
10301
|
-
fee: string;
|
|
10302
|
-
poolPair: string;
|
|
10303
|
-
}) => void, options?: {
|
|
10304
|
-
tokenFilter?: string;
|
|
10305
|
-
pairTokens?: [string, string];
|
|
10306
|
-
feeTierFilter?: string | number;
|
|
10307
|
-
onError?: (error: Error) => void;
|
|
10308
|
-
}): () => void;
|
|
10309
|
-
/**
|
|
10310
|
-
* Subscribe to real-time DEX swap execution events
|
|
10311
|
-
*
|
|
10312
|
-
* Monitors all completed swaps on the DEX globally with real-time notifications (~1-2 second latency).
|
|
10313
|
-
* Provides offline price predictions and delta-based pool state updates for arbitrage bot use cases.
|
|
10314
|
-
*
|
|
10315
|
-
* **Architecture:**
|
|
10316
|
-
* The backend broadcasts transaction confirmation events for completed swaps to ALL connected clients.
|
|
10317
|
-
* This listener captures "ExecuteSwap" events and provides:
|
|
10318
|
-
* - Real-time swap transaction data (tokens, amounts, fees)
|
|
10319
|
-
* - Offline price quotes using cached pool state (~25-50ms vs network requests)
|
|
10320
|
-
* - Delta-based pool updates (~15-25ms vs full refetch ~200-400ms)
|
|
10321
|
-
* - Performance metrics (latency percentiles, cache hit rates, throughput)
|
|
10322
|
-
*
|
|
10323
|
-
* **Position-Independent Token Matching:**
|
|
10324
|
-
* Token filters work regardless of position (token0 vs token1):
|
|
10325
|
-
* - `tokenFilter: 'GALA'` matches both GALA/USDC and USDC/GALA swaps
|
|
10326
|
-
* - `pairTokens: ['GALA', 'USDC']` matches the specific pair in any order
|
|
10327
|
-
*
|
|
10328
|
-
* **Connection Management:**
|
|
10329
|
-
* - If WebSocket is already connected, listener is registered immediately
|
|
10330
|
-
* - If not connected, automatically initiates connection with 3-second timeout
|
|
10331
|
-
* - Connection failures are logged and can be handled via error callback
|
|
10332
|
-
*
|
|
10333
|
-
* **Cleanup Function:**
|
|
10334
|
-
* - Safe to call multiple times (idempotent)
|
|
10335
|
-
* - Removes listener and cleans up tracking state
|
|
10336
|
-
* - Returns immediately if listener was never registered
|
|
10337
|
-
*
|
|
10338
|
-
* @param callback - Called when a swap completes with enriched swap data
|
|
10339
|
-
* @param options - Optional filtering, configuration, and error handling
|
|
10340
|
-
* @param options.tokenFilter - Only receive swaps containing this token (in either position)
|
|
10341
|
-
* @param options.pairTokens - Only receive swaps with this specific token pair (order-independent)
|
|
10342
|
-
* @param options.feeTierFilter - Only receive swaps with this fee tier (500, 3000, or 10000)
|
|
10343
|
-
* @param options.userFilter - Only receive swaps from this wallet address
|
|
10344
|
-
* @param options.memoryProfile - Cache memory profile: 'conservative' (55MB), 'moderate' (250MB), 'aggressive' (530MB)
|
|
10345
|
-
* @param options.maxPools - Maximum pools to cache (default: 500)
|
|
10346
|
-
* @param options.enableDeltaOptimization - Use delta updates instead of full refetch (default: true)
|
|
10347
|
-
* @param options.enableOfflineQuotes - Calculate offline quotes for known pools (default: true)
|
|
10348
|
-
* @param options.debug - Enable debug logging (default: false)
|
|
10349
|
-
* @param options.onError - Called if WebSocket connection fails
|
|
10350
|
-
* @returns Cleanup function to stop listening - safe to call multiple times
|
|
10351
|
-
*
|
|
10352
|
-
* @category Real-time Monitoring
|
|
10353
|
-
* @since 4.2.0
|
|
10354
|
-
*
|
|
10355
|
-
* @throws Error if WebSocket service not initialized
|
|
10356
|
-
*
|
|
10357
|
-
* @example Listen to all swaps globally
|
|
10358
|
-
* ```typescript
|
|
10359
|
-
* const cleanup = sdk.subscribeToDexSwapExecuted((swap) => {
|
|
10360
|
-
* console.log(`Swap: ${swap.token0} → ${swap.token1}`);
|
|
10361
|
-
* console.log(`Amount: ${swap.amount0} / ${swap.amount1}`);
|
|
10362
|
-
* if (swap.estimatedPrice) {
|
|
10363
|
-
* console.log(`Price: ${swap.estimatedPrice}`);
|
|
10364
|
-
* }
|
|
10365
|
-
* });
|
|
10366
|
-
*
|
|
10367
|
-
* // Stop listening when done
|
|
10368
|
-
* cleanup();
|
|
10369
|
-
* ```
|
|
10370
|
-
*
|
|
10371
|
-
* @example Arbitrage bot - monitor GALA/GUSDC swaps with offline pricing
|
|
10372
|
-
* ```typescript
|
|
10373
|
-
* const cleanup = sdk.subscribeToDexSwapExecuted(
|
|
10374
|
-
* async (swap) => {
|
|
10375
|
-
* if (swap.estimatedPrice && swap.poolStateUpdated) {
|
|
10376
|
-
* // Price calculated instantly using cached pool state
|
|
10377
|
-
* console.log(`Arbitrage opportunity: ${swap.estimatedPrice}`);
|
|
10378
|
-
*
|
|
10379
|
-
* // Trigger trading logic
|
|
10380
|
-
* await executeArbitrageStrategy(swap);
|
|
10381
|
-
* }
|
|
10382
|
-
* },
|
|
10383
|
-
* {
|
|
10384
|
-
* pairTokens: ['GALA', 'GUSDC'],
|
|
10385
|
-
* memoryProfile: 'aggressive', // Max cache for arbitrage
|
|
10386
|
-
* enableDeltaOptimization: true, // Fast updates
|
|
10387
|
-
* enableOfflineQuotes: true, // Instant pricing
|
|
10388
|
-
* onError: (error) => console.error('Swap monitoring failed:', error)
|
|
10389
|
-
* }
|
|
10390
|
-
* );
|
|
10391
|
-
* ```
|
|
10392
|
-
*
|
|
10393
|
-
* @example Monitor specific token with fee tier
|
|
10394
|
-
* ```typescript
|
|
10395
|
-
* const cleanup = sdk.subscribeToDexSwapExecuted(
|
|
10396
|
-
* (swap) => {
|
|
10397
|
-
* console.log(`GALA 0.3% pool swap: ${swap.amount0}`);
|
|
10398
|
-
* },
|
|
10399
|
-
* {
|
|
10400
|
-
* tokenFilter: 'GALA',
|
|
10401
|
-
* feeTierFilter: 3000, // 0.3% fee tier
|
|
10402
|
-
* }
|
|
10403
|
-
* );
|
|
10404
|
-
* ```
|
|
10405
|
-
*
|
|
10406
|
-
* @example Health monitoring for swap monitoring system
|
|
10407
|
-
* ```typescript
|
|
10408
|
-
* let swapMonitor: MultiPoolStateManager | null = null;
|
|
10409
|
-
*
|
|
10410
|
-
* const cleanup = sdk.subscribeToDexSwapExecuted(
|
|
10411
|
-
* (swap) => {
|
|
10412
|
-
* console.log(`Swap processed in <50ms:`, swap.poolStateUpdated);
|
|
10413
|
-
* },
|
|
10414
|
-
* {
|
|
10415
|
-
* memoryProfile: 'moderate',
|
|
10416
|
-
* onError: (error) => console.error('Connection failed:', error)
|
|
10417
|
-
* }
|
|
10418
|
-
* );
|
|
10419
|
-
*
|
|
10420
|
-
* // Can get health metrics
|
|
10421
|
-
* // const health = swapMonitor?.getHealth();
|
|
10422
|
-
* // console.log(`Cache hit rate: ${health.metrics.cacheHitRate}%`);
|
|
10423
|
-
* ```
|
|
10424
|
-
*/
|
|
10425
|
-
subscribeToDexSwapExecuted(callback: SwapEventCallback, options?: SubscribeSwapOptions & SwapMonitorConfig): CleanupFunction;
|
|
10426
|
-
/**
|
|
10427
|
-
* Subscribe to real-time DEX liquidity addition events
|
|
10428
|
-
*
|
|
10429
|
-
* Monitors all liquidity additions on the DEX globally with real-time notifications.
|
|
10430
|
-
* All liquidity events are broadcast to all connected clients - you can monitor
|
|
10431
|
-
* market-wide liquidity activity, not just your own transactions.
|
|
10432
|
-
*
|
|
10433
|
-
* **Use Cases:**
|
|
10434
|
-
* - LP position tracking: Monitor when users add liquidity to positions
|
|
10435
|
-
* - Whale watching: Detect large liquidity additions
|
|
10436
|
-
* - Market analysis: Track overall DEX liquidity growth
|
|
10437
|
-
* - Position management: React to liquidity changes in pools you care about
|
|
10438
|
-
*
|
|
10439
|
-
* **Position-Independent Token Matching:**
|
|
10440
|
-
* Token filters work regardless of position (token0 vs token1):
|
|
10441
|
-
* - `tokenFilter: 'GALA'` matches liquidity additions to any GALA pool
|
|
10442
|
-
* - `pairTokens: ['GALA', 'GUSDC']` matches the specific pair in any order
|
|
10443
|
-
*
|
|
10444
|
-
* @param callback - Called when liquidity is added with event data
|
|
10445
|
-
* @param options - Optional filtering and error handling
|
|
10446
|
-
* @param options.positionId - Only receive events for this LP position NFT
|
|
10447
|
-
* @param options.poolHash - Only receive events for this pool
|
|
10448
|
-
* @param options.tokenFilter - Only receive events containing this token (in either position)
|
|
10449
|
-
* @param options.pairTokens - Only receive events with this specific token pair (order-independent)
|
|
10450
|
-
* @param options.feeTierFilter - Only receive events with this fee tier (500, 3000, or 10000)
|
|
10451
|
-
* @param options.userFilter - Only receive events from this wallet address
|
|
10452
|
-
* @param options.minAmount - Only receive events where at least one amount exceeds this value
|
|
10453
|
-
* @param options.onError - Called if WebSocket connection fails
|
|
10454
|
-
* @returns Cleanup function to stop listening - safe to call multiple times
|
|
10455
|
-
*
|
|
10456
|
-
* @category Real-time Monitoring
|
|
10457
|
-
* @since 4.3.0
|
|
10458
|
-
*
|
|
10459
|
-
* @throws Error if WebSocket service not initialized
|
|
10460
|
-
*
|
|
10461
|
-
* @example Listen to all liquidity additions
|
|
10462
|
-
* ```typescript
|
|
10463
|
-
* const cleanup = sdk.subscribeToDexLiquidityAdded((event) => {
|
|
10464
|
-
* console.log(`Liquidity added: ${event.amounts[0]} / ${event.amounts[1]}`);
|
|
10465
|
-
* console.log(`Position: ${event.positionId}`);
|
|
10466
|
-
* console.log(`Pool: ${event.poolHash}`);
|
|
10467
|
-
* });
|
|
10468
|
-
*
|
|
10469
|
-
* // Stop listening when done
|
|
10470
|
-
* await cleanup();
|
|
10471
|
-
* ```
|
|
10472
|
-
*
|
|
10473
|
-
* @example Track specific pool liquidity
|
|
10474
|
-
* ```typescript
|
|
10475
|
-
* const cleanup = sdk.subscribeToDexLiquidityAdded(
|
|
10476
|
-
* (event) => {
|
|
10477
|
-
* console.log(`GALA/GUSDC liquidity: +${event.amounts[0]} GALA`);
|
|
10478
|
-
* },
|
|
10479
|
-
* {
|
|
10480
|
-
* pairTokens: ['GALA', 'GUSDC'],
|
|
10481
|
-
* feeTierFilter: 3000, // 0.3% fee tier
|
|
10482
|
-
* }
|
|
10483
|
-
* );
|
|
10484
|
-
* ```
|
|
10485
|
-
*
|
|
10486
|
-
* @example Whale watching
|
|
10487
|
-
* ```typescript
|
|
10488
|
-
* const cleanup = sdk.subscribeToDexLiquidityAdded(
|
|
10489
|
-
* (event) => {
|
|
10490
|
-
* console.log(`🐋 Large liquidity add detected!`);
|
|
10491
|
-
* console.log(`Amount: ${event.amounts[0]} / ${event.amounts[1]}`);
|
|
10492
|
-
* console.log(`User: ${event.userAddress}`);
|
|
10493
|
-
* },
|
|
10494
|
-
* { minAmount: '10000' } // Only large additions
|
|
10495
|
-
* );
|
|
10496
|
-
* ```
|
|
10497
|
-
*/
|
|
10498
|
-
subscribeToDexLiquidityAdded(callback: LiquidityChangedCallback, options?: SubscribeLiquidityOptions): LiquidityCleanupFunction;
|
|
10499
|
-
/**
|
|
10500
|
-
* Subscribe to real-time DEX liquidity removal events
|
|
10501
|
-
*
|
|
10502
|
-
* Monitors all liquidity removals on the DEX globally with real-time notifications.
|
|
10503
|
-
* All liquidity events are broadcast to all connected clients - you can monitor
|
|
10504
|
-
* market-wide liquidity activity, not just your own transactions.
|
|
10505
|
-
*
|
|
10506
|
-
* **Use Cases:**
|
|
10507
|
-
* - LP exit tracking: Monitor when users remove liquidity from positions
|
|
10508
|
-
* - Whale watching: Detect large liquidity withdrawals
|
|
10509
|
-
* - Market analysis: Track overall DEX liquidity changes
|
|
10510
|
-
* - Risk management: React to liquidity decreases in pools you trade
|
|
10511
|
-
*
|
|
10512
|
-
* @param callback - Called when liquidity is removed with event data
|
|
10513
|
-
* @param options - Optional filtering and error handling
|
|
10514
|
-
* @param options.positionId - Only receive events for this LP position NFT
|
|
10515
|
-
* @param options.poolHash - Only receive events for this pool
|
|
10516
|
-
* @param options.tokenFilter - Only receive events containing this token (in either position)
|
|
10517
|
-
* @param options.pairTokens - Only receive events with this specific token pair (order-independent)
|
|
10518
|
-
* @param options.feeTierFilter - Only receive events with this fee tier (500, 3000, or 10000)
|
|
10519
|
-
* @param options.userFilter - Only receive events from this wallet address
|
|
10520
|
-
* @param options.minAmount - Only receive events where at least one amount exceeds this value
|
|
10521
|
-
* @param options.onError - Called if WebSocket connection fails
|
|
10522
|
-
* @returns Cleanup function to stop listening - safe to call multiple times
|
|
10523
|
-
*
|
|
10524
|
-
* @category Real-time Monitoring
|
|
10525
|
-
* @since 4.3.0
|
|
10526
|
-
*
|
|
10527
|
-
* @throws Error if WebSocket service not initialized
|
|
10528
|
-
*
|
|
10529
|
-
* @example Listen to all liquidity removals
|
|
10530
|
-
* ```typescript
|
|
10531
|
-
* const cleanup = sdk.subscribeToDexLiquidityRemoved((event) => {
|
|
10532
|
-
* console.log(`Liquidity removed: ${event.amounts[0]} / ${event.amounts[1]}`);
|
|
10533
|
-
* console.log(`Position: ${event.positionId}`);
|
|
10534
|
-
* });
|
|
10535
|
-
*
|
|
10536
|
-
* await cleanup();
|
|
10537
|
-
* ```
|
|
10538
|
-
*
|
|
10539
|
-
* @example Track position exits
|
|
10540
|
-
* ```typescript
|
|
10541
|
-
* const cleanup = sdk.subscribeToDexLiquidityRemoved(
|
|
10542
|
-
* (event) => {
|
|
10543
|
-
* console.log(`Position ${event.positionId} reduced liquidity`);
|
|
10544
|
-
* },
|
|
10545
|
-
* { positionId: 'my-position-id' }
|
|
10546
|
-
* );
|
|
10547
|
-
* ```
|
|
10548
|
-
*/
|
|
10549
|
-
subscribeToDexLiquidityRemoved(callback: LiquidityChangedCallback, options?: SubscribeLiquidityOptions): LiquidityCleanupFunction;
|
|
10550
|
-
/**
|
|
10551
|
-
* Subscribe to all DEX liquidity changes
|
|
10552
|
-
*
|
|
10553
|
-
* Monitors all liquidity operations on the DEX globally with real-time notifications.
|
|
10554
|
-
* The backend broadcasts position change events without distinguishing between
|
|
10555
|
-
* add and remove operations.
|
|
10556
|
-
*
|
|
10557
|
-
* **Use Cases:**
|
|
10558
|
-
* - Complete liquidity tracking: Monitor all LP activity in a pool
|
|
10559
|
-
* - Position monitoring: Track changes to specific positions
|
|
10560
|
-
* - Dashboard displays: Show real-time liquidity activity feed
|
|
10561
|
-
*
|
|
10562
|
-
* @param callback - Called when liquidity changes with event data
|
|
10563
|
-
* @param options - Optional filtering and error handling
|
|
10564
|
-
* @returns Cleanup function to stop listening - safe to call multiple times
|
|
10565
|
-
*
|
|
10566
|
-
* @category Real-time Monitoring
|
|
10567
|
-
* @since 4.3.0
|
|
10568
|
-
*
|
|
10569
|
-
* @throws Error if WebSocket service not initialized
|
|
10570
|
-
*
|
|
10571
|
-
* @example Monitor all liquidity activity
|
|
10572
|
-
* ```typescript
|
|
10573
|
-
* const cleanup = sdk.subscribeToDexLiquidityChanged((event) => {
|
|
10574
|
-
* console.log(`Liquidity changed: ${event.amounts[0]} / ${event.amounts[1]}`);
|
|
10575
|
-
* console.log(`Pool: ${event.poolHash}`);
|
|
10576
|
-
* console.log(`Position: ${event.positionId}`);
|
|
10577
|
-
* });
|
|
10578
|
-
*
|
|
10579
|
-
* await cleanup();
|
|
10580
|
-
* ```
|
|
10581
|
-
*
|
|
10582
|
-
* @example Track specific pool liquidity
|
|
10583
|
-
* ```typescript
|
|
10584
|
-
* const cleanup = sdk.subscribeToDexLiquidityChanged(
|
|
10585
|
-
* (event) => {
|
|
10586
|
-
* console.log(`Pool activity: ${event.amounts[0]} / ${event.amounts[1]}`);
|
|
10587
|
-
* console.log(`User: ${event.userAddress}`);
|
|
10588
|
-
* },
|
|
10589
|
-
* { pairTokens: ['GALA', 'GUSDC'] }
|
|
10590
|
-
* );
|
|
10591
|
-
* ```
|
|
10592
|
-
*/
|
|
10593
|
-
subscribeToDexLiquidityChanged(callback: LiquidityChangedCallback, options?: SubscribeLiquidityOptions): LiquidityCleanupFunction;
|
|
10594
|
-
/**
|
|
10595
|
-
* Internal method for subscribing to liquidity events
|
|
10596
|
-
*
|
|
10597
|
-
* @internal
|
|
10598
|
-
*/
|
|
10599
|
-
private subscribeToDexLiquidityEvents;
|
|
10600
|
-
/**
|
|
10601
|
-
* Check if a liquidity event matches the specified filters
|
|
10602
|
-
*
|
|
10603
|
-
* @internal
|
|
10604
|
-
*/
|
|
10605
|
-
private matchesLiquidityFilter;
|
|
10606
|
-
/**
|
|
10607
|
-
* Normalize fee tier to basis points
|
|
10608
|
-
*
|
|
10609
|
-
* @internal
|
|
10610
|
-
*/
|
|
10611
|
-
private normalizeFeeTier;
|
|
10612
8914
|
/**
|
|
10613
8915
|
* Get the fee to claim an NFT collection
|
|
10614
8916
|
* @category NFT Collections
|