@gala-chain/launchpad-sdk 5.0.4-beta.7 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/EXAMPLES.md +99 -0
- package/README.md +354 -49
- package/README.md.bak +3174 -0
- package/dist/LaunchpadSDK.d.ts +10744 -0
- package/dist/LaunchpadSDK.d.ts.map +1 -0
- package/dist/ai-docs.json +5433 -1237
- package/dist/api/LaunchpadAPI.d.ts +930 -0
- package/dist/api/LaunchpadAPI.d.ts.map +1 -0
- package/dist/api/dto/BondingCurveDTOs.d.ts +145 -0
- package/dist/api/dto/BondingCurveDTOs.d.ts.map +1 -0
- package/dist/api/dto/BurnTokensDto.d.ts +89 -0
- package/dist/api/dto/BurnTokensDto.d.ts.map +1 -0
- package/dist/api/dto/LockTokenDto.d.ts +97 -0
- package/dist/api/dto/LockTokenDto.d.ts.map +1 -0
- package/dist/api/dto/TransferTokenDto.d.ts +76 -0
- package/dist/api/dto/TransferTokenDto.d.ts.map +1 -0
- package/dist/api/dto/UnlockTokenDto.d.ts +86 -0
- package/dist/api/dto/UnlockTokenDto.d.ts.map +1 -0
- package/dist/auth/JwtAuth.d.ts +183 -0
- package/dist/auth/JwtAuth.d.ts.map +1 -0
- package/dist/auth/SessionAuthService.d.ts +151 -0
- package/dist/auth/SessionAuthService.d.ts.map +1 -0
- package/dist/auth/SignatureAuth.d.ts +181 -0
- package/dist/auth/SignatureAuth.d.ts.map +1 -0
- package/dist/auth/storage.d.ts +66 -0
- package/dist/auth/storage.d.ts.map +1 -0
- package/dist/auth/types.d.ts +50 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/bridge/BridgeService.d.ts +484 -0
- package/dist/bridge/BridgeService.d.ts.map +1 -0
- package/dist/bridge/GalaConnectClient.d.ts +170 -0
- package/dist/bridge/GalaConnectClient.d.ts.map +1 -0
- package/dist/bridge/constants/index.d.ts +7 -0
- package/dist/bridge/constants/index.d.ts.map +1 -0
- package/dist/bridge/constants/tokens.d.ts +212 -0
- package/dist/bridge/constants/tokens.d.ts.map +1 -0
- package/dist/bridge/index.d.ts +24 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/strategies/BridgeStrategy.d.ts +160 -0
- package/dist/bridge/strategies/BridgeStrategy.d.ts.map +1 -0
- package/dist/bridge/strategies/EthereumBridgeStrategy.d.ts +200 -0
- package/dist/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -0
- package/dist/bridge/strategies/SolanaBridgeStrategy.d.ts +258 -0
- package/dist/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -0
- package/dist/bridge/types/bridge.dto.d.ts +772 -0
- package/dist/bridge/types/bridge.dto.d.ts.map +1 -0
- package/dist/bridge/types/bridgeable-token.dto.d.ts +205 -0
- package/dist/bridge/types/bridgeable-token.dto.d.ts.map +1 -0
- package/dist/bridge/types/eip712.d.ts +66 -0
- package/dist/bridge/types/eip712.d.ts.map +1 -0
- package/dist/bridge/types/index.d.ts +8 -0
- package/dist/bridge/types/index.d.ts.map +1 -0
- package/dist/bridge/utils/RateLimiter.d.ts +34 -0
- package/dist/bridge/utils/RateLimiter.d.ts.map +1 -0
- package/dist/bridge/utils/address-formatter.d.ts +25 -0
- package/dist/bridge/utils/address-formatter.d.ts.map +1 -0
- package/dist/bridge/utils/addressValidation.d.ts +200 -0
- package/dist/bridge/utils/addressValidation.d.ts.map +1 -0
- package/dist/bridge/utils/balanceHelpers.d.ts +215 -0
- package/dist/bridge/utils/balanceHelpers.d.ts.map +1 -0
- package/dist/bridge/utils/bridgeErrors.d.ts +98 -0
- package/dist/bridge/utils/bridgeErrors.d.ts.map +1 -0
- package/dist/bridge/utils/bridgeOutHelpers.d.ts +68 -0
- package/dist/bridge/utils/bridgeOutHelpers.d.ts.map +1 -0
- package/dist/bridge/utils/bridgePayload.d.ts +98 -0
- package/dist/bridge/utils/bridgePayload.d.ts.map +1 -0
- package/dist/bridge/utils/bridgeStatusParser.d.ts +75 -0
- package/dist/bridge/utils/bridgeStatusParser.d.ts.map +1 -0
- package/dist/bridge/utils/eip712Helpers.d.ts +66 -0
- package/dist/bridge/utils/eip712Helpers.d.ts.map +1 -0
- package/dist/bridge/utils/index.d.ts +19 -0
- package/dist/bridge/utils/index.d.ts.map +1 -0
- package/dist/bridge/utils/retry.d.ts +112 -0
- package/dist/bridge/utils/retry.d.ts.map +1 -0
- package/dist/bridge/utils/strategyDelegation.d.ts +69 -0
- package/dist/bridge/utils/strategyDelegation.d.ts.map +1 -0
- package/dist/bridge/utils/tokenIdUtils.d.ts +86 -0
- package/dist/bridge/utils/tokenIdUtils.d.ts.map +1 -0
- package/dist/bridge/utils/tokenMath.d.ts +39 -0
- package/dist/bridge/utils/tokenMath.d.ts.map +1 -0
- package/dist/bridge/utils/tokenMetadataResolver.d.ts +97 -0
- package/dist/bridge/utils/tokenMetadataResolver.d.ts.map +1 -0
- package/dist/config/environments.d.ts +51 -0
- package/dist/config/environments.d.ts.map +1 -0
- package/dist/constants/bondingCurve.d.ts +102 -0
- package/dist/constants/bondingCurve.d.ts.map +1 -0
- package/dist/constants/config.d.ts +30 -0
- package/dist/constants/config.d.ts.map +1 -0
- package/dist/constants/decimals.d.ts +63 -0
- package/dist/constants/decimals.d.ts.map +1 -0
- package/dist/constants/endpoints.d.ts +820 -0
- package/dist/constants/endpoints.d.ts.map +1 -0
- package/dist/constants/enums.d.ts +65 -0
- package/dist/constants/enums.d.ts.map +1 -0
- package/dist/constants/error-messages.d.ts +61 -0
- package/dist/constants/error-messages.d.ts.map +1 -0
- package/dist/constants/events.d.ts +53 -0
- package/dist/constants/events.d.ts.map +1 -0
- package/dist/constants/jwt.d.ts +41 -0
- package/dist/constants/jwt.d.ts.map +1 -0
- package/dist/constants/nft-fees.d.ts +30 -0
- package/dist/constants/nft-fees.d.ts.map +1 -0
- package/dist/constants/pagination.d.ts +66 -0
- package/dist/constants/pagination.d.ts.map +1 -0
- package/dist/constants/query-fields.d.ts +51 -0
- package/dist/constants/query-fields.d.ts.map +1 -0
- package/dist/constants/sdk-defaults.d.ts +37 -0
- package/dist/constants/sdk-defaults.d.ts.map +1 -0
- package/dist/constants/version.d.ts +6 -0
- package/dist/constants/version.d.ts.map +1 -0
- package/dist/constants/version.generated.d.ts +7 -0
- package/dist/constants/version.generated.d.ts.map +1 -0
- package/dist/examples/admin/api-key-advanced.d.ts +43 -0
- package/dist/examples/admin/api-key-advanced.d.ts.map +1 -0
- package/dist/examples/admin/moderator-invite-complete.d.ts +41 -0
- package/dist/examples/admin/moderator-invite-complete.d.ts.map +1 -0
- package/dist/examples/admin/overseer-management-advanced.d.ts +38 -0
- package/dist/examples/admin/overseer-management-advanced.d.ts.map +1 -0
- package/dist/examples/admin/overseer-page-stats.d.ts +26 -0
- package/dist/examples/admin/overseer-page-stats.d.ts.map +1 -0
- package/dist/examples/admin/token-ban-complete.d.ts +44 -0
- package/dist/examples/admin/token-ban-complete.d.ts.map +1 -0
- package/dist/examples/ai-moderation/ai-moderation-demo.d.ts +32 -0
- package/dist/examples/ai-moderation/ai-moderation-demo.d.ts.map +1 -0
- package/dist/examples/ai-moderation/flag-ai-verdicts-demo.d.ts +30 -0
- package/dist/examples/ai-moderation/flag-ai-verdicts-demo.d.ts.map +1 -0
- package/dist/examples/analytics/index.d.ts +23 -0
- package/dist/examples/analytics/index.d.ts.map +1 -0
- package/dist/examples/analytics/market-analysis-tools.d.ts +28 -0
- package/dist/examples/analytics/market-analysis-tools.d.ts.map +1 -0
- package/dist/examples/analytics/portfolio-performance-tracking.d.ts +25 -0
- package/dist/examples/analytics/portfolio-performance-tracking.d.ts.map +1 -0
- package/dist/examples/analytics/trading-analytics-advanced.d.ts +27 -0
- package/dist/examples/analytics/trading-analytics-advanced.d.ts.map +1 -0
- package/dist/examples/api-keys/advanced-configuration.d.ts +19 -0
- package/dist/examples/api-keys/advanced-configuration.d.ts.map +1 -0
- package/dist/examples/api-keys/complete-lifecycle.d.ts +18 -0
- package/dist/examples/api-keys/complete-lifecycle.d.ts.map +1 -0
- package/dist/examples/api-keys/crud.d.ts +22 -0
- package/dist/examples/api-keys/crud.d.ts.map +1 -0
- package/dist/examples/api-keys/token-delegation.d.ts +24 -0
- package/dist/examples/api-keys/token-delegation.d.ts.map +1 -0
- package/dist/examples/api-keys/user-api-key-auth.d.ts +24 -0
- package/dist/examples/api-keys/user-api-key-auth.d.ts.map +1 -0
- package/dist/examples/auth/auth-permissions-checking.d.ts +32 -0
- package/dist/examples/auth/auth-permissions-checking.d.ts.map +1 -0
- package/dist/examples/auth/auth-token-management.d.ts +32 -0
- package/dist/examples/auth/auth-token-management.d.ts.map +1 -0
- package/dist/examples/auth/auth-validation-workflows.d.ts +32 -0
- package/dist/examples/auth/auth-validation-workflows.d.ts.map +1 -0
- package/dist/examples/bans/ban-management.d.ts +24 -0
- package/dist/examples/bans/ban-management.d.ts.map +1 -0
- package/dist/examples/bans/demo-global-user-bans.d.ts +27 -0
- package/dist/examples/bans/demo-global-user-bans.d.ts.map +1 -0
- package/dist/examples/bonding/token-graduation-workflow.d.ts +21 -0
- package/dist/examples/bonding/token-graduation-workflow.d.ts.map +1 -0
- package/dist/examples/bonding-curve/basic-trading.d.ts +20 -0
- package/dist/examples/bonding-curve/basic-trading.d.ts.map +1 -0
- package/dist/examples/bonding-curve/graduation-workflow.d.ts +18 -0
- package/dist/examples/bonding-curve/graduation-workflow.d.ts.map +1 -0
- package/dist/examples/bonding-curve/pagination-variants.d.ts +17 -0
- package/dist/examples/bonding-curve/pagination-variants.d.ts.map +1 -0
- package/dist/examples/bonding-curve/pool-analysis.d.ts +18 -0
- package/dist/examples/bonding-curve/pool-analysis.d.ts.map +1 -0
- package/dist/examples/bonding-curve/pool-creator-filtering.d.ts +17 -0
- package/dist/examples/bonding-curve/pool-creator-filtering.d.ts.map +1 -0
- package/dist/examples/bonding-curve/pool-discovery.d.ts +19 -0
- package/dist/examples/bonding-curve/pool-discovery.d.ts.map +1 -0
- package/dist/examples/bonding-curve/price-impact.d.ts +18 -0
- package/dist/examples/bonding-curve/price-impact.d.ts.map +1 -0
- package/dist/examples/bonding-curve/token-launch.d.ts +18 -0
- package/dist/examples/bonding-curve/token-launch.d.ts.map +1 -0
- package/dist/examples/bonding-curve/user-holder-context.d.ts +18 -0
- package/dist/examples/bonding-curve/user-holder-context.d.ts.map +1 -0
- package/dist/examples/bonding-curve/volume-trading.d.ts +18 -0
- package/dist/examples/bonding-curve/volume-trading.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-ethereum-specific.d.ts +18 -0
- package/dist/examples/bridge/bridge-ethereum-specific.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-generic-operations.d.ts +18 -0
- package/dist/examples/bridge/bridge-generic-operations.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-multi-chain-routing.d.ts +31 -0
- package/dist/examples/bridge/bridge-multi-chain-routing.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-network-methods.d.ts +31 -0
- package/dist/examples/bridge/bridge-network-methods.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-network-tokens.d.ts +18 -0
- package/dist/examples/bridge/bridge-network-tokens.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-network-validation.d.ts +33 -0
- package/dist/examples/bridge/bridge-network-validation.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-operations.d.ts +27 -0
- package/dist/examples/bridge/bridge-operations.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-solana-specific.d.ts +18 -0
- package/dist/examples/bridge/bridge-solana-specific.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-status-monitoring.d.ts +30 -0
- package/dist/examples/bridge/bridge-status-monitoring.d.ts.map +1 -0
- package/dist/examples/bridge/bridge-wrapped-token-operations.d.ts +30 -0
- package/dist/examples/bridge/bridge-wrapped-token-operations.d.ts.map +1 -0
- package/dist/examples/bridge/bridgeable-tokens.d.ts +27 -0
- package/dist/examples/bridge/bridgeable-tokens.d.ts.map +1 -0
- package/dist/examples/bridge/check-balances.d.ts +13 -0
- package/dist/examples/bridge/check-balances.d.ts.map +1 -0
- package/dist/examples/bridge/ethereum-in.d.ts +17 -0
- package/dist/examples/bridge/ethereum-in.d.ts.map +1 -0
- package/dist/examples/bridge/ethereum-out.d.ts +17 -0
- package/dist/examples/bridge/ethereum-out.d.ts.map +1 -0
- package/dist/examples/bridge/ethereum-roundtrip.d.ts +20 -0
- package/dist/examples/bridge/ethereum-roundtrip.d.ts.map +1 -0
- package/dist/examples/bridge/external-balances.d.ts +29 -0
- package/dist/examples/bridge/external-balances.d.ts.map +1 -0
- package/dist/examples/bridge/fee-estimation.d.ts +14 -0
- package/dist/examples/bridge/fee-estimation.d.ts.map +1 -0
- package/dist/examples/bridge/solana-in.d.ts +18 -0
- package/dist/examples/bridge/solana-in.d.ts.map +1 -0
- package/dist/examples/bridge/solana-out.d.ts +18 -0
- package/dist/examples/bridge/solana-out.d.ts.map +1 -0
- package/dist/examples/bridge/solana-roundtrip.d.ts +21 -0
- package/dist/examples/bridge/solana-roundtrip.d.ts.map +1 -0
- package/dist/examples/bridge/status-tracking.d.ts +16 -0
- package/dist/examples/bridge/status-tracking.d.ts.map +1 -0
- package/dist/examples/bridge/supported-tokens.d.ts +14 -0
- package/dist/examples/bridge/supported-tokens.d.ts.map +1 -0
- package/dist/examples/bridge/test-debug-unwrap.d.ts +13 -0
- package/dist/examples/bridge/test-debug-unwrap.d.ts.map +1 -0
- package/dist/examples/bridge/test-unwrap-execution.d.ts +13 -0
- package/dist/examples/bridge/test-unwrap-execution.d.ts.map +1 -0
- package/dist/examples/bridge/test-wrap-debug.d.ts +13 -0
- package/dist/examples/bridge/test-wrap-debug.d.ts.map +1 -0
- package/dist/examples/bridge/test-wrap-execution.d.ts +13 -0
- package/dist/examples/bridge/test-wrap-execution.d.ts.map +1 -0
- package/dist/examples/bridge/test-wrap-roundtrip.d.ts +13 -0
- package/dist/examples/bridge/test-wrap-roundtrip.d.ts.map +1 -0
- package/dist/examples/bridge/transaction-status.d.ts +26 -0
- package/dist/examples/bridge/transaction-status.d.ts.map +1 -0
- package/dist/examples/bridge/wallet-balances.d.ts +24 -0
- package/dist/examples/bridge/wallet-balances.d.ts.map +1 -0
- package/dist/examples/bridge/wrap-discovery.d.ts +16 -0
- package/dist/examples/bridge/wrap-discovery.d.ts.map +1 -0
- package/dist/examples/bridge/wrap-fee-estimation.d.ts +16 -0
- package/dist/examples/bridge/wrap-fee-estimation.d.ts.map +1 -0
- package/dist/examples/bridge/wrap-unwrap.d.ts +18 -0
- package/dist/examples/bridge/wrap-unwrap.d.ts.map +1 -0
- package/dist/examples/bridge/wrap-utilities.d.ts +21 -0
- package/dist/examples/bridge/wrap-utilities.d.ts.map +1 -0
- package/dist/examples/calculations/calculation-methods-comprehensive.d.ts +24 -0
- package/dist/examples/calculations/calculation-methods-comprehensive.d.ts.map +1 -0
- package/dist/examples/calculations/external-calculations-demo.d.ts +23 -0
- package/dist/examples/calculations/external-calculations-demo.d.ts.map +1 -0
- package/dist/examples/calculations/local-calculations-demo.d.ts +24 -0
- package/dist/examples/calculations/local-calculations-demo.d.ts.map +1 -0
- package/dist/examples/calculations/pool-calculation-context.d.ts +19 -0
- package/dist/examples/calculations/pool-calculation-context.d.ts.map +1 -0
- package/dist/examples/chat/basic-chat.d.ts +17 -0
- package/dist/examples/chat/basic-chat.d.ts.map +1 -0
- package/dist/examples/chat/chat-admin-controls.d.ts +41 -0
- package/dist/examples/chat/chat-admin-controls.d.ts.map +1 -0
- package/dist/examples/chat/chat-demo.d.ts +25 -0
- package/dist/examples/chat/chat-demo.d.ts.map +1 -0
- package/dist/examples/chat/chat-engagement-stats.d.ts +44 -0
- package/dist/examples/chat/chat-engagement-stats.d.ts.map +1 -0
- package/dist/examples/chat/chat-lifecycle.d.ts +26 -0
- package/dist/examples/chat/chat-lifecycle.d.ts.map +1 -0
- package/dist/examples/chat/chat-message-management.d.ts +18 -0
- package/dist/examples/chat/chat-message-management.d.ts.map +1 -0
- package/dist/examples/chat/chat-pinning-workflow.d.ts +37 -0
- package/dist/examples/chat/chat-pinning-workflow.d.ts.map +1 -0
- package/dist/examples/chat/demo-pin-messages.d.ts +17 -0
- package/dist/examples/chat/demo-pin-messages.d.ts.map +1 -0
- package/dist/examples/chat/multi-user-chat-test.d.ts +19 -0
- package/dist/examples/chat/multi-user-chat-test.d.ts.map +1 -0
- package/dist/examples/chat/quick-reaction-test.d.ts +4 -0
- package/dist/examples/chat/quick-reaction-test.d.ts.map +1 -0
- package/dist/examples/chat/typing-indicators.d.ts +23 -0
- package/dist/examples/chat/typing-indicators.d.ts.map +1 -0
- package/dist/examples/chat/websocket-chat.d.ts +21 -0
- package/dist/examples/chat/websocket-chat.d.ts.map +1 -0
- package/dist/examples/comments/basic-comments.d.ts +19 -0
- package/dist/examples/comments/basic-comments.d.ts.map +1 -0
- package/dist/examples/comments/comments-demo.d.ts +34 -0
- package/dist/examples/comments/comments-demo.d.ts.map +1 -0
- package/dist/examples/comments/comments-lifecycle.d.ts +24 -0
- package/dist/examples/comments/comments-lifecycle.d.ts.map +1 -0
- package/dist/examples/comments/comments-update-workflow.d.ts +35 -0
- package/dist/examples/comments/comments-update-workflow.d.ts.map +1 -0
- package/dist/examples/content/content-categorization.d.ts +51 -0
- package/dist/examples/content/content-categorization.d.ts.map +1 -0
- package/dist/examples/content/content-publishing-workflow.d.ts +45 -0
- package/dist/examples/content/content-publishing-workflow.d.ts.map +1 -0
- package/dist/examples/content/content-versioning.d.ts +52 -0
- package/dist/examples/content/content-versioning.d.ts.map +1 -0
- package/dist/examples/content-flags/comprehensive-flag-workflow.d.ts +40 -0
- package/dist/examples/content-flags/comprehensive-flag-workflow.d.ts.map +1 -0
- package/dist/examples/content-flags/flag-management.d.ts +28 -0
- package/dist/examples/content-flags/flag-management.d.ts.map +1 -0
- package/dist/examples/content-reactions/advanced-reactions.d.ts +24 -0
- package/dist/examples/content-reactions/advanced-reactions.d.ts.map +1 -0
- package/dist/examples/content-reactions/basic-reactions.d.ts +21 -0
- package/dist/examples/content-reactions/basic-reactions.d.ts.map +1 -0
- package/dist/examples/content-reactions/comprehensive-reactions-workflow.d.ts +41 -0
- package/dist/examples/content-reactions/comprehensive-reactions-workflow.d.ts.map +1 -0
- package/dist/examples/content-reactions/content-reactions-advanced.d.ts +40 -0
- package/dist/examples/content-reactions/content-reactions-advanced.d.ts.map +1 -0
- package/dist/examples/core/authenticated-operations.d.ts +14 -0
- package/dist/examples/core/authenticated-operations.d.ts.map +1 -0
- package/dist/examples/core/complete-sdk-demo.d.ts +22 -0
- package/dist/examples/core/complete-sdk-demo.d.ts.map +1 -0
- package/dist/examples/core/image-uploads.d.ts +28 -0
- package/dist/examples/core/image-uploads.d.ts.map +1 -0
- package/dist/examples/core/privatekey-override-pattern.d.ts +16 -0
- package/dist/examples/core/privatekey-override-pattern.d.ts.map +1 -0
- package/dist/examples/core/read-only-operations.d.ts +16 -0
- package/dist/examples/core/read-only-operations.d.ts.map +1 -0
- package/dist/examples/core/session-auth-demo.d.ts +15 -0
- package/dist/examples/core/session-auth-demo.d.ts.map +1 -0
- package/dist/examples/core/session-auth-lifecycle.d.ts +19 -0
- package/dist/examples/core/session-auth-lifecycle.d.ts.map +1 -0
- package/dist/examples/core/test-pagination-fix.d.ts +14 -0
- package/dist/examples/core/test-pagination-fix.d.ts.map +1 -0
- package/dist/examples/core/token-refresh-utilities.d.ts +18 -0
- package/dist/examples/core/token-refresh-utilities.d.ts.map +1 -0
- package/dist/examples/core/token-validation.d.ts +18 -0
- package/dist/examples/core/token-validation.d.ts.map +1 -0
- package/dist/examples/core/wallet-management.d.ts +23 -0
- package/dist/examples/core/wallet-management.d.ts.map +1 -0
- package/dist/examples/debug/check-recorded-bridge-tx.d.ts +8 -0
- package/dist/examples/debug/check-recorded-bridge-tx.d.ts.map +1 -0
- package/dist/examples/debug/debug-comment.d.ts +2 -0
- package/dist/examples/debug/debug-comment.d.ts.map +1 -0
- package/dist/examples/debug/test-volume-data-bounds-prod.d.ts +15 -0
- package/dist/examples/debug/test-volume-data-bounds-prod.d.ts.map +1 -0
- package/dist/examples/debug/test-volume-data-bounds.d.ts +14 -0
- package/dist/examples/debug/test-volume-data-bounds.d.ts.map +1 -0
- package/dist/examples/debug/websocket-event-discovery.d.ts +26 -0
- package/dist/examples/debug/websocket-event-discovery.d.ts.map +1 -0
- package/dist/examples/debug/websocket-monitor.d.ts +15 -0
- package/dist/examples/debug/websocket-monitor.d.ts.map +1 -0
- package/dist/examples/debug-single-trade.d.ts +6 -0
- package/dist/examples/debug-single-trade.d.ts.map +1 -0
- package/dist/examples/demo-librarian.d.ts +18 -0
- package/dist/examples/demo-librarian.d.ts.map +1 -0
- package/dist/examples/demo-runner.d.ts +22 -0
- package/dist/examples/demo-runner.d.ts.map +1 -0
- package/dist/examples/dex/demo-roundtrip-liquidity.d.ts +16 -0
- package/dist/examples/dex/demo-roundtrip-liquidity.d.ts.map +1 -0
- package/dist/examples/dex/dex-impermanent-loss-analysis.d.ts +28 -0
- package/dist/examples/dex/dex-impermanent-loss-analysis.d.ts.map +1 -0
- package/dist/examples/dex/dex-liquidity-management-advanced.d.ts +27 -0
- package/dist/examples/dex/dex-liquidity-management-advanced.d.ts.map +1 -0
- package/dist/examples/dex/dex-multi-hop-swaps.d.ts +32 -0
- package/dist/examples/dex/dex-multi-hop-swaps.d.ts.map +1 -0
- package/dist/examples/dex/dex-pool-pricing.d.ts +20 -0
- package/dist/examples/dex/dex-pool-pricing.d.ts.map +1 -0
- package/dist/examples/dex/dex-quote-calculations.d.ts +21 -0
- package/dist/examples/dex/dex-quote-calculations.d.ts.map +1 -0
- package/dist/examples/dex/dex-seasons-leaderboard.d.ts +22 -0
- package/dist/examples/dex/dex-seasons-leaderboard.d.ts.map +1 -0
- package/dist/examples/dex/dex-slippage-protection.d.ts +28 -0
- package/dist/examples/dex/dex-slippage-protection.d.ts.map +1 -0
- package/dist/examples/dex/dex-tokens-discovery.d.ts +20 -0
- package/dist/examples/dex/dex-tokens-discovery.d.ts.map +1 -0
- package/dist/examples/dex/dex-volume-analytics.d.ts +19 -0
- package/dist/examples/dex/dex-volume-analytics.d.ts.map +1 -0
- package/dist/examples/dex/leaderboard.d.ts +12 -0
- package/dist/examples/dex/leaderboard.d.ts.map +1 -0
- package/dist/examples/dex/pool-discovery.d.ts +25 -0
- package/dist/examples/dex/pool-discovery.d.ts.map +1 -0
- package/dist/examples/dex/pools-with-pricing.d.ts +28 -0
- package/dist/examples/dex/pools-with-pricing.d.ts.map +1 -0
- package/dist/examples/dex/quote-comparison.d.ts +16 -0
- package/dist/examples/dex/quote-comparison.d.ts.map +1 -0
- package/dist/examples/dex/swap-user-assets-comprehensive.d.ts +20 -0
- package/dist/examples/dex/swap-user-assets-comprehensive.d.ts.map +1 -0
- package/dist/examples/dex/swap-workflow.d.ts +20 -0
- package/dist/examples/dex/swap-workflow.d.ts.map +1 -0
- package/dist/examples/dex/token-discovery.d.ts +27 -0
- package/dist/examples/dex/token-discovery.d.ts.map +1 -0
- package/dist/examples/dex/volume-summary.d.ts +12 -0
- package/dist/examples/dex/volume-summary.d.ts.map +1 -0
- package/dist/examples/error-handling/error-recovery-patterns.d.ts +42 -0
- package/dist/examples/error-handling/error-recovery-patterns.d.ts.map +1 -0
- package/dist/examples/error-handling/timeout-management.d.ts +43 -0
- package/dist/examples/error-handling/timeout-management.d.ts.map +1 -0
- package/dist/examples/events/event-aggregation-analysis.d.ts +40 -0
- package/dist/examples/events/event-aggregation-analysis.d.ts.map +1 -0
- package/dist/examples/events/event-emission-patterns.d.ts +35 -0
- package/dist/examples/events/event-emission-patterns.d.ts.map +1 -0
- package/dist/examples/events/subscription-management-advanced.d.ts +38 -0
- package/dist/examples/events/subscription-management-advanced.d.ts.map +1 -0
- package/dist/examples/fees/complete-fee-test.d.ts +13 -0
- package/dist/examples/fees/complete-fee-test.d.ts.map +1 -0
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts +27 -0
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts.map +1 -0
- package/dist/examples/fees/demo-fees-high-volume.d.ts +13 -0
- package/dist/examples/fees/demo-fees-high-volume.d.ts.map +1 -0
- package/dist/examples/fees/demo-multi-wallet-fee-generation.d.ts +13 -0
- package/dist/examples/fees/demo-multi-wallet-fee-generation.d.ts.map +1 -0
- package/dist/examples/fees/trade-and-collect-fees.d.ts +13 -0
- package/dist/examples/fees/trade-and-collect-fees.d.ts.map +1 -0
- package/dist/examples/galachain/bundler-transactions.d.ts +28 -0
- package/dist/examples/galachain/bundler-transactions.d.ts.map +1 -0
- package/dist/examples/galachain/galachain-token-resolution.d.ts +28 -0
- package/dist/examples/galachain/galachain-token-resolution.d.ts.map +1 -0
- package/dist/examples/galachain/galachain-tokens.d.ts +28 -0
- package/dist/examples/galachain/galachain-tokens.d.ts.map +1 -0
- package/dist/examples/galachain/galachain-transfers.d.ts +25 -0
- package/dist/examples/galachain/galachain-transfers.d.ts.map +1 -0
- package/dist/examples/global-feed-demo.d.ts +17 -0
- package/dist/examples/global-feed-demo.d.ts.map +1 -0
- package/dist/examples/global-feed-filtering-demo.d.ts +20 -0
- package/dist/examples/global-feed-filtering-demo.d.ts.map +1 -0
- package/dist/examples/launchpad/demo-socials.d.ts +16 -0
- package/dist/examples/launchpad/demo-socials.d.ts.map +1 -0
- package/dist/examples/launchpad/fetch-token-stats.d.ts +18 -0
- package/dist/examples/launchpad/fetch-token-stats.d.ts.map +1 -0
- package/dist/examples/launchpad/update-token-config.d.ts +17 -0
- package/dist/examples/launchpad/update-token-config.d.ts.map +1 -0
- package/dist/examples/liquidity/apr-calculator.d.ts +18 -0
- package/dist/examples/liquidity/apr-calculator.d.ts.map +1 -0
- package/dist/examples/liquidity/demo-bundler-operations.d.ts +15 -0
- package/dist/examples/liquidity/demo-bundler-operations.d.ts.map +1 -0
- package/dist/examples/liquidity/demo-fetch-all-positions.d.ts +2 -0
- package/dist/examples/liquidity/demo-fetch-all-positions.d.ts.map +1 -0
- package/dist/examples/liquidity/demo-position-direct.d.ts +14 -0
- package/dist/examples/liquidity/demo-position-direct.d.ts.map +1 -0
- package/dist/examples/liquidity/demo-positions-with-chunked-pricing.d.ts +26 -0
- package/dist/examples/liquidity/demo-positions-with-chunked-pricing.d.ts.map +1 -0
- package/dist/examples/liquidity/demo-roundtrip-remove.d.ts +21 -0
- package/dist/examples/liquidity/demo-roundtrip-remove.d.ts.map +1 -0
- package/dist/examples/liquidity/detailed.d.ts +21 -0
- package/dist/examples/liquidity/detailed.d.ts.map +1 -0
- package/dist/examples/liquidity/errors.d.ts +18 -0
- package/dist/examples/liquidity/errors.d.ts.map +1 -0
- package/dist/examples/liquidity/fee-collection.d.ts +22 -0
- package/dist/examples/liquidity/fee-collection.d.ts.map +1 -0
- package/dist/examples/liquidity/liquidity-position-details.d.ts +21 -0
- package/dist/examples/liquidity/liquidity-position-details.d.ts.map +1 -0
- package/dist/examples/liquidity/liquidity-removal-estimation.d.ts +19 -0
- package/dist/examples/liquidity/liquidity-removal-estimation.d.ts.map +1 -0
- package/dist/examples/liquidity/multi-position.d.ts +22 -0
- package/dist/examples/liquidity/multi-position.d.ts.map +1 -0
- package/dist/examples/liquidity/positions-cli.d.ts +41 -0
- package/dist/examples/liquidity/positions-cli.d.ts.map +1 -0
- package/dist/examples/liquidity/ticks.d.ts +18 -0
- package/dist/examples/liquidity/ticks.d.ts.map +1 -0
- package/dist/examples/locks/burn-tokens.d.ts +25 -0
- package/dist/examples/locks/burn-tokens.d.ts.map +1 -0
- package/dist/examples/locks/lock-unlock-workflow.d.ts +20 -0
- package/dist/examples/locks/lock-unlock-workflow.d.ts.map +1 -0
- package/dist/examples/messages/messages-lifecycle.d.ts +37 -0
- package/dist/examples/messages/messages-lifecycle.d.ts.map +1 -0
- package/dist/examples/messages/messages-pinning.d.ts +37 -0
- package/dist/examples/messages/messages-pinning.d.ts.map +1 -0
- package/dist/examples/moderators/claim-invite.d.ts +28 -0
- package/dist/examples/moderators/claim-invite.d.ts.map +1 -0
- package/dist/examples/moderators/invite-management.d.ts +30 -0
- package/dist/examples/moderators/invite-management.d.ts.map +1 -0
- package/dist/examples/moderators/moderated-tokens-portfolio.d.ts +18 -0
- package/dist/examples/moderators/moderated-tokens-portfolio.d.ts.map +1 -0
- package/dist/examples/monitoring/demo-stream-events.d.ts +17 -0
- package/dist/examples/monitoring/demo-stream-events.d.ts.map +1 -0
- package/dist/examples/monitoring/demo-watch-pools.d.ts +18 -0
- package/dist/examples/monitoring/demo-watch-pools.d.ts.map +1 -0
- package/dist/examples/monitoring/demo-watch-tokens.d.ts +18 -0
- package/dist/examples/monitoring/demo-watch-tokens.d.ts.map +1 -0
- package/dist/examples/monitoring/fees-collection-e2e.d.ts +36 -0
- package/dist/examples/monitoring/fees-collection-e2e.d.ts.map +1 -0
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts +49 -0
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts.map +1 -0
- package/dist/examples/monitoring/liquidity-e2e-test.d.ts +15 -0
- package/dist/examples/monitoring/liquidity-e2e-test.d.ts.map +1 -0
- package/dist/examples/monitoring/liquidity-monitor.d.ts +17 -0
- package/dist/examples/monitoring/liquidity-monitor.d.ts.map +1 -0
- package/dist/examples/monitoring/pool-creation-integration.d.ts +27 -0
- package/dist/examples/monitoring/pool-creation-integration.d.ts.map +1 -0
- package/dist/examples/monitoring/pool-liquidity-tracker.d.ts +15 -0
- package/dist/examples/monitoring/pool-liquidity-tracker.d.ts.map +1 -0
- package/dist/examples/monitoring/subscribe-liquidity-added.d.ts +30 -0
- package/dist/examples/monitoring/subscribe-liquidity-added.d.ts.map +1 -0
- package/dist/examples/monitoring/subscribe-liquidity-removed.d.ts +30 -0
- package/dist/examples/monitoring/subscribe-liquidity-removed.d.ts.map +1 -0
- package/dist/examples/monitoring/subscribe-pool-creations.d.ts +29 -0
- package/dist/examples/monitoring/subscribe-pool-creations.d.ts.map +1 -0
- package/dist/examples/monitoring/subscribe-token-creations.d.ts +21 -0
- package/dist/examples/monitoring/subscribe-token-creations.d.ts.map +1 -0
- package/dist/examples/monitoring/token-creation-integration.d.ts +32 -0
- package/dist/examples/monitoring/token-creation-integration.d.ts.map +1 -0
- package/dist/examples/monitoring/websocket-event-handlers.d.ts +22 -0
- package/dist/examples/monitoring/websocket-event-handlers.d.ts.map +1 -0
- package/dist/examples/nft/demo-collection-management.d.ts +13 -0
- package/dist/examples/nft/demo-collection-management.d.ts.map +1 -0
- package/dist/examples/nft/demo-fee-calculations.d.ts +14 -0
- package/dist/examples/nft/demo-fee-calculations.d.ts.map +1 -0
- package/dist/examples/nft/demo-minting.d.ts +13 -0
- package/dist/examples/nft/demo-minting.d.ts.map +1 -0
- package/dist/examples/nft/demo-portfolio-query.d.ts +14 -0
- package/dist/examples/nft/demo-portfolio-query.d.ts.map +1 -0
- package/dist/examples/nft/nft-collection-lifecycle.d.ts +22 -0
- package/dist/examples/nft/nft-collection-lifecycle.d.ts.map +1 -0
- package/dist/examples/nft/nft-data-queries.d.ts +22 -0
- package/dist/examples/nft/nft-data-queries.d.ts.map +1 -0
- package/dist/examples/nft/nft-fee-estimation.d.ts +23 -0
- package/dist/examples/nft/nft-fee-estimation.d.ts.map +1 -0
- package/dist/examples/nft/nft-token-creation.d.ts +22 -0
- package/dist/examples/nft/nft-token-creation.d.ts.map +1 -0
- package/dist/examples/nft/nft-utilities.d.ts +23 -0
- package/dist/examples/nft/nft-utilities.d.ts.map +1 -0
- package/dist/examples/orchestrator-master.d.ts +22 -0
- package/dist/examples/orchestrator-master.d.ts.map +1 -0
- package/dist/examples/orchestrator-tasks.d.ts +38 -0
- package/dist/examples/orchestrator-tasks.d.ts.map +1 -0
- package/dist/examples/overseers/claim-invite.d.ts +31 -0
- package/dist/examples/overseers/claim-invite.d.ts.map +1 -0
- package/dist/examples/overseers/demo-list-users.d.ts +19 -0
- package/dist/examples/overseers/demo-list-users.d.ts.map +1 -0
- package/dist/examples/overseers/direct-promotion.d.ts +39 -0
- package/dist/examples/overseers/direct-promotion.d.ts.map +1 -0
- package/dist/examples/overseers/invite-management.d.ts +38 -0
- package/dist/examples/overseers/invite-management.d.ts.map +1 -0
- package/dist/examples/overseers/restricted-names-management.d.ts +27 -0
- package/dist/examples/overseers/restricted-names-management.d.ts.map +1 -0
- package/dist/examples/performance/caching-strategies-advanced.d.ts +28 -0
- package/dist/examples/performance/caching-strategies-advanced.d.ts.map +1 -0
- package/dist/examples/performance/performance-optimization-patterns.d.ts +28 -0
- package/dist/examples/performance/performance-optimization-patterns.d.ts.map +1 -0
- package/dist/examples/persistence/data-backup-recovery.d.ts +119 -0
- package/dist/examples/persistence/data-backup-recovery.d.ts.map +1 -0
- package/dist/examples/persistence/local-storage-patterns.d.ts +86 -0
- package/dist/examples/persistence/local-storage-patterns.d.ts.map +1 -0
- package/dist/examples/queries/advanced-sorting.d.ts +28 -0
- package/dist/examples/queries/advanced-sorting.d.ts.map +1 -0
- package/dist/examples/queries/complex-filtering.d.ts +27 -0
- package/dist/examples/queries/complex-filtering.d.ts.map +1 -0
- package/dist/examples/security/security-audit-trail.d.ts +42 -0
- package/dist/examples/security/security-audit-trail.d.ts.map +1 -0
- package/dist/examples/security/security-content-moderation-advanced.d.ts +42 -0
- package/dist/examples/security/security-content-moderation-advanced.d.ts.map +1 -0
- package/dist/examples/security/security-token-safety-checks.d.ts +41 -0
- package/dist/examples/security/security-token-safety-checks.d.ts.map +1 -0
- package/dist/examples/security/security-user-restrictions-advanced.d.ts +42 -0
- package/dist/examples/security/security-user-restrictions-advanced.d.ts.map +1 -0
- package/dist/examples/site-config-demo.d.ts +20 -0
- package/dist/examples/site-config-demo.d.ts.map +1 -0
- package/dist/examples/streaming/admin-controls.d.ts +30 -0
- package/dist/examples/streaming/admin-controls.d.ts.map +1 -0
- package/dist/examples/streaming/advanced-stream-demo.d.ts +28 -0
- package/dist/examples/streaming/advanced-stream-demo.d.ts.map +1 -0
- package/dist/examples/streaming/basic-stream.d.ts +17 -0
- package/dist/examples/streaming/basic-stream.d.ts.map +1 -0
- package/dist/examples/streaming/demo-countdown.d.ts +16 -0
- package/dist/examples/streaming/demo-countdown.d.ts.map +1 -0
- package/dist/examples/streaming/demo-get-stream-credentials.d.ts +29 -0
- package/dist/examples/streaming/demo-get-stream-credentials.d.ts.map +1 -0
- package/dist/examples/streaming/demo-platform-config.d.ts +20 -0
- package/dist/examples/streaming/demo-platform-config.d.ts.map +1 -0
- package/dist/examples/streaming/engagement-stats.d.ts +25 -0
- package/dist/examples/streaming/engagement-stats.d.ts.map +1 -0
- package/dist/examples/streaming/recordings.d.ts +16 -0
- package/dist/examples/streaming/recordings.d.ts.map +1 -0
- package/dist/examples/streaming/simulcast.d.ts +19 -0
- package/dist/examples/streaming/simulcast.d.ts.map +1 -0
- package/dist/examples/streaming/stream-access-control.d.ts +30 -0
- package/dist/examples/streaming/stream-access-control.d.ts.map +1 -0
- package/dist/examples/streaming/stream-control.d.ts +25 -0
- package/dist/examples/streaming/stream-control.d.ts.map +1 -0
- package/dist/examples/streaming/stream-countdown.d.ts +31 -0
- package/dist/examples/streaming/stream-countdown.d.ts.map +1 -0
- package/dist/examples/streaming/stream-enable-disable.d.ts +31 -0
- package/dist/examples/streaming/stream-enable-disable.d.ts.map +1 -0
- package/dist/examples/streaming/stream-key-management.d.ts +21 -0
- package/dist/examples/streaming/stream-key-management.d.ts.map +1 -0
- package/dist/examples/streaming/stream-recording-management.d.ts +29 -0
- package/dist/examples/streaming/stream-recording-management.d.ts.map +1 -0
- package/dist/examples/streaming/stream-simulcast-multi-platform.d.ts +38 -0
- package/dist/examples/streaming/stream-simulcast-multi-platform.d.ts.map +1 -0
- package/dist/examples/streaming/stream-viewer-analytics.d.ts +43 -0
- package/dist/examples/streaming/stream-viewer-analytics.d.ts.map +1 -0
- package/dist/examples/streaming/streaming-lifecycle.d.ts +26 -0
- package/dist/examples/streaming/streaming-lifecycle.d.ts.map +1 -0
- package/dist/examples/streaming-premium/stream-monetization-setup.d.ts +47 -0
- package/dist/examples/streaming-premium/stream-monetization-setup.d.ts.map +1 -0
- package/dist/examples/streaming-premium/stream-revenue-analytics.d.ts +56 -0
- package/dist/examples/streaming-premium/stream-revenue-analytics.d.ts.map +1 -0
- package/dist/examples/streaming-premium/stream-vip-management.d.ts +56 -0
- package/dist/examples/streaming-premium/stream-vip-management.d.ts.map +1 -0
- package/dist/examples/swap-monitoring/arbitrage-monitor.d.ts +20 -0
- package/dist/examples/swap-monitoring/arbitrage-monitor.d.ts.map +1 -0
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts +50 -0
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts.map +1 -0
- package/dist/examples/swap-monitoring/health-monitor.d.ts +10 -0
- package/dist/examples/swap-monitoring/health-monitor.d.ts.map +1 -0
- package/dist/examples/swap-monitoring/volume-monitor.d.ts +20 -0
- package/dist/examples/swap-monitoring/volume-monitor.d.ts.map +1 -0
- package/dist/examples/testing/demo-test-runner.d.ts +33 -0
- package/dist/examples/testing/demo-test-runner.d.ts.map +1 -0
- package/dist/examples/testing/error-classifier.d.ts +23 -0
- package/dist/examples/testing/error-classifier.d.ts.map +1 -0
- package/dist/examples/testing/index.d.ts +14 -0
- package/dist/examples/testing/index.d.ts.map +1 -0
- package/dist/examples/testing/memory-manager.d.ts +31 -0
- package/dist/examples/testing/memory-manager.d.ts.map +1 -0
- package/dist/examples/testing/report-generator.d.ts +31 -0
- package/dist/examples/testing/report-generator.d.ts.map +1 -0
- package/dist/examples/testing/test-result-types.d.ts +158 -0
- package/dist/examples/testing/test-result-types.d.ts.map +1 -0
- package/dist/examples/token-bans/token-ban-management.d.ts +32 -0
- package/dist/examples/token-bans/token-ban-management.d.ts.map +1 -0
- package/dist/examples/token-creation/token-launch-complete.d.ts +20 -0
- package/dist/examples/token-creation/token-launch-complete.d.ts.map +1 -0
- package/dist/examples/token-creation/token-validation-comprehensive.d.ts +22 -0
- package/dist/examples/token-creation/token-validation-comprehensive.d.ts.map +1 -0
- package/dist/examples/token-info/token-name-resolution.d.ts +30 -0
- package/dist/examples/token-info/token-name-resolution.d.ts.map +1 -0
- package/dist/examples/token-info/token-operations-comprehensive.d.ts +22 -0
- package/dist/examples/token-info/token-operations-comprehensive.d.ts.map +1 -0
- package/dist/examples/token-metadata/token-description-versioning.d.ts +33 -0
- package/dist/examples/token-metadata/token-description-versioning.d.ts.map +1 -0
- package/dist/examples/token-metadata/token-image-management.d.ts +34 -0
- package/dist/examples/token-metadata/token-image-management.d.ts.map +1 -0
- package/dist/examples/token-metadata/token-social-links-management.d.ts +34 -0
- package/dist/examples/token-metadata/token-social-links-management.d.ts.map +1 -0
- package/dist/examples/trading/buy-sell-aliases.d.ts +20 -0
- package/dist/examples/trading/buy-sell-aliases.d.ts.map +1 -0
- package/dist/examples/trading/volume-data-demo.d.ts +20 -0
- package/dist/examples/trading/volume-data-demo.d.ts.map +1 -0
- package/dist/examples/trading-advanced/dollar-cost-averaging.d.ts +35 -0
- package/dist/examples/trading-advanced/dollar-cost-averaging.d.ts.map +1 -0
- package/dist/examples/trading-advanced/limit-orders-advanced.d.ts +34 -0
- package/dist/examples/trading-advanced/limit-orders-advanced.d.ts.map +1 -0
- package/dist/examples/trading-advanced/stop-loss-orders.d.ts +34 -0
- package/dist/examples/trading-advanced/stop-loss-orders.d.ts.map +1 -0
- package/dist/examples/trading-advanced/trading-history-analysis.d.ts +35 -0
- package/dist/examples/trading-advanced/trading-history-analysis.d.ts.map +1 -0
- package/dist/examples/users/balance-queries.d.ts +28 -0
- package/dist/examples/users/balance-queries.d.ts.map +1 -0
- package/dist/examples/users/fetch-user-balances.d.ts +19 -0
- package/dist/examples/users/fetch-user-balances.d.ts.map +1 -0
- package/dist/examples/users/fetch-user-report.d.ts +21 -0
- package/dist/examples/users/fetch-user-report.d.ts.map +1 -0
- package/dist/examples/users/profile-images.d.ts +24 -0
- package/dist/examples/users/profile-images.d.ts.map +1 -0
- package/dist/examples/users/profile-management.d.ts +22 -0
- package/dist/examples/users/profile-management.d.ts.map +1 -0
- package/dist/examples/users/referrals-comprehensive.d.ts +26 -0
- package/dist/examples/users/referrals-comprehensive.d.ts.map +1 -0
- package/dist/examples/users/wallet-balances-external.d.ts +28 -0
- package/dist/examples/users/wallet-balances-external.d.ts.map +1 -0
- package/dist/examples/utilities/account.d.ts +19 -0
- package/dist/examples/utilities/account.d.ts.map +1 -0
- package/dist/examples/utilities/balance.d.ts +5 -0
- package/dist/examples/utilities/balance.d.ts.map +1 -0
- package/dist/examples/utilities/balances.d.ts +7 -0
- package/dist/examples/utilities/balances.d.ts.map +1 -0
- package/dist/examples/utilities/demo-cache.d.ts +13 -0
- package/dist/examples/utilities/demo-cache.d.ts.map +1 -0
- package/dist/examples/utilities/demo-token-supply.d.ts +14 -0
- package/dist/examples/utilities/demo-token-supply.d.ts.map +1 -0
- package/dist/examples/utilities/key-derivation.d.ts +12 -0
- package/dist/examples/utilities/key-derivation.d.ts.map +1 -0
- package/dist/examples/utilities/multi-token-portfolio.d.ts +18 -0
- package/dist/examples/utilities/multi-token-portfolio.d.ts.map +1 -0
- package/dist/examples/utilities/pool-discovery-advanced.d.ts +36 -0
- package/dist/examples/utilities/pool-discovery-advanced.d.ts.map +1 -0
- package/dist/examples/utilities/pool-pair-analysis.d.ts +37 -0
- package/dist/examples/utilities/pool-pair-analysis.d.ts.map +1 -0
- package/dist/examples/utilities/price-history.d.ts +22 -0
- package/dist/examples/utilities/price-history.d.ts.map +1 -0
- package/dist/examples/utilities/referrals.d.ts +21 -0
- package/dist/examples/utilities/referrals.d.ts.map +1 -0
- package/dist/examples/utilities/token-classification.d.ts +38 -0
- package/dist/examples/utilities/token-classification.d.ts.map +1 -0
- package/dist/examples/utilities/token-discovery.d.ts +26 -0
- package/dist/examples/utilities/token-discovery.d.ts.map +1 -0
- package/dist/examples/utilities/token-metadata-advanced.d.ts +37 -0
- package/dist/examples/utilities/token-metadata-advanced.d.ts.map +1 -0
- package/dist/examples/utilities/token-validation-complete.d.ts +41 -0
- package/dist/examples/utilities/token-validation-complete.d.ts.map +1 -0
- package/dist/examples/utilities/trade-history.d.ts +19 -0
- package/dist/examples/utilities/trade-history.d.ts.map +1 -0
- package/dist/examples/utilities/transfers.d.ts +29 -0
- package/dist/examples/utilities/transfers.d.ts.map +1 -0
- package/dist/examples/utilities/validation-and-error-handling.d.ts +27 -0
- package/dist/examples/utilities/validation-and-error-handling.d.ts.map +1 -0
- package/dist/examples/utilities/wrappable-tokens.d.ts +27 -0
- package/dist/examples/utilities/wrappable-tokens.d.ts.map +1 -0
- package/dist/examples/utility/auth-utilities.d.ts +30 -0
- package/dist/examples/utility/auth-utilities.d.ts.map +1 -0
- package/dist/examples/utility/pool-utilities.d.ts +29 -0
- package/dist/examples/utility/pool-utilities.d.ts.map +1 -0
- package/dist/examples/utility/sdk-configuration.d.ts +29 -0
- package/dist/examples/utility/sdk-configuration.d.ts.map +1 -0
- package/dist/examples/utility/wallet-management-advanced.d.ts +32 -0
- package/dist/examples/utility/wallet-management-advanced.d.ts.map +1 -0
- package/dist/examples/utils/auth-bootstrap.d.ts +123 -0
- package/dist/examples/utils/auth-bootstrap.d.ts.map +1 -0
- package/dist/examples/utils/balance-checking.d.ts +158 -0
- package/dist/examples/utils/balance-checking.d.ts.map +1 -0
- package/dist/examples/utils/bridge-formatters.d.ts +188 -0
- package/dist/examples/utils/bridge-formatters.d.ts.map +1 -0
- package/dist/examples/utils/bridge-setup.d.ts +235 -0
- package/dist/examples/utils/bridge-setup.d.ts.map +1 -0
- package/dist/examples/utils/bridge-transaction-logger.d.ts +42 -0
- package/dist/examples/utils/bridge-transaction-logger.d.ts.map +1 -0
- package/dist/examples/utils/cli-input.d.ts +41 -0
- package/dist/examples/utils/cli-input.d.ts.map +1 -0
- package/dist/examples/utils/demo-config.d.ts +155 -0
- package/dist/examples/utils/demo-config.d.ts.map +1 -0
- package/dist/examples/utils/demo-registry.d.ts +155 -0
- package/dist/examples/utils/demo-registry.d.ts.map +1 -0
- package/dist/examples/utils/error-handler.d.ts +85 -0
- package/dist/examples/utils/error-handler.d.ts.map +1 -0
- package/dist/examples/utils/formatting.d.ts +195 -0
- package/dist/examples/utils/formatting.d.ts.map +1 -0
- package/dist/examples/utils/get-environment.d.ts +17 -0
- package/dist/examples/utils/get-environment.d.ts.map +1 -0
- package/dist/examples/utils/index.d.ts +44 -0
- package/dist/examples/utils/index.d.ts.map +1 -0
- package/dist/examples/utils/indexing.d.ts +48 -0
- package/dist/examples/utils/indexing.d.ts.map +1 -0
- package/dist/examples/utils/load-env.d.ts +90 -0
- package/dist/examples/utils/load-env.d.ts.map +1 -0
- package/dist/examples/utils/pool-helpers.d.ts +226 -0
- package/dist/examples/utils/pool-helpers.d.ts.map +1 -0
- package/dist/examples/utils/punchlist.d.ts +104 -0
- package/dist/examples/utils/punchlist.d.ts.map +1 -0
- package/dist/examples/utils/sdk-setup.d.ts +423 -0
- package/dist/examples/utils/sdk-setup.d.ts.map +1 -0
- package/dist/examples/utils/suppress-logging.d.ts +11 -0
- package/dist/examples/utils/suppress-logging.d.ts.map +1 -0
- package/dist/examples/utils/token-naming.d.ts +117 -0
- package/dist/examples/utils/token-naming.d.ts.map +1 -0
- package/dist/examples/utils/trade-helpers.d.ts +195 -0
- package/dist/examples/utils/trade-helpers.d.ts.map +1 -0
- package/dist/examples/utils/transaction-helpers.d.ts +92 -0
- package/dist/examples/utils/transaction-helpers.d.ts.map +1 -0
- package/dist/examples/wallet/wallet-initialization-complete.d.ts +31 -0
- package/dist/examples/wallet/wallet-initialization-complete.d.ts.map +1 -0
- package/dist/examples/wallet/wallet-key-rotation.d.ts +28 -0
- package/dist/examples/wallet/wallet-key-rotation.d.ts.map +1 -0
- package/dist/examples/wallet/wallet-recovery-patterns.d.ts +29 -0
- package/dist/examples/wallet/wallet-recovery-patterns.d.ts.map +1 -0
- package/dist/examples/wallet/wallet-signature-operations.d.ts +28 -0
- package/dist/examples/wallet/wallet-signature-operations.d.ts.map +1 -0
- package/dist/examples/wallet-tracking/wallet-balance-monitoring.d.ts +21 -0
- package/dist/examples/wallet-tracking/wallet-balance-monitoring.d.ts.map +1 -0
- package/dist/examples/wallet-tracking/wallet-portfolio-alerts.d.ts +21 -0
- package/dist/examples/wallet-tracking/wallet-portfolio-alerts.d.ts.map +1 -0
- package/dist/examples/wallet-tracking/wallet-transaction-tracking.d.ts +21 -0
- package/dist/examples/wallet-tracking/wallet-transaction-tracking.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-chat-advanced.d.ts +26 -0
- package/dist/examples/websocket/websocket-chat-advanced.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-chat-events-detailed.d.ts +28 -0
- package/dist/examples/websocket/websocket-chat-events-detailed.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-chat-events.d.ts +26 -0
- package/dist/examples/websocket/websocket-chat-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-combined-events.d.ts +28 -0
- package/dist/examples/websocket/websocket-combined-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-comprehensive.d.ts +25 -0
- package/dist/examples/websocket/websocket-comprehensive.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-connected-clients.d.ts +30 -0
- package/dist/examples/websocket/websocket-connected-clients.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-connection-management.d.ts +28 -0
- package/dist/examples/websocket/websocket-connection-management.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-content-events.d.ts +28 -0
- package/dist/examples/websocket/websocket-content-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-core-events.d.ts +27 -0
- package/dist/examples/websocket/websocket-core-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-dex-events.d.ts +40 -0
- package/dist/examples/websocket/websocket-dex-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-dex-pools.d.ts +23 -0
- package/dist/examples/websocket/websocket-dex-pools.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-download-recording.d.ts +26 -0
- package/dist/examples/websocket/websocket-download-recording.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-interactions.d.ts +25 -0
- package/dist/examples/websocket/websocket-interactions.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-moderation-events.d.ts +26 -0
- package/dist/examples/websocket/websocket-moderation-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-recording-events.d.ts +24 -0
- package/dist/examples/websocket/websocket-recording-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-room-events.d.ts +27 -0
- package/dist/examples/websocket/websocket-room-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-room-management.d.ts +27 -0
- package/dist/examples/websocket/websocket-room-management.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-simulcast-events.d.ts +26 -0
- package/dist/examples/websocket/websocket-simulcast-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-stream-auth.d.ts +23 -0
- package/dist/examples/websocket/websocket-stream-auth.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-stream-countdown.d.ts +38 -0
- package/dist/examples/websocket/websocket-stream-countdown.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-stream-events.d.ts +26 -0
- package/dist/examples/websocket/websocket-stream-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-stream-status.d.ts +39 -0
- package/dist/examples/websocket/websocket-stream-status.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-subscription-management.d.ts +27 -0
- package/dist/examples/websocket/websocket-subscription-management.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-token-creation-events.d.ts +22 -0
- package/dist/examples/websocket/websocket-token-creation-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-token-events.d.ts +24 -0
- package/dist/examples/websocket/websocket-token-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-token-subscription.d.ts +26 -0
- package/dist/examples/websocket/websocket-token-subscription.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-token-viewers.d.ts +29 -0
- package/dist/examples/websocket/websocket-token-viewers.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-unsubscribe.d.ts +25 -0
- package/dist/examples/websocket/websocket-unsubscribe.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-user-events.d.ts +40 -0
- package/dist/examples/websocket/websocket-user-events.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-user-presence.d.ts +29 -0
- package/dist/examples/websocket/websocket-user-presence.d.ts.map +1 -0
- package/dist/examples/websocket/websocket-viewer-analytics.d.ts +38 -0
- package/dist/examples/websocket/websocket-viewer-analytics.d.ts.map +1 -0
- package/dist/examples/wrap/wrap-status-tracking.d.ts +19 -0
- package/dist/examples/wrap/wrap-status-tracking.d.ts.map +1 -0
- package/dist/examples/wrap/wrap-token-discovery.d.ts +20 -0
- package/dist/examples/wrap/wrap-token-discovery.d.ts.map +1 -0
- package/dist/helpers/sdk.d.ts +87 -0
- package/dist/helpers/sdk.d.ts.map +1 -0
- package/dist/helpers/wallet.d.ts +151 -0
- package/dist/helpers/wallet.d.ts.map +1 -0
- package/dist/index.browser.d.ts +149 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.browser.esm.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +6 -115
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.node.d.ts +13 -0
- package/dist/index.node.d.ts.map +1 -0
- package/dist/native.cjs +1 -0
- package/dist/native.d.ts +22 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.esm.js +1 -0
- package/dist/polyfills/file-global.d.ts +12 -0
- package/dist/polyfills/file-global.d.ts.map +1 -0
- package/dist/react/WalletContext.d.ts +60 -0
- package/dist/react/WalletContext.d.ts.map +1 -0
- package/dist/react/index.d.ts +65 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/types.d.ts +76 -0
- package/dist/react/types.d.ts.map +1 -0
- package/dist/react/useWallet.d.ts +123 -0
- package/dist/react/useWallet.d.ts.map +1 -0
- package/dist/react/useWalletConnection.d.ts +89 -0
- package/dist/react/useWalletConnection.d.ts.map +1 -0
- package/dist/react/useWalletDetection.d.ts +81 -0
- package/dist/react/useWalletDetection.d.ts.map +1 -0
- package/dist/react.cjs +1 -0
- package/dist/react.esm.js +1 -0
- package/dist/schemas/files.d.ts +83 -0
- package/dist/schemas/files.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +83 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/launchpad.d.ts +135 -0
- package/dist/schemas/launchpad.d.ts.map +1 -0
- package/dist/schemas/pagination.d.ts +107 -0
- package/dist/schemas/pagination.d.ts.map +1 -0
- package/dist/schemas/primitives.d.ts +142 -0
- package/dist/schemas/primitives.d.ts.map +1 -0
- package/dist/schemas/trade.d.ts +140 -0
- package/dist/schemas/trade.d.ts.map +1 -0
- package/dist/schemas/user.d.ts +99 -0
- package/dist/schemas/user.d.ts.map +1 -0
- package/dist/schemas/validators.d.ts +332 -0
- package/dist/schemas/validators.d.ts.map +1 -0
- package/dist/scripts/derive-public-key-from-private-key.d.ts +8 -0
- package/dist/scripts/derive-public-key-from-private-key.d.ts.map +1 -0
- package/dist/scripts/eslint-fixer.d.ts +7 -0
- package/dist/scripts/eslint-fixer.d.ts.map +1 -0
- package/dist/scripts/final-fixer.d.ts +7 -0
- package/dist/scripts/final-fixer.d.ts.map +1 -0
- package/dist/scripts/fix-all-remaining-boolean.d.ts +7 -0
- package/dist/scripts/fix-all-remaining-boolean.d.ts.map +1 -0
- package/dist/scripts/fix-boolean-expressions-advanced.d.ts +7 -0
- package/dist/scripts/fix-boolean-expressions-advanced.d.ts.map +1 -0
- package/dist/scripts/fix-boolean-expressions-ast.d.ts +9 -0
- package/dist/scripts/fix-boolean-expressions-ast.d.ts.map +1 -0
- package/dist/scripts/fix-boolean-expressions-auto.d.ts +7 -0
- package/dist/scripts/fix-boolean-expressions-auto.d.ts.map +1 -0
- package/dist/scripts/fix-final-aggressive.d.ts +6 -0
- package/dist/scripts/fix-final-aggressive.d.ts.map +1 -0
- package/dist/scripts/fix-final-boolean.d.ts +7 -0
- package/dist/scripts/fix-final-boolean.d.ts.map +1 -0
- package/dist/scripts/fix-remaining-boolean.d.ts +7 -0
- package/dist/scripts/fix-remaining-boolean.d.ts.map +1 -0
- package/dist/scripts/fix-strict-boolean-comprehensive.d.ts +3 -0
- package/dist/scripts/fix-strict-boolean-comprehensive.d.ts.map +1 -0
- package/dist/scripts/fix-strict-boolean-expressions.d.ts +2 -0
- package/dist/scripts/fix-strict-boolean-expressions.d.ts.map +1 -0
- package/dist/scripts/fix-strict-boolean-final.d.ts +13 -0
- package/dist/scripts/fix-strict-boolean-final.d.ts.map +1 -0
- package/dist/scripts/fixer-aggressive.d.ts +7 -0
- package/dist/scripts/fixer-aggressive.d.ts.map +1 -0
- package/dist/scripts/fixer-conservative.d.ts +7 -0
- package/dist/scripts/fixer-conservative.d.ts.map +1 -0
- package/dist/scripts/fixer-direct.d.ts +7 -0
- package/dist/scripts/fixer-direct.d.ts.map +1 -0
- package/dist/scripts/generate-demo-registry.d.ts +14 -0
- package/dist/scripts/generate-demo-registry.d.ts.map +1 -0
- package/dist/scripts/inject-version.d.ts +8 -0
- package/dist/scripts/inject-version.d.ts.map +1 -0
- package/dist/scripts/strict-boolean-fixer.d.ts +9 -0
- package/dist/scripts/strict-boolean-fixer.d.ts.map +1 -0
- package/dist/scripts/validate-demo-registry.d.ts +17 -0
- package/dist/scripts/validate-demo-registry.d.ts.map +1 -0
- package/dist/services/AIModerationService.d.ts +217 -0
- package/dist/services/AIModerationService.d.ts.map +1 -0
- package/dist/services/AbstractCacheService.d.ts +227 -0
- package/dist/services/AbstractCacheService.d.ts.map +1 -0
- package/dist/services/AbstractTokenFetchService.d.ts +150 -0
- package/dist/services/AbstractTokenFetchService.d.ts.map +1 -0
- package/dist/services/ApiKeyService.d.ts +211 -0
- package/dist/services/ApiKeyService.d.ts.map +1 -0
- package/dist/services/BanService.d.ts +312 -0
- package/dist/services/BanService.d.ts.map +1 -0
- package/dist/services/BaseService.d.ts +116 -0
- package/dist/services/BaseService.d.ts.map +1 -0
- package/dist/services/BatchedCacheService.d.ts +133 -0
- package/dist/services/BatchedCacheService.d.ts.map +1 -0
- package/dist/services/BridgeableTokenCache.d.ts +120 -0
- package/dist/services/BridgeableTokenCache.d.ts.map +1 -0
- package/dist/services/BridgeableTokenService.d.ts +218 -0
- package/dist/services/BridgeableTokenService.d.ts.map +1 -0
- package/dist/services/BundleService.d.ts +245 -0
- package/dist/services/BundleService.d.ts.map +1 -0
- package/dist/services/BundlerClientFactory.d.ts +32 -0
- package/dist/services/BundlerClientFactory.d.ts.map +1 -0
- package/dist/services/ChartService.d.ts +106 -0
- package/dist/services/ChartService.d.ts.map +1 -0
- package/dist/services/ClientConfigService.d.ts +61 -0
- package/dist/services/ClientConfigService.d.ts.map +1 -0
- package/dist/services/ContentFlagService.d.ts +218 -0
- package/dist/services/ContentFlagService.d.ts.map +1 -0
- package/dist/services/ContentReactionService.d.ts +175 -0
- package/dist/services/ContentReactionService.d.ts.map +1 -0
- package/dist/services/DexBackendClient.d.ts +225 -0
- package/dist/services/DexBackendClient.d.ts.map +1 -0
- package/dist/services/DexBackendTradeClient.d.ts +34 -0
- package/dist/services/DexBackendTradeClient.d.ts.map +1 -0
- package/dist/services/DexPoolService.d.ts +137 -0
- package/dist/services/DexPoolService.d.ts.map +1 -0
- package/dist/services/DexQuoteService.d.ts +446 -0
- package/dist/services/DexQuoteService.d.ts.map +1 -0
- package/dist/services/DexService.d.ts +433 -0
- package/dist/services/DexService.d.ts.map +1 -0
- package/dist/services/EventsBatcherService.d.ts +111 -0
- package/dist/services/EventsBatcherService.d.ts.map +1 -0
- package/dist/services/GSwapAssetService.d.ts +96 -0
- package/dist/services/GSwapAssetService.d.ts.map +1 -0
- package/dist/services/GSwapLiquidityMutationService.d.ts +138 -0
- package/dist/services/GSwapLiquidityMutationService.d.ts.map +1 -0
- package/dist/services/GSwapLiquidityQueryService.d.ts +75 -0
- package/dist/services/GSwapLiquidityQueryService.d.ts.map +1 -0
- package/dist/services/GSwapPoolCalculationService.d.ts +187 -0
- package/dist/services/GSwapPoolCalculationService.d.ts.map +1 -0
- package/dist/services/GSwapPoolQueryService.d.ts +114 -0
- package/dist/services/GSwapPoolQueryService.d.ts.map +1 -0
- package/dist/services/GSwapService.d.ts +1207 -0
- package/dist/services/GSwapService.d.ts.map +1 -0
- package/dist/services/GSwapSwapService.d.ts +66 -0
- package/dist/services/GSwapSwapService.d.ts.map +1 -0
- package/dist/services/GalaChainBalanceService.d.ts +155 -0
- package/dist/services/GalaChainBalanceService.d.ts.map +1 -0
- package/dist/services/GalaChainLockService.d.ts +144 -0
- package/dist/services/GalaChainLockService.d.ts.map +1 -0
- package/dist/services/GalaChainService.d.ts +399 -0
- package/dist/services/GalaChainService.d.ts.map +1 -0
- package/dist/services/GalaChainTokenService.d.ts +108 -0
- package/dist/services/GalaChainTokenService.d.ts.map +1 -0
- package/dist/services/GalaChainTransferService.d.ts +205 -0
- package/dist/services/GalaChainTransferService.d.ts.map +1 -0
- package/dist/services/GdexStreamService.d.ts +133 -0
- package/dist/services/GdexStreamService.d.ts.map +1 -0
- package/dist/services/HolderService.d.ts +181 -0
- package/dist/services/HolderService.d.ts.map +1 -0
- package/dist/services/ImageService.d.ts +173 -0
- package/dist/services/ImageService.d.ts.map +1 -0
- package/dist/services/IntervalRegistry.d.ts +79 -0
- package/dist/services/IntervalRegistry.d.ts.map +1 -0
- package/dist/services/LaunchpadService.d.ts +343 -0
- package/dist/services/LaunchpadService.d.ts.map +1 -0
- package/dist/services/MessagesService.d.ts +251 -0
- package/dist/services/MessagesService.d.ts.map +1 -0
- package/dist/services/ModeratorService.d.ts +311 -0
- package/dist/services/ModeratorService.d.ts.map +1 -0
- package/dist/services/MultiPoolStateManager.d.ts +289 -0
- package/dist/services/MultiPoolStateManager.d.ts.map +1 -0
- package/dist/services/NetworkKeyedCacheService.d.ts +185 -0
- package/dist/services/NetworkKeyedCacheService.d.ts.map +1 -0
- package/dist/services/NftCollectionService.d.ts +121 -0
- package/dist/services/NftCollectionService.d.ts.map +1 -0
- package/dist/services/NotificationService.d.ts +113 -0
- package/dist/services/NotificationService.d.ts.map +1 -0
- package/dist/services/OEmbedService.d.ts +152 -0
- package/dist/services/OEmbedService.d.ts.map +1 -0
- package/dist/services/OverseerService.d.ts +524 -0
- package/dist/services/OverseerService.d.ts.map +1 -0
- package/dist/services/PlatformConfigService.d.ts +149 -0
- package/dist/services/PlatformConfigService.d.ts.map +1 -0
- package/dist/services/PlatformStatsService.d.ts +72 -0
- package/dist/services/PlatformStatsService.d.ts.map +1 -0
- package/dist/services/PoolCacheManager.d.ts +258 -0
- package/dist/services/PoolCacheManager.d.ts.map +1 -0
- package/dist/services/PoolService.d.ts +316 -0
- package/dist/services/PoolService.d.ts.map +1 -0
- package/dist/services/PoolStateManager.d.ts +176 -0
- package/dist/services/PoolStateManager.d.ts.map +1 -0
- package/dist/services/PriceHistoryService.d.ts +207 -0
- package/dist/services/PriceHistoryService.d.ts.map +1 -0
- package/dist/services/RestrictedNamesService.d.ts +80 -0
- package/dist/services/RestrictedNamesService.d.ts.map +1 -0
- package/dist/services/SignatureService.d.ts +113 -0
- package/dist/services/SignatureService.d.ts.map +1 -0
- package/dist/services/StreamChatService.d.ts +259 -0
- package/dist/services/StreamChatService.d.ts.map +1 -0
- package/dist/services/StreamTokenServiceBase.d.ts +404 -0
- package/dist/services/StreamTokenServiceBase.d.ts.map +1 -0
- package/dist/services/StreamWebSocketService.d.ts +586 -0
- package/dist/services/StreamWebSocketService.d.ts.map +1 -0
- package/dist/services/StreamingEventService.d.ts +441 -0
- package/dist/services/StreamingEventService.d.ts.map +1 -0
- package/dist/services/StreamingService.d.ts +573 -0
- package/dist/services/StreamingService.d.ts.map +1 -0
- package/dist/services/SwapEventQueue.d.ts +192 -0
- package/dist/services/SwapEventQueue.d.ts.map +1 -0
- package/dist/services/TokenBanService.d.ts +217 -0
- package/dist/services/TokenBanService.d.ts.map +1 -0
- package/dist/services/TokenClassKeyService.d.ts +162 -0
- package/dist/services/TokenClassKeyService.d.ts.map +1 -0
- package/dist/services/TokenMetadataCache.d.ts +310 -0
- package/dist/services/TokenMetadataCache.d.ts.map +1 -0
- package/dist/services/TokenMetadataService.d.ts +509 -0
- package/dist/services/TokenMetadataService.d.ts.map +1 -0
- package/dist/services/TokenResolverService.d.ts +329 -0
- package/dist/services/TokenResolverService.d.ts.map +1 -0
- package/dist/services/TradeService.d.ts +286 -0
- package/dist/services/TradeService.d.ts.map +1 -0
- package/dist/services/TradingQuotesService.d.ts +162 -0
- package/dist/services/TradingQuotesService.d.ts.map +1 -0
- package/dist/services/UserService.d.ts +352 -0
- package/dist/services/UserService.d.ts.map +1 -0
- package/dist/services/WebSocketAdminService.d.ts +587 -0
- package/dist/services/WebSocketAdminService.d.ts.map +1 -0
- package/dist/services/WebSocketService.d.ts +189 -0
- package/dist/services/WebSocketService.d.ts.map +1 -0
- package/dist/services/WeeklyChallengeService.d.ts +114 -0
- package/dist/services/WeeklyChallengeService.d.ts.map +1 -0
- package/dist/services/WrapService.d.ts +172 -0
- package/dist/services/WrapService.d.ts.map +1 -0
- package/dist/services/WrappableTokenCache.d.ts +100 -0
- package/dist/services/WrappableTokenCache.d.ts.map +1 -0
- package/dist/services/WrappableTokenService.d.ts +130 -0
- package/dist/services/WrappableTokenService.d.ts.map +1 -0
- package/dist/services/__mocks__/logger.mock.d.ts +24 -0
- package/dist/services/__mocks__/logger.mock.d.ts.map +1 -0
- package/dist/services/shared/cache-helpers.d.ts +188 -0
- package/dist/services/shared/cache-helpers.d.ts.map +1 -0
- package/dist/services/shared/http-helpers.d.ts +146 -0
- package/dist/services/shared/http-helpers.d.ts.map +1 -0
- package/dist/services/shared/pagination-helpers.d.ts +167 -0
- package/dist/services/shared/pagination-helpers.d.ts.map +1 -0
- package/dist/services/shared/service-validators.d.ts +137 -0
- package/dist/services/shared/service-validators.d.ts.map +1 -0
- package/dist/services/shared/websocket-helpers.d.ts +158 -0
- package/dist/services/shared/websocket-helpers.d.ts.map +1 -0
- package/dist/setup.d.ts +8 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/src/LaunchpadSDK.d.ts +2414 -497
- package/dist/src/LaunchpadSDK.d.ts.map +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +15 -8
- package/dist/src/api/LaunchpadAPI.d.ts.map +1 -1
- package/dist/src/api/dto/BondingCurveDTOs.d.ts.map +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts +1 -1
- package/dist/src/api/dto/BurnTokensDto.d.ts.map +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts +1 -1
- package/dist/src/api/dto/LockTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts +1 -1
- package/dist/src/api/dto/TransferTokenDto.d.ts.map +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts +1 -1
- package/dist/src/api/dto/UnlockTokenDto.d.ts.map +1 -1
- package/dist/src/auth/JwtAuth.d.ts +43 -5
- package/dist/src/auth/JwtAuth.d.ts.map +1 -1
- package/dist/src/auth/SessionAuthService.d.ts +11 -6
- package/dist/src/auth/SessionAuthService.d.ts.map +1 -1
- package/dist/src/auth/SignatureAuth.d.ts +64 -3
- package/dist/src/auth/SignatureAuth.d.ts.map +1 -1
- package/dist/src/auth/storage.d.ts +66 -0
- package/dist/src/auth/storage.d.ts.map +1 -0
- package/dist/src/auth/types.d.ts +11 -2
- package/dist/src/auth/types.d.ts.map +1 -1
- package/dist/src/bridge/BridgeService.d.ts +1 -1
- package/dist/src/bridge/BridgeService.d.ts.map +1 -1
- package/dist/src/bridge/GalaConnectClient.d.ts +1 -1
- package/dist/src/bridge/GalaConnectClient.d.ts.map +1 -1
- package/dist/src/bridge/constants/tokens.d.ts +1 -1
- package/dist/src/bridge/constants/tokens.d.ts.map +1 -1
- package/dist/src/bridge/index.d.ts +10 -10
- package/dist/src/bridge/index.d.ts.map +1 -1
- package/dist/src/bridge/strategies/BridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts +1 -1
- package/dist/src/bridge/strategies/EthereumBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts +1 -1
- package/dist/src/bridge/strategies/SolanaBridgeStrategy.d.ts.map +1 -1
- package/dist/src/bridge/utils/addressValidation.d.ts.map +1 -1
- package/dist/src/bridge/utils/balanceHelpers.d.ts +1 -1
- package/dist/src/bridge/utils/balanceHelpers.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgeErrors.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts +1 -1
- package/dist/src/bridge/utils/bridgeOutHelpers.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgePayload.d.ts +2 -11
- package/dist/src/bridge/utils/bridgePayload.d.ts.map +1 -1
- package/dist/src/bridge/utils/bridgeStatusParser.d.ts.map +1 -1
- package/dist/src/bridge/utils/eip712Helpers.d.ts.map +1 -1
- package/dist/src/bridge/utils/index.d.ts +9 -9
- package/dist/src/bridge/utils/index.d.ts.map +1 -1
- package/dist/src/bridge/utils/tokenIdUtils.d.ts +1 -1
- package/dist/src/bridge/utils/tokenIdUtils.d.ts.map +1 -1
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts +1 -1
- package/dist/src/bridge/utils/tokenMetadataResolver.d.ts.map +1 -1
- package/dist/src/config/environments.d.ts +3 -1
- package/dist/src/config/environments.d.ts.map +1 -1
- package/dist/src/constants/endpoints.d.ts +566 -260
- package/dist/src/constants/endpoints.d.ts.map +1 -1
- package/dist/src/constants/events.d.ts +53 -0
- package/dist/src/constants/events.d.ts.map +1 -0
- package/dist/src/constants/pagination.d.ts +23 -13
- package/dist/src/constants/pagination.d.ts.map +1 -1
- package/dist/src/constants/version.generated.d.ts +1 -1
- package/dist/src/constants/version.generated.d.ts.map +1 -1
- package/dist/src/helpers/sdk.d.ts.map +1 -1
- package/dist/src/helpers/wallet.d.ts.map +1 -1
- package/dist/src/index.browser.d.ts +149 -0
- package/dist/src/index.browser.d.ts.map +1 -0
- package/dist/src/index.d.ts +6 -115
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.node.d.ts +13 -0
- package/dist/src/index.node.d.ts.map +1 -0
- package/dist/src/native.d.ts +22 -0
- package/dist/src/native.d.ts.map +1 -0
- package/dist/src/react/WalletContext.d.ts +60 -0
- package/dist/src/react/WalletContext.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +65 -0
- package/dist/src/react/index.d.ts.map +1 -0
- package/dist/src/react/types.d.ts +76 -0
- package/dist/src/react/types.d.ts.map +1 -0
- package/dist/src/react/useWallet.d.ts +123 -0
- package/dist/src/react/useWallet.d.ts.map +1 -0
- package/dist/src/react/useWalletConnection.d.ts +89 -0
- package/dist/src/react/useWalletConnection.d.ts.map +1 -0
- package/dist/src/react/useWalletDetection.d.ts +81 -0
- package/dist/src/react/useWalletDetection.d.ts.map +1 -0
- package/dist/src/schemas/files.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +4 -3
- package/dist/src/schemas/index.d.ts.map +1 -1
- package/dist/src/schemas/launchpad.d.ts +1 -0
- package/dist/src/schemas/launchpad.d.ts.map +1 -1
- package/dist/src/schemas/pagination.d.ts +16 -19
- package/dist/src/schemas/pagination.d.ts.map +1 -1
- package/dist/src/schemas/primitives.d.ts +1 -1
- package/dist/src/schemas/primitives.d.ts.map +1 -1
- package/dist/src/schemas/trade.d.ts +2 -2
- package/dist/src/schemas/trade.d.ts.map +1 -1
- package/dist/src/schemas/user.d.ts +2 -2
- package/dist/src/schemas/user.d.ts.map +1 -1
- package/dist/src/schemas/validators.d.ts +6 -5
- package/dist/src/schemas/validators.d.ts.map +1 -1
- package/dist/src/services/AIModerationService.d.ts +217 -0
- package/dist/src/services/AIModerationService.d.ts.map +1 -0
- package/dist/src/services/AbstractTokenFetchService.d.ts +1 -1
- package/dist/src/services/AbstractTokenFetchService.d.ts.map +1 -1
- package/dist/src/services/ApiKeyService.d.ts +14 -9
- package/dist/src/services/ApiKeyService.d.ts.map +1 -1
- package/dist/src/services/BanService.d.ts +132 -16
- package/dist/src/services/BanService.d.ts.map +1 -1
- package/dist/src/services/BaseService.d.ts +1 -1
- package/dist/src/services/BaseService.d.ts.map +1 -1
- package/dist/src/services/BatchedCacheService.d.ts.map +1 -1
- package/dist/src/services/BridgeableTokenCache.d.ts +1 -1
- package/dist/src/services/BridgeableTokenCache.d.ts.map +1 -1
- package/dist/src/services/BridgeableTokenService.d.ts +4 -4
- package/dist/src/services/BridgeableTokenService.d.ts.map +1 -1
- package/dist/src/services/BundleService.d.ts +5 -5
- package/dist/src/services/BundleService.d.ts.map +1 -1
- package/dist/src/services/BundlerClientFactory.d.ts.map +1 -1
- package/dist/src/services/ChartService.d.ts +106 -0
- package/dist/src/services/ChartService.d.ts.map +1 -0
- package/dist/src/services/ClientConfigService.d.ts +61 -0
- package/dist/src/services/ClientConfigService.d.ts.map +1 -0
- package/dist/src/services/ContentFlagService.d.ts +13 -7
- package/dist/src/services/ContentFlagService.d.ts.map +1 -1
- package/dist/src/services/ContentReactionService.d.ts +3 -3
- package/dist/src/services/ContentReactionService.d.ts.map +1 -1
- package/dist/src/services/DexBackendClient.d.ts +1 -1
- package/dist/src/services/DexBackendClient.d.ts.map +1 -1
- package/dist/src/services/DexBackendTradeClient.d.ts +34 -0
- package/dist/src/services/DexBackendTradeClient.d.ts.map +1 -0
- package/dist/src/services/DexPoolService.d.ts +9 -11
- package/dist/src/services/DexPoolService.d.ts.map +1 -1
- package/dist/src/services/DexQuoteService.d.ts +23 -24
- package/dist/src/services/DexQuoteService.d.ts.map +1 -1
- package/dist/src/services/DexService.d.ts +6 -6
- package/dist/src/services/DexService.d.ts.map +1 -1
- package/dist/src/services/EventsBatcherService.d.ts +111 -0
- package/dist/src/services/EventsBatcherService.d.ts.map +1 -0
- package/dist/src/services/GSwapAssetService.d.ts +18 -2
- package/dist/src/services/GSwapAssetService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityMutationService.d.ts +6 -8
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +4 -16
- package/dist/src/services/GSwapLiquidityQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolCalculationService.d.ts +0 -13
- package/dist/src/services/GSwapPoolCalculationService.d.ts.map +1 -1
- package/dist/src/services/GSwapPoolQueryService.d.ts +7 -9
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapService.d.ts +16 -16
- package/dist/src/services/GSwapService.d.ts.map +1 -1
- package/dist/src/services/GSwapSwapService.d.ts +2 -4
- package/dist/src/services/GSwapSwapService.d.ts.map +1 -1
- package/dist/src/services/GalaChainBalanceService.d.ts +2 -2
- package/dist/src/services/GalaChainBalanceService.d.ts.map +1 -1
- package/dist/src/services/GalaChainLockService.d.ts +3 -3
- package/dist/src/services/GalaChainLockService.d.ts.map +1 -1
- package/dist/src/services/GalaChainService.d.ts +10 -13
- package/dist/src/services/GalaChainService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTokenService.d.ts +3 -3
- package/dist/src/services/GalaChainTokenService.d.ts.map +1 -1
- package/dist/src/services/GalaChainTransferService.d.ts +4 -4
- package/dist/src/services/GalaChainTransferService.d.ts.map +1 -1
- package/dist/src/services/GdexStreamService.d.ts +133 -0
- package/dist/src/services/GdexStreamService.d.ts.map +1 -0
- package/dist/src/services/HolderService.d.ts +181 -0
- package/dist/src/services/HolderService.d.ts.map +1 -0
- package/dist/src/services/ImageService.d.ts +2 -15
- package/dist/src/services/ImageService.d.ts.map +1 -1
- package/dist/src/services/IntervalRegistry.d.ts +79 -0
- package/dist/src/services/IntervalRegistry.d.ts.map +1 -0
- package/dist/src/services/LaunchpadService.d.ts +67 -24
- package/dist/src/services/LaunchpadService.d.ts.map +1 -1
- package/dist/src/services/MessagesService.d.ts +251 -0
- package/dist/src/services/MessagesService.d.ts.map +1 -0
- package/dist/src/services/ModeratorService.d.ts +58 -22
- package/dist/src/services/ModeratorService.d.ts.map +1 -1
- package/dist/src/services/MultiPoolStateManager.d.ts +17 -10
- package/dist/src/services/MultiPoolStateManager.d.ts.map +1 -1
- package/dist/src/services/NetworkKeyedCacheService.d.ts.map +1 -1
- package/dist/src/services/NftCollectionService.d.ts +3 -5
- package/dist/src/services/NftCollectionService.d.ts.map +1 -1
- package/dist/src/services/NotificationService.d.ts +113 -0
- package/dist/src/services/NotificationService.d.ts.map +1 -0
- package/dist/src/services/OEmbedService.d.ts +152 -0
- package/dist/src/services/OEmbedService.d.ts.map +1 -0
- package/dist/src/services/OverseerService.d.ts +230 -35
- package/dist/src/services/OverseerService.d.ts.map +1 -1
- package/dist/src/services/PlatformConfigService.d.ts +149 -0
- package/dist/src/services/PlatformConfigService.d.ts.map +1 -0
- package/dist/src/services/PlatformStatsService.d.ts +72 -0
- package/dist/src/services/PlatformStatsService.d.ts.map +1 -0
- package/dist/src/services/PoolCacheManager.d.ts +3 -10
- package/dist/src/services/PoolCacheManager.d.ts.map +1 -1
- package/dist/src/services/PoolService.d.ts +108 -25
- package/dist/src/services/PoolService.d.ts.map +1 -1
- package/dist/src/services/PoolStateManager.d.ts +2 -2
- package/dist/src/services/PoolStateManager.d.ts.map +1 -1
- package/dist/src/services/PriceHistoryService.d.ts +11 -12
- package/dist/src/services/PriceHistoryService.d.ts.map +1 -1
- package/dist/src/services/RestrictedNamesService.d.ts +80 -0
- package/dist/src/services/RestrictedNamesService.d.ts.map +1 -0
- package/dist/src/services/SignatureService.d.ts.map +1 -1
- package/dist/src/services/StreamChatService.d.ts +68 -187
- package/dist/src/services/StreamChatService.d.ts.map +1 -1
- package/dist/src/services/StreamTokenServiceBase.d.ts +45 -12
- package/dist/src/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/src/services/StreamWebSocketService.d.ts +335 -17
- package/dist/src/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/src/services/StreamingEventService.d.ts +16 -6
- package/dist/src/services/StreamingEventService.d.ts.map +1 -1
- package/dist/src/services/StreamingService.d.ts +66 -40
- package/dist/src/services/StreamingService.d.ts.map +1 -1
- package/dist/src/services/SwapEventQueue.d.ts +1 -1
- package/dist/src/services/SwapEventQueue.d.ts.map +1 -1
- package/dist/src/services/TokenBanService.d.ts +18 -16
- package/dist/src/services/TokenBanService.d.ts.map +1 -1
- package/dist/src/services/TokenClassKeyService.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataCache.d.ts.map +1 -1
- package/dist/src/services/TokenMetadataService.d.ts +4 -4
- package/dist/src/services/TokenMetadataService.d.ts.map +1 -1
- package/dist/src/services/TokenResolverService.d.ts +197 -24
- package/dist/src/services/TokenResolverService.d.ts.map +1 -1
- package/dist/src/services/TradeService.d.ts +19 -19
- package/dist/src/services/TradeService.d.ts.map +1 -1
- package/dist/src/services/TradingQuotesService.d.ts +162 -0
- package/dist/src/services/TradingQuotesService.d.ts.map +1 -0
- package/dist/src/services/UserService.d.ts +83 -23
- package/dist/src/services/UserService.d.ts.map +1 -1
- package/dist/src/services/WebSocketAdminService.d.ts +587 -0
- package/dist/src/services/WebSocketAdminService.d.ts.map +1 -0
- package/dist/src/services/WebSocketService.d.ts +7 -1
- package/dist/src/services/WebSocketService.d.ts.map +1 -1
- package/dist/src/services/WeeklyChallengeService.d.ts +114 -0
- package/dist/src/services/WeeklyChallengeService.d.ts.map +1 -0
- package/dist/src/services/WrapService.d.ts +5 -5
- package/dist/src/services/WrapService.d.ts.map +1 -1
- package/dist/src/services/WrappableTokenService.d.ts +3 -3
- package/dist/src/services/WrappableTokenService.d.ts.map +1 -1
- package/dist/src/services/__mocks__/logger.mock.d.ts.map +1 -1
- package/dist/src/services/shared/cache-helpers.d.ts.map +1 -1
- package/dist/src/services/shared/http-helpers.d.ts.map +1 -1
- package/dist/src/services/shared/pagination-helpers.d.ts +19 -19
- package/dist/src/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/src/services/shared/service-validators.d.ts +1 -1
- package/dist/src/services/shared/service-validators.d.ts.map +1 -1
- package/dist/src/setup.d.ts +2 -2
- package/dist/src/types/ai-moderation.dto.d.ts +294 -0
- package/dist/src/types/ai-moderation.dto.d.ts.map +1 -0
- package/dist/src/types/api-key.dto.d.ts +82 -9
- package/dist/src/types/api-key.dto.d.ts.map +1 -1
- package/dist/src/types/ban.dto.d.ts +174 -3
- package/dist/src/types/ban.dto.d.ts.map +1 -1
- package/dist/src/types/cache-management.dto.d.ts +44 -0
- package/dist/src/types/cache-management.dto.d.ts.map +1 -0
- package/dist/src/types/chat-messages.dto.d.ts +7 -7
- package/dist/src/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/src/types/client-config.dto.d.ts +43 -0
- package/dist/src/types/client-config.dto.d.ts.map +1 -0
- package/dist/src/types/comment.dto.d.ts +3 -7
- package/dist/src/types/comment.dto.d.ts.map +1 -1
- package/dist/src/types/comments.dto.d.ts +9 -9
- package/dist/src/types/comments.dto.d.ts.map +1 -1
- package/dist/src/types/common.d.ts +117 -27
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/composite-pool.dto.d.ts +4 -6
- package/dist/src/types/composite-pool.dto.d.ts.map +1 -1
- package/dist/src/types/constraints.d.ts +6 -2
- package/dist/src/types/constraints.d.ts.map +1 -1
- package/dist/src/types/content-flag.dto.d.ts +43 -4
- package/dist/src/types/content-flag.dto.d.ts.map +1 -1
- package/dist/src/types/content-reactions.dto.d.ts +4 -4
- package/dist/src/types/content-reactions.dto.d.ts.map +1 -1
- package/dist/src/types/dex-pool.dto.d.ts +20 -7
- package/dist/src/types/dex-pool.dto.d.ts.map +1 -1
- package/dist/src/types/dto.d.ts +5 -1
- package/dist/src/types/dto.d.ts.map +1 -1
- package/dist/src/types/engagement-stats.dto.d.ts +62 -0
- package/dist/src/types/engagement-stats.dto.d.ts.map +1 -0
- package/dist/src/types/events.dto.d.ts +80 -0
- package/dist/src/types/events.dto.d.ts.map +1 -0
- package/dist/src/types/global-feed.dto.d.ts +203 -0
- package/dist/src/types/global-feed.dto.d.ts.map +1 -0
- package/dist/src/types/gswap-responses.types.d.ts +14 -14
- package/dist/src/types/gswap-responses.types.d.ts.map +1 -1
- package/dist/src/types/gswap.dto.d.ts +12 -5
- package/dist/src/types/gswap.dto.d.ts.map +1 -1
- package/dist/src/types/holder.types.d.ts +106 -0
- package/dist/src/types/holder.types.d.ts.map +1 -0
- package/dist/src/types/launchpad.dto.d.ts +154 -77
- package/dist/src/types/launchpad.dto.d.ts.map +1 -1
- package/dist/src/types/launchpad.validation.d.ts.map +1 -1
- package/dist/src/types/lock.dto.d.ts +1 -1
- package/dist/src/types/lock.dto.d.ts.map +1 -1
- package/dist/src/types/messages.dto.d.ts +386 -0
- package/dist/src/types/messages.dto.d.ts.map +1 -0
- package/dist/src/types/moderator.dto.d.ts +38 -5
- package/dist/src/types/moderator.dto.d.ts.map +1 -1
- package/dist/src/types/notification.dto.d.ts +92 -0
- package/dist/src/types/notification.dto.d.ts.map +1 -0
- package/dist/src/types/oembed.dto.d.ts +160 -0
- package/dist/src/types/oembed.dto.d.ts.map +1 -0
- package/dist/src/types/options.dto.d.ts +9 -1
- package/dist/src/types/options.dto.d.ts.map +1 -1
- package/dist/src/types/overseer.dto.d.ts +152 -35
- package/dist/src/types/overseer.dto.d.ts.map +1 -1
- package/dist/src/types/platform-config.dto.d.ts +89 -0
- package/dist/src/types/platform-config.dto.d.ts.map +1 -0
- package/dist/src/types/platform-stats.dto.d.ts +40 -0
- package/dist/src/types/platform-stats.dto.d.ts.map +1 -0
- package/dist/src/types/pool-state-delta.dto.d.ts.map +1 -1
- package/dist/src/types/pool.dto.d.ts +6 -1
- package/dist/src/types/pool.dto.d.ts.map +1 -1
- package/dist/src/types/priceHistory.dto.d.ts +6 -2
- package/dist/src/types/priceHistory.dto.d.ts.map +1 -1
- package/dist/src/types/restricted-names.dto.d.ts +50 -0
- package/dist/src/types/restricted-names.dto.d.ts.map +1 -0
- package/dist/src/types/session-auth.dto.d.ts +9 -1
- package/dist/src/types/session-auth.dto.d.ts.map +1 -1
- package/dist/src/types/stream-chat.dto.d.ts +4 -9
- package/dist/src/types/stream-chat.dto.d.ts.map +1 -1
- package/dist/src/types/streaming-events.dto.d.ts +20 -1
- package/dist/src/types/streaming-events.dto.d.ts.map +1 -1
- package/dist/src/types/streaming.dto.d.ts +64 -20
- package/dist/src/types/streaming.dto.d.ts.map +1 -1
- package/dist/src/types/token-ban.dto.d.ts +7 -8
- package/dist/src/types/token-ban.dto.d.ts.map +1 -1
- package/dist/src/types/token-config.dto.d.ts +117 -0
- package/dist/src/types/token-config.dto.d.ts.map +1 -0
- package/dist/src/types/token.types.d.ts +336 -0
- package/dist/src/types/token.types.d.ts.map +1 -0
- package/dist/src/types/trade.dto.d.ts +5 -1
- package/dist/src/types/trade.dto.d.ts.map +1 -1
- package/dist/src/types/trades-query.dto.d.ts +8 -2
- package/dist/src/types/trades-query.dto.d.ts.map +1 -1
- package/dist/src/types/transfer.dto.d.ts.map +1 -1
- package/dist/src/types/user.dto.d.ts +218 -48
- package/dist/src/types/user.dto.d.ts.map +1 -1
- package/dist/src/types/websocket-admin.dto.d.ts +390 -0
- package/dist/src/types/websocket-admin.dto.d.ts.map +1 -0
- package/dist/src/types/websocket-events.dto.d.ts +472 -0
- package/dist/src/types/websocket-events.dto.d.ts.map +1 -0
- package/dist/src/types/weekly-challenge.dto.d.ts +130 -0
- package/dist/src/types/weekly-challenge.dto.d.ts.map +1 -0
- package/dist/src/types/wrappable-token.dto.d.ts +1 -1
- package/dist/src/types/wrappable-token.dto.d.ts.map +1 -1
- package/dist/src/utils/LiquidityEventExtractor.d.ts +7 -0
- package/dist/src/utils/LiquidityEventExtractor.d.ts.map +1 -1
- package/dist/src/utils/Logger.d.ts.map +1 -1
- package/dist/src/utils/MonitoringMetrics.d.ts +0 -1
- package/dist/src/utils/MonitoringMetrics.d.ts.map +1 -1
- package/dist/src/utils/SignatureHelper.d.ts.map +1 -1
- package/dist/src/utils/SwapEventExtractor.d.ts.map +1 -1
- package/dist/src/utils/adapters.d.ts +1 -1
- package/dist/src/utils/adapters.d.ts.map +1 -1
- package/dist/src/utils/address-formatter.d.ts +7 -6
- package/dist/src/utils/address-formatter.d.ts.map +1 -1
- package/dist/src/utils/agent-config.d.ts.map +1 -1
- package/dist/src/utils/amount-validator.d.ts.map +1 -1
- package/dist/src/utils/api-patterns.d.ts +1 -1
- package/dist/src/utils/api-patterns.d.ts.map +1 -1
- package/dist/src/utils/assetUrls.d.ts +450 -0
- package/dist/src/utils/assetUrls.d.ts.map +1 -0
- package/dist/src/utils/auto-pagination.d.ts +89 -0
- package/dist/src/utils/auto-pagination.d.ts.map +1 -1
- package/dist/src/utils/bignumber-helpers.d.ts.map +1 -1
- package/dist/src/utils/bignumber-pool-cache.d.ts.map +1 -1
- package/dist/src/utils/composite-pool-converter.d.ts +4 -4
- package/dist/src/utils/composite-pool-converter.d.ts.map +1 -1
- package/dist/src/utils/crypto-compat.d.ts +40 -0
- package/dist/src/utils/crypto-compat.d.ts.map +1 -0
- package/dist/src/utils/delimiter-parser.d.ts +1 -1
- package/dist/src/utils/delimiter-parser.d.ts.map +1 -1
- package/dist/src/utils/error-factories.d.ts +1 -1
- package/dist/src/utils/error-factories.d.ts.map +1 -1
- package/dist/src/utils/error-handling-patterns.d.ts +1 -1
- package/dist/src/utils/error-handling-patterns.d.ts.map +1 -1
- package/dist/src/utils/error-patterns.d.ts.map +1 -1
- package/dist/src/utils/error-utils.d.ts +6 -1
- package/dist/src/utils/error-utils.d.ts.map +1 -1
- package/dist/src/utils/errors.d.ts +6 -2
- package/dist/src/utils/errors.d.ts.map +1 -1
- package/dist/src/utils/http.d.ts +2 -2
- package/dist/src/utils/http.d.ts.map +1 -1
- package/dist/src/utils/load-env.d.ts.map +1 -1
- package/dist/src/utils/multipart.d.ts.map +1 -1
- package/dist/src/utils/nft-helpers.d.ts.map +1 -1
- package/dist/src/utils/numeric-patterns.d.ts.map +1 -1
- package/dist/src/utils/numeric-wrappers.d.ts +3 -0
- package/dist/src/utils/numeric-wrappers.d.ts.map +1 -1
- package/dist/src/utils/pagination-validation.d.ts +88 -0
- package/dist/src/utils/pagination-validation.d.ts.map +1 -0
- package/dist/src/utils/pool-state-validator.d.ts +1 -1
- package/dist/src/utils/pool-state-validator.d.ts.map +1 -1
- package/dist/src/utils/primitives.d.ts +76 -0
- package/dist/src/utils/primitives.d.ts.map +1 -0
- package/dist/src/utils/query-params.d.ts +6 -6
- package/dist/src/utils/query-params.d.ts.map +1 -1
- package/dist/src/utils/response-handlers.d.ts.map +1 -1
- package/dist/src/utils/response-normalizers.d.ts.map +1 -1
- package/dist/src/utils/safe-parsers.d.ts.map +1 -1
- package/dist/src/utils/service-validators.d.ts.map +1 -1
- package/dist/src/utils/slippage-utils.d.ts.map +1 -1
- package/dist/src/utils/string-patterns.d.ts +3 -3
- package/dist/src/utils/string-patterns.d.ts.map +1 -1
- package/dist/src/utils/swap-delta-calculator.d.ts +2 -2
- package/dist/src/utils/swap-delta-calculator.d.ts.map +1 -1
- package/dist/src/utils/tick-crossing-handler.d.ts.map +1 -1
- package/dist/src/utils/token-format-converter.d.ts +1 -1
- package/dist/src/utils/token-format-converter.d.ts.map +1 -1
- package/dist/src/utils/token-stringification.d.ts.map +1 -1
- package/dist/src/utils/tokenNormalizer.d.ts +1 -1
- package/dist/src/utils/tokenNormalizer.d.ts.map +1 -1
- package/dist/src/utils/trade-transformers.d.ts +1 -1
- package/dist/src/utils/trade-transformers.d.ts.map +1 -1
- package/dist/src/utils/validation-helpers.d.ts +5 -97
- package/dist/src/utils/validation-helpers.d.ts.map +1 -1
- package/dist/src/utils/validation-patterns.d.ts.map +1 -1
- package/dist/src/utils/validation.d.ts +1 -1
- package/dist/src/utils/validation.d.ts.map +1 -1
- package/dist/src/utils/wallet.d.ts.map +1 -1
- package/dist/src/utils/websocket-patterns.d.ts +1 -2
- package/dist/src/utils/websocket-patterns.d.ts.map +1 -1
- package/dist/src/utils/websocket-validators.d.ts +1 -1
- package/dist/src/utils/websocket-validators.d.ts.map +1 -1
- package/dist/src/wallet/ExternalWalletProvider.d.ts +109 -0
- package/dist/src/wallet/ExternalWalletProvider.d.ts.map +1 -0
- package/dist/src/wallet/GalaChainConnectProvider.d.ts +125 -0
- package/dist/src/wallet/GalaChainConnectProvider.d.ts.map +1 -0
- package/dist/src/wallet/GalaWalletProvider.d.ts +141 -0
- package/dist/src/wallet/GalaWalletProvider.d.ts.map +1 -0
- package/dist/src/wallet/PrivateKeyProvider.d.ts +90 -0
- package/dist/src/wallet/PrivateKeyProvider.d.ts.map +1 -0
- package/dist/src/wallet/detection.d.ts +107 -0
- package/dist/src/wallet/detection.d.ts.map +1 -0
- package/dist/src/wallet/index.d.ts +52 -0
- package/dist/src/wallet/index.d.ts.map +1 -0
- package/dist/src/wallet/types.d.ts +267 -0
- package/dist/src/wallet/types.d.ts.map +1 -0
- package/dist/src/wallet/utils.d.ts +117 -0
- package/dist/src/wallet/utils.d.ts.map +1 -0
- package/dist/test-constants.d.ts +29 -0
- package/dist/test-constants.d.ts.map +1 -0
- package/dist/types/ai-moderation.dto.d.ts +294 -0
- package/dist/types/ai-moderation.dto.d.ts.map +1 -0
- package/dist/types/api-key.dto.d.ts +373 -0
- package/dist/types/api-key.dto.d.ts.map +1 -0
- package/dist/types/backend-responses.d.ts +235 -0
- package/dist/types/backend-responses.d.ts.map +1 -0
- package/dist/types/ban.dto.d.ts +577 -0
- package/dist/types/ban.dto.d.ts.map +1 -0
- package/dist/types/burn.dto.d.ts +170 -0
- package/dist/types/burn.dto.d.ts.map +1 -0
- package/dist/types/cache-management.dto.d.ts +44 -0
- package/dist/types/cache-management.dto.d.ts.map +1 -0
- package/dist/types/chat-messages.dto.d.ts +193 -0
- package/dist/types/chat-messages.dto.d.ts.map +1 -0
- package/dist/types/client-config.dto.d.ts +43 -0
- package/dist/types/client-config.dto.d.ts.map +1 -0
- package/dist/types/comment.dto.d.ts +176 -0
- package/dist/types/comment.dto.d.ts.map +1 -0
- package/dist/types/comments.dto.d.ts +198 -0
- package/dist/types/comments.dto.d.ts.map +1 -0
- package/dist/types/common.d.ts +604 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/composite-pool.dto.d.ts +101 -0
- package/dist/types/composite-pool.dto.d.ts.map +1 -0
- package/dist/types/constraints.d.ts +378 -0
- package/dist/types/constraints.d.ts.map +1 -0
- package/dist/types/content-flag.dto.d.ts +337 -0
- package/dist/types/content-flag.dto.d.ts.map +1 -0
- package/dist/types/content-reactions.dto.d.ts +132 -0
- package/dist/types/content-reactions.dto.d.ts.map +1 -0
- package/dist/types/dex-pool.dto.d.ts +214 -0
- package/dist/types/dex-pool.dto.d.ts.map +1 -0
- package/dist/types/dto.d.ts +183 -0
- package/dist/types/dto.d.ts.map +1 -0
- package/dist/types/engagement-stats.dto.d.ts +62 -0
- package/dist/types/engagement-stats.dto.d.ts.map +1 -0
- package/dist/types/events.dto.d.ts +80 -0
- package/dist/types/events.dto.d.ts.map +1 -0
- package/dist/types/galachain-api.types.d.ts +297 -0
- package/dist/types/galachain-api.types.d.ts.map +1 -0
- package/dist/types/global-feed.dto.d.ts +203 -0
- package/dist/types/global-feed.dto.d.ts.map +1 -0
- package/dist/types/gswap-responses.types.d.ts +369 -0
- package/dist/types/gswap-responses.types.d.ts.map +1 -0
- package/dist/types/gswap.dto.d.ts +448 -0
- package/dist/types/gswap.dto.d.ts.map +1 -0
- package/dist/types/holder.types.d.ts +106 -0
- package/dist/types/holder.types.d.ts.map +1 -0
- package/dist/types/launchpad.dto.d.ts +1264 -0
- package/dist/types/launchpad.dto.d.ts.map +1 -0
- package/dist/types/launchpad.validation.d.ts +43 -0
- package/dist/types/launchpad.validation.d.ts.map +1 -0
- package/dist/types/liquidity-monitor.dto.d.ts +177 -0
- package/dist/types/liquidity-monitor.dto.d.ts.map +1 -0
- package/dist/types/lock.dto.d.ts +261 -0
- package/dist/types/lock.dto.d.ts.map +1 -0
- package/dist/types/messages.dto.d.ts +386 -0
- package/dist/types/messages.dto.d.ts.map +1 -0
- package/dist/types/moderator.dto.d.ts +607 -0
- package/dist/types/moderator.dto.d.ts.map +1 -0
- package/dist/types/nft.dto.d.ts +155 -0
- package/dist/types/nft.dto.d.ts.map +1 -0
- package/dist/types/notification.dto.d.ts +92 -0
- package/dist/types/notification.dto.d.ts.map +1 -0
- package/dist/types/oembed.dto.d.ts +160 -0
- package/dist/types/oembed.dto.d.ts.map +1 -0
- package/dist/types/options.dto.d.ts +485 -0
- package/dist/types/options.dto.d.ts.map +1 -0
- package/dist/types/overseer.dto.d.ts +530 -0
- package/dist/types/overseer.dto.d.ts.map +1 -0
- package/dist/types/platform-config.dto.d.ts +89 -0
- package/dist/types/platform-config.dto.d.ts.map +1 -0
- package/dist/types/platform-stats.dto.d.ts +40 -0
- package/dist/types/platform-stats.dto.d.ts.map +1 -0
- package/dist/types/pool-state-delta.dto.d.ts +246 -0
- package/dist/types/pool-state-delta.dto.d.ts.map +1 -0
- package/dist/types/pool.dto.d.ts +111 -0
- package/dist/types/pool.dto.d.ts.map +1 -0
- package/dist/types/priceHistory.dto.d.ts +165 -0
- package/dist/types/priceHistory.dto.d.ts.map +1 -0
- package/dist/types/restricted-names.dto.d.ts +50 -0
- package/dist/types/restricted-names.dto.d.ts.map +1 -0
- package/dist/types/result.types.d.ts +104 -0
- package/dist/types/result.types.d.ts.map +1 -0
- package/dist/types/session-auth.dto.d.ts +99 -0
- package/dist/types/session-auth.dto.d.ts.map +1 -0
- package/dist/types/stream-chat.dto.d.ts +810 -0
- package/dist/types/stream-chat.dto.d.ts.map +1 -0
- package/dist/types/streaming-events.dto.d.ts +605 -0
- package/dist/types/streaming-events.dto.d.ts.map +1 -0
- package/dist/types/streaming.dto.d.ts +1178 -0
- package/dist/types/streaming.dto.d.ts.map +1 -0
- package/dist/types/swap-monitor.dto.d.ts +256 -0
- package/dist/types/swap-monitor.dto.d.ts.map +1 -0
- package/dist/types/token-ban.dto.d.ts +194 -0
- package/dist/types/token-ban.dto.d.ts.map +1 -0
- package/dist/types/token-config.dto.d.ts +117 -0
- package/dist/types/token-config.dto.d.ts.map +1 -0
- package/dist/types/token.types.d.ts +336 -0
- package/dist/types/token.types.d.ts.map +1 -0
- package/dist/types/trade.dto.d.ts +457 -0
- package/dist/types/trade.dto.d.ts.map +1 -0
- package/dist/types/trades-query.dto.d.ts +133 -0
- package/dist/types/trades-query.dto.d.ts.map +1 -0
- package/dist/types/transfer.dto.d.ts +156 -0
- package/dist/types/transfer.dto.d.ts.map +1 -0
- package/dist/types/user.dto.d.ts +880 -0
- package/dist/types/user.dto.d.ts.map +1 -0
- package/dist/types/websocket-admin.dto.d.ts +390 -0
- package/dist/types/websocket-admin.dto.d.ts.map +1 -0
- package/dist/types/websocket-data.types.d.ts +35 -0
- package/dist/types/websocket-data.types.d.ts.map +1 -0
- package/dist/types/websocket-events.dto.d.ts +472 -0
- package/dist/types/websocket-events.dto.d.ts.map +1 -0
- package/dist/types/websocket.types.d.ts +118 -0
- package/dist/types/websocket.types.d.ts.map +1 -0
- package/dist/types/weekly-challenge.dto.d.ts +130 -0
- package/dist/types/weekly-challenge.dto.d.ts.map +1 -0
- package/dist/types/wrappable-token.dto.d.ts +305 -0
- package/dist/types/wrappable-token.dto.d.ts.map +1 -0
- package/dist/utils/LiquidityEventExtractor.d.ts +106 -0
- package/dist/utils/LiquidityEventExtractor.d.ts.map +1 -0
- package/dist/utils/Logger.d.ts +136 -0
- package/dist/utils/Logger.d.ts.map +1 -0
- package/dist/utils/MonitoringMetrics.d.ts +151 -0
- package/dist/utils/MonitoringMetrics.d.ts.map +1 -0
- package/dist/utils/PoolKeyNormalizer.d.ts +135 -0
- package/dist/utils/PoolKeyNormalizer.d.ts.map +1 -0
- package/dist/utils/ReconnectionManager.d.ts +142 -0
- package/dist/utils/ReconnectionManager.d.ts.map +1 -0
- package/dist/utils/SignatureHelper.d.ts +140 -0
- package/dist/utils/SignatureHelper.d.ts.map +1 -0
- package/dist/utils/SwapEventExtractor.d.ts +152 -0
- package/dist/utils/SwapEventExtractor.d.ts.map +1 -0
- package/dist/utils/adapters.d.ts +111 -0
- package/dist/utils/adapters.d.ts.map +1 -0
- package/dist/utils/address-formatter.d.ts +318 -0
- package/dist/utils/address-formatter.d.ts.map +1 -0
- package/dist/utils/agent-config.d.ts +288 -0
- package/dist/utils/agent-config.d.ts.map +1 -0
- package/dist/utils/amount-validator.d.ts +268 -0
- package/dist/utils/amount-validator.d.ts.map +1 -0
- package/dist/utils/api-patterns.d.ts +347 -0
- package/dist/utils/api-patterns.d.ts.map +1 -0
- package/dist/utils/array-helpers.d.ts +115 -0
- package/dist/utils/array-helpers.d.ts.map +1 -0
- package/dist/utils/assetUrls.d.ts +450 -0
- package/dist/utils/assetUrls.d.ts.map +1 -0
- package/dist/utils/async-patterns.d.ts +272 -0
- package/dist/utils/async-patterns.d.ts.map +1 -0
- package/dist/utils/auto-pagination.d.ts +549 -0
- package/dist/utils/auto-pagination.d.ts.map +1 -0
- package/dist/utils/bignumber-helpers.d.ts +446 -0
- package/dist/utils/bignumber-helpers.d.ts.map +1 -0
- package/dist/utils/bignumber-pool-cache.d.ts +169 -0
- package/dist/utils/bignumber-pool-cache.d.ts.map +1 -0
- package/dist/utils/bondingCurveCalculations.d.ts +144 -0
- package/dist/utils/bondingCurveCalculations.d.ts.map +1 -0
- package/dist/utils/cacheWarmingHelpers.d.ts +110 -0
- package/dist/utils/cacheWarmingHelpers.d.ts.map +1 -0
- package/dist/utils/composite-pool-converter.d.ts +121 -0
- package/dist/utils/composite-pool-converter.d.ts.map +1 -0
- package/dist/utils/crypto-compat.d.ts +40 -0
- package/dist/utils/crypto-compat.d.ts.map +1 -0
- package/dist/utils/data-transform-patterns.d.ts +393 -0
- package/dist/utils/data-transform-patterns.d.ts.map +1 -0
- package/dist/utils/date-utils.d.ts +205 -0
- package/dist/utils/date-utils.d.ts.map +1 -0
- package/dist/utils/delimiter-parser.d.ts +139 -0
- package/dist/utils/delimiter-parser.d.ts.map +1 -0
- package/dist/utils/error-factories.d.ts +701 -0
- package/dist/utils/error-factories.d.ts.map +1 -0
- package/dist/utils/error-handling-patterns.d.ts +390 -0
- package/dist/utils/error-handling-patterns.d.ts.map +1 -0
- package/dist/utils/error-patterns.d.ts +360 -0
- package/dist/utils/error-patterns.d.ts.map +1 -0
- package/dist/utils/error-utils.d.ts +463 -0
- package/dist/utils/error-utils.d.ts.map +1 -0
- package/dist/utils/error-wrapper.d.ts +208 -0
- package/dist/utils/error-wrapper.d.ts.map +1 -0
- package/dist/utils/errors.d.ts +552 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/http-factory.d.ts +36 -0
- package/dist/utils/http-factory.d.ts.map +1 -0
- package/dist/utils/http.d.ts +97 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/load-env.d.ts +31 -0
- package/dist/utils/load-env.d.ts.map +1 -0
- package/dist/utils/multipart-helpers.d.ts +38 -0
- package/dist/utils/multipart-helpers.d.ts.map +1 -0
- package/dist/utils/multipart.d.ts +63 -0
- package/dist/utils/multipart.d.ts.map +1 -0
- package/dist/utils/nft-helpers.d.ts +62 -0
- package/dist/utils/nft-helpers.d.ts.map +1 -0
- package/dist/utils/numeric-patterns.d.ts +289 -0
- package/dist/utils/numeric-patterns.d.ts.map +1 -0
- package/dist/utils/numeric-wrappers.d.ts +149 -0
- package/dist/utils/numeric-wrappers.d.ts.map +1 -0
- package/dist/utils/object-extractors.d.ts +115 -0
- package/dist/utils/object-extractors.d.ts.map +1 -0
- package/dist/utils/object-patterns.d.ts +81 -0
- package/dist/utils/object-patterns.d.ts.map +1 -0
- package/dist/utils/pagination-helpers.d.ts +161 -0
- package/dist/utils/pagination-helpers.d.ts.map +1 -0
- package/dist/utils/pagination-validation.d.ts +88 -0
- package/dist/utils/pagination-validation.d.ts.map +1 -0
- package/dist/utils/pool-pair-parser.d.ts +57 -0
- package/dist/utils/pool-pair-parser.d.ts.map +1 -0
- package/dist/utils/pool-state-validator.d.ts +207 -0
- package/dist/utils/pool-state-validator.d.ts.map +1 -0
- package/dist/utils/position-filters.d.ts +252 -0
- package/dist/utils/position-filters.d.ts.map +1 -0
- package/dist/utils/primitives.d.ts +76 -0
- package/dist/utils/primitives.d.ts.map +1 -0
- package/dist/utils/query-params.d.ts +89 -0
- package/dist/utils/query-params.d.ts.map +1 -0
- package/dist/utils/response-handlers.d.ts +225 -0
- package/dist/utils/response-handlers.d.ts.map +1 -0
- package/dist/utils/response-helpers.d.ts +28 -0
- package/dist/utils/response-helpers.d.ts.map +1 -0
- package/dist/utils/response-normalizers.d.ts +115 -0
- package/dist/utils/response-normalizers.d.ts.map +1 -0
- package/dist/utils/safe-parsers.d.ts +487 -0
- package/dist/utils/safe-parsers.d.ts.map +1 -0
- package/dist/utils/service-validators.d.ts +268 -0
- package/dist/utils/service-validators.d.ts.map +1 -0
- package/dist/utils/slippage-utils.d.ts +70 -0
- package/dist/utils/slippage-utils.d.ts.map +1 -0
- package/dist/utils/string-patterns.d.ts +404 -0
- package/dist/utils/string-patterns.d.ts.map +1 -0
- package/dist/utils/string-transforms.d.ts +89 -0
- package/dist/utils/string-transforms.d.ts.map +1 -0
- package/dist/utils/string-utils.d.ts +108 -0
- package/dist/utils/string-utils.d.ts.map +1 -0
- package/dist/utils/swap-delta-calculator.d.ts +231 -0
- package/dist/utils/swap-delta-calculator.d.ts.map +1 -0
- package/dist/utils/tick-crossing-handler.d.ts +250 -0
- package/dist/utils/tick-crossing-handler.d.ts.map +1 -0
- package/dist/utils/token-format-converter.d.ts +175 -0
- package/dist/utils/token-format-converter.d.ts.map +1 -0
- package/dist/utils/token-parser.d.ts +235 -0
- package/dist/utils/token-parser.d.ts.map +1 -0
- package/dist/utils/token-stringification.d.ts +168 -0
- package/dist/utils/token-stringification.d.ts.map +1 -0
- package/dist/utils/tokenNameNormalizer.d.ts +96 -0
- package/dist/utils/tokenNameNormalizer.d.ts.map +1 -0
- package/dist/utils/tokenNormalizer.d.ts +167 -0
- package/dist/utils/tokenNormalizer.d.ts.map +1 -0
- package/dist/utils/trade-transformers.d.ts +28 -0
- package/dist/utils/trade-transformers.d.ts.map +1 -0
- package/dist/utils/transfer-validation.d.ts +58 -0
- package/dist/utils/transfer-validation.d.ts.map +1 -0
- package/dist/utils/type-guard-factory.d.ts +260 -0
- package/dist/utils/type-guard-factory.d.ts.map +1 -0
- package/dist/utils/unique-key-generator.d.ts +148 -0
- package/dist/utils/unique-key-generator.d.ts.map +1 -0
- package/dist/utils/validation-helpers.d.ts +1074 -0
- package/dist/utils/validation-helpers.d.ts.map +1 -0
- package/dist/utils/validation-patterns.d.ts +768 -0
- package/dist/utils/validation-patterns.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +140 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/wallet.d.ts +185 -0
- package/dist/utils/wallet.d.ts.map +1 -0
- package/dist/utils/websocket-errors.d.ts +30 -0
- package/dist/utils/websocket-errors.d.ts.map +1 -0
- package/dist/utils/websocket-patterns.d.ts +680 -0
- package/dist/utils/websocket-patterns.d.ts.map +1 -0
- package/dist/utils/websocket-validators.d.ts +30 -0
- package/dist/utils/websocket-validators.d.ts.map +1 -0
- package/dist/wallet/ExternalWalletProvider.d.ts +109 -0
- package/dist/wallet/ExternalWalletProvider.d.ts.map +1 -0
- package/dist/wallet/GalaChainConnectProvider.d.ts +125 -0
- package/dist/wallet/GalaChainConnectProvider.d.ts.map +1 -0
- package/dist/wallet/GalaWalletProvider.d.ts +141 -0
- package/dist/wallet/GalaWalletProvider.d.ts.map +1 -0
- package/dist/wallet/PrivateKeyProvider.d.ts +90 -0
- package/dist/wallet/PrivateKeyProvider.d.ts.map +1 -0
- package/dist/wallet/detection.d.ts +107 -0
- package/dist/wallet/detection.d.ts.map +1 -0
- package/dist/wallet/index.d.ts +52 -0
- package/dist/wallet/index.d.ts.map +1 -0
- package/dist/wallet/types.d.ts +267 -0
- package/dist/wallet/types.d.ts.map +1 -0
- package/dist/wallet/utils.d.ts +117 -0
- package/dist/wallet/utils.d.ts.map +1 -0
- package/dist/wallet.cjs +1 -0
- package/dist/wallet.esm.js +1 -0
- package/package.json +177 -41
- package/dist/examples/utils/orchestrator-base.d.ts +0 -313
- package/dist/examples/utils/orchestrator-base.d.ts.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/src/services/ChatMessagesService.d.ts +0 -152
- package/dist/src/services/ChatMessagesService.d.ts.map +0 -1
- package/dist/src/services/CommentService.d.ts +0 -119
- package/dist/src/services/CommentService.d.ts.map +0 -1
- package/dist/src/services/CommentsService.d.ts +0 -155
- package/dist/src/services/CommentsService.d.ts.map +0 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts +0 -227
- package/dist/src/services/GalaChainGatewayClient.d.ts.map +0 -1
|
@@ -1,42 +1,59 @@
|
|
|
1
1
|
import { Wallet } from 'ethers';
|
|
2
|
-
import type {
|
|
3
|
-
import type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
4
|
-
import type { EthereumWalletBalanceResult, SolanaWalletBalanceResult, ExternalChainBalance, EstimateBridgeFeeParams, BridgeFeeEstimate, BridgeOutParams, BridgeInParams, BridgeTransaction, BridgeStatus, BridgeToken, EthereumTransactionStatus, SolanaTransactionStatus } from './bridge/types/bridge.dto';
|
|
2
|
+
import type { BridgeFeeEstimate, BridgeInParams, BridgeOutParams, BridgeStatus, BridgeToken, BridgeTransaction, EstimateBridgeFeeParams, EthereumTransactionStatus, EthereumWalletBalanceResult, ExternalChainBalance, SolanaTransactionStatus, SolanaWalletBalanceResult } from './bridge/types/bridge.dto';
|
|
5
3
|
import type { BridgeableNetwork, FetchBridgeableTokensOptions, FetchBridgeableTokensResult, IsTokenBridgeableOptions, IsTokenBridgeableResult } from './bridge/types/bridgeable-token.dto';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type { CreateModeratorInviteOptions, ClaimModeratorInviteOptions, ListModeratorInvitesOptions, GetModeratedTokensOptions, UpdateInviteRoleOptions, CreateModeratorInviteResult, ClaimModeratorInviteResult, ModeratorInviteListResult, ModeratedTokensResult, UpdateInviteRoleResult, PublicInviteInfo } from './types/moderator.dto';
|
|
13
|
-
import type { LoginResponse, SessionInfo, RefreshResponse } from './types/session-auth.dto';
|
|
14
|
-
import type { CreateFlagOptions, CreateFlagResult, ListFlagsOptions, ListGlobalFlagsOptions, FlagListResult, DismissFlagOptions, DismissFlagResult, ActionFlagOptions, ActionFlagResult } from './types/content-flag.dto';
|
|
15
|
-
import type { CreateOverseerInviteOptions, ListOverseerInvitesOptions, ListOverseersOptions, OverseerInviteWithUrl, PublicOverseerInviteInfo, PaginatedOverseerInvites, PaginatedOverseers, OverseerStatusResponse, OverseerSummaryResponse, ListUsersOptions, UsersListResponse, UserSummaryResponse } from './types/overseer.dto';
|
|
16
|
-
import type { AddContentReactionOptions, RemoveContentReactionOptions, AddContentReactionResult, RemoveContentReactionResult } from './types/content-reactions.dto';
|
|
17
|
-
import type { GetCommentsOptions, CreateCommentOptions, UpdateCommentOptions, CommentsResult, CreateCommentResult, UpdateCommentResult, DeleteCommentResult } from './types/comments.dto';
|
|
18
|
-
import type { GetChatMessagesOptions, CreateChatMessageOptions, UpdateChatMessageOptions, GetChatMessagesResult, CreateChatMessageResult, UpdateChatMessageResult } from './types/chat-messages.dto';
|
|
19
|
-
import type { ClaimCollectionParams, ClaimCollectionResult, CreateTokenClassParams, CreateTokenClassResult, MintNftParams, MintNftResult, NftBalance, NftCollectionAuthorization, NftTokenClassWithSupply, EstimateMintFeeParams, EstimateNftFeesParams, NftFeeEstimate, FetchTokenClassesParams } from './types/nft.dto';
|
|
20
|
-
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
21
|
-
import type { PoolDetailsData } from './types/trade.dto';
|
|
22
|
-
import type { LaunchTokenData, TokenSpotPrice, FetchPoolsOptions, PoolsResult, GalaChainTokenDetails, PoolData, TokenClassWithSupply, DexSeason, LeaderboardResult, DexAggregatedVolumeSummary, UpdateSocialLinksDto, UpdateSocialLinksResponse } from './types/launchpad.dto';
|
|
23
|
-
import type { UpdateProfileData, UploadProfileImageOptions, FetchTokenBalanceOptions, LockedBalanceResult, AvailableBalanceResult, ReferralUrlResult, FetchReferralsOptions, ReferralsResult, AllReferralsResult, FetchReferralsSummaryOptions, ReferralsSummaryResult, RegisterAccountOptions, RegisterAccountResult, GetManagedTokensOptions, ManagedTokensResult, TokenBalanceResult } from './types/user.dto';
|
|
24
|
-
import type { TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
25
|
-
import type { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
4
|
+
import { EventsBatcherService } from './services/EventsBatcherService';
|
|
5
|
+
import { GdexStreamService } from './services/GdexStreamService';
|
|
6
|
+
import type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
7
|
+
import type { GetAIModerationOptions, GetAIModerationResult, GetAIModerationSettingsResult, GetAIModerationStatusResult, TriggerAIModerationOptions, TriggerAIModerationResult, UpdateAIModerationSettingsOptions, UpdateAIModerationSettingsResult } from './types/ai-moderation.dto';
|
|
8
|
+
import type { ApiKeyData, ApiKeyListResponse, CreateApiKeyOptions, CreateApiKeyResponse, ListApiKeysOptions, UpdateApiKeyOptions } from './types/api-key.dto';
|
|
9
|
+
import type { ActiveUsersResult, BanListResult, BanStatusResult, CreateBanOptions, CreateBanResult, CreateGlobalBanOptions, CreateGlobalBanResult, GetActiveUsersOptions, GetBanStatusOptions, GetGlobalBanOptions, GlobalBanListResult, GlobalBanStatusResult, ListBansOptions, ListGlobalBansOptions, RemoveBanOptions, RemoveBanResult, RemoveGlobalBanOptions, RemoveGlobalBanResult } from './types/ban.dto';
|
|
26
10
|
import type { BurnTokensData, BurnTokensResult } from './types/burn.dto';
|
|
11
|
+
import type { FlushResult } from './types/cache-management.dto';
|
|
12
|
+
import type { CreateChatMessageOptions, CreateChatMessageResult, GetChatMessagesOptions, GetChatMessagesResult, UpdateChatMessageOptions, UpdateChatMessageResult } from './types/chat-messages.dto';
|
|
13
|
+
import type { GetClientFlagsResult } from './types/client-config.dto';
|
|
14
|
+
import type { CommentsResult, CreateCommentOptions, CreateCommentResult, DeleteCommentResult, GetCommentsOptions, UpdateCommentOptions, UpdateCommentResult } from './types/comments.dto';
|
|
15
|
+
import type { AddressFormat, ApiResponse, SDKConfig, TokenClassKey, TokenId } from './types/common';
|
|
16
|
+
import type { ActionFlagOptions, ActionFlagResult, CreateFlagOptions, CreateFlagResult, DismissFlagOptions, DismissFlagResult, FlagListResult, ListFlagsOptions, ListGlobalFlagsOptions } from './types/content-flag.dto';
|
|
17
|
+
import type { AddContentReactionOptions, AddContentReactionResult, RemoveContentReactionOptions, RemoveContentReactionResult } from './types/content-reactions.dto';
|
|
18
|
+
import type { FetchTokenStatsResult } from './types/engagement-stats.dto';
|
|
19
|
+
import type { AmountCalculationResult, DexAggregatedVolumeSummary, DexSeason, FetchPoolsOptions, GalaChainTokenDetails, GraduationCalculationResult, GraphDataResult, LaunchTokenData, LeaderboardResult, PoolData, PoolsResult, SaleDetailsResult, TokenBadgesResult, TokenClassWithSupply, TokenDistributionResult, TokenHolder, TokenSpotPrice, TradeQuoteParams, UserHolderContext, ValidateTokenResponse } from './types/launchpad.dto';
|
|
20
|
+
import type { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
21
|
+
import type { CreateMessageOptions, CreateMessageResult, DeleteMessageResult, FetchMessagesOptions, FetchMessagesResult, GetPinnedMessageResult, MessageStats, PinMessageResult, UpdateMessageOptions, UpdateMessageResult, UpdateTokenConfigOptions } from './types/messages.dto';
|
|
22
|
+
import type { ClaimModeratorInviteOptions, ClaimModeratorInviteResult, CreateModeratorInviteOptions, CreateModeratorInviteResult, GetModeratedTokensOptions, ListModeratorInvitesOptions, ModeratedTokensResult, ModeratorInviteListResult, PublicInviteInfo, UpdateInviteRoleOptions, UpdateInviteRoleResult, UpdateModeratorInviteOptions, UpdateModeratorInviteResult } from './types/moderator.dto';
|
|
23
|
+
import type { ClaimCollectionParams, ClaimCollectionResult, CreateTokenClassParams, CreateTokenClassResult, EstimateMintFeeParams, EstimateNftFeesParams, FetchTokenClassesParams, MintNftParams, MintNftResult, NftBalance, NftCollectionAuthorization, NftFeeEstimate, NftTokenClassWithSupply } from './types/nft.dto';
|
|
24
|
+
import type { GetNotificationPreferencesResult, RegisterPushTokenParams, RegisterPushTokenResult, UnregisterPushTokenResult, UpdateNotificationPreferencesParams, UpdateNotificationPreferencesResult } from './types/notification.dto';
|
|
25
|
+
import type { GetHomeOEmbedJsonResult, GetHomeOEmbedOptions, GetPoolOEmbedJsonResult, GetPoolOEmbedOptions, GetProfileOEmbedJsonResult, GetProfileOEmbedOptions } from './types/oembed.dto';
|
|
26
|
+
import type { BanStatsResponse, CreateOverseerDirectOptions, CreateOverseerInviteOptions, FlagStatsResponse, InviteStatsResponse, ListOverseerInvitesOptions, ListOverseersOptions, ListUsersOptions, Overseer, OverseerInviteWithUrl, OverseerStatusResponse, OverseerSummaryResponse, PaginatedOverseerInvites, PaginatedOverseers, PublicOverseerInviteInfo, TokenBanStatsResponse, UsersListResponse, UserStatsResponse, UserSummaryResponse } from './types/overseer.dto';
|
|
27
|
+
import type { PlatformConfig, UpdatePlatformConfigOptions } from './types/platform-config.dto';
|
|
28
|
+
import type { GetPlatformStatsResult } from './types/platform-stats.dto';
|
|
29
|
+
import type { GetRestrictedNamesResult, UpdateRestrictedNamesRequest, UpdateRestrictedNamesResult } from './types/restricted-names.dto';
|
|
27
30
|
import type { TokenLaunchResult, TradeResult } from './types/result.types';
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
import type {
|
|
31
|
-
import type {
|
|
32
|
-
import type {
|
|
33
|
-
import type {
|
|
34
|
-
import type {
|
|
35
|
-
import type {
|
|
31
|
+
import type { LoginResponse, RefreshResponse, SessionInfo } from './types/session-auth.dto';
|
|
32
|
+
import type { EngagementStatsResult, GetEngagementStatsOptions, GlobalChatStatus } from './types/stream-chat.dto';
|
|
33
|
+
import type { AddSimulcastTargetOptions, AddSimulcastTargetResult, FetchRecordingsOptions, GetStreamRoleOptions, GetTokenAccessOptions, GlobalStreamingStatus, RecordingDownloadResult, RecordingsResult, ResetStreamKeyResult, SimulcastTargetsResult, StartStreamResult, StreamCredentialsResult, StreamRoleResponse, StreamSubscribedEvent, TokenAccessResult } from './types/streaming.dto';
|
|
34
|
+
import type { BanTokenOptions, BanTokenResult, GetTokenBanOptions, ListTokenBansOptions, TokenBanListResult, TokenBanStatusResult, UnbanTokenOptions, UnbanTokenResult } from './types/token-ban.dto';
|
|
35
|
+
import type { PoolDetailsData, TradesResult } from './types/trade.dto';
|
|
36
|
+
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
37
|
+
import type { TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
38
|
+
import type { AllReferralsResult, AvailableBalanceResult, FetchReferralsOptions, FetchReferralsSummaryOptions, FetchTokenBalanceOptions, FetchUserBalancesOptions, FetchUserBalancesResult, FetchUserReportOptions, FetchUserReportResult, GetManagedTokensOptions, LockedBalanceResult, ManagedTokensResult, ReferralsResult, ReferralsSummaryResult, ReferralUrlResult, TokenBalanceResult, UpdateProfileData, UploadProfileImageOptions, UserTokenListResult } from './types/user.dto';
|
|
39
|
+
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
|
+
import type { EngagementStatsUpdatedEvent } from './types/websocket-events.dto';
|
|
41
|
+
import type { GetTokenWeeklyHistoryOptions, GetTokenWeeklyHistoryResult, GetWeeklyChallengeOptions, GetWeeklyChallengeResult } from './types/weekly-challenge.dto';
|
|
42
|
+
import type { FetchWrappableTokensOptions, FetchWrappableTokensResult, IsTokenWrappableResult, UnwrapTokenOptions, WrappableToken, WrapTokenOptions, WrapUnwrapFeeEstimate, WrapUnwrapResult, WrapUnwrapStatusResult } from './types/wrappable-token.dto';
|
|
43
|
+
import { TransactionFailedError, WebSocketError, WebSocketTimeoutError } from './utils/websocket-errors';
|
|
44
|
+
import type { WalletProvider } from './wallet/types';
|
|
45
|
+
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';
|
|
36
50
|
import type { LiquidityChangedCallback, LiquidityCleanupFunction, SubscribeLiquidityOptions } from './types/liquidity-monitor.dto';
|
|
37
|
-
import type {
|
|
38
|
-
import type {
|
|
39
|
-
import type {
|
|
51
|
+
import type { BuyTokenOptions, CalculateBuyAmountForGraduationOptions, CalculateBuyAmountLocalOptions, CalculateBuyAmountOptions, CalculateSellAmountLocalOptions, CalculateSellAmountOptions, FetchTokensCreatedOptions, FetchTokensHeldOptions, FetchTokenSpotPriceParams, FetchTradesOptions, FetchVolumeDataOptions, GraduateTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions } from './types/options.dto';
|
|
52
|
+
import type { FetchPriceHistoryOptions, PriceHistoryResult } from './types/priceHistory.dto';
|
|
53
|
+
import type { GetPinnedMessageResult as LegacyGetPinnedMessageResult, PinMessageResult as LegacyPinMessageResult, UnpinMessageResult as LegacyUnpinMessageResult } from './types/stream-chat.dto';
|
|
54
|
+
import type { AvailableRolesResponse } from './types/streaming.dto';
|
|
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';
|
|
40
57
|
/**
|
|
41
58
|
* Configuration for initializing the Launchpad SDK
|
|
42
59
|
*
|
|
@@ -72,11 +89,19 @@ import type { StreamStatusChangedEvent, UserBannedEvent, UserUnbannedEvent, BanE
|
|
|
72
89
|
* Contains configuration values excluding sensitive wallet data
|
|
73
90
|
* @since 4.0.20
|
|
74
91
|
*/
|
|
75
|
-
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet'> & {
|
|
92
|
+
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet' | 'walletProvider' | 'streamAdminApiKey' | 'userApiKey' | 'accessToken' | 'headers'> & {
|
|
76
93
|
/** Current environment (STAGE or PROD) */
|
|
77
94
|
environment: 'STAGE' | 'PROD';
|
|
78
95
|
/** GalaChain gas fee in GALA (fixed at "1" GALA) */
|
|
79
96
|
gasFee: string;
|
|
97
|
+
/** Stream admin API key presence indicator — always '[REDACTED]' if configured */
|
|
98
|
+
streamAdminApiKey?: '[REDACTED]';
|
|
99
|
+
/** User API key presence indicator — always '[REDACTED]' if configured */
|
|
100
|
+
userApiKey?: '[REDACTED]';
|
|
101
|
+
/** Access token presence indicator — always '[REDACTED]' if configured */
|
|
102
|
+
accessToken?: '[REDACTED]';
|
|
103
|
+
/** Custom header keys with values always '[REDACTED]' */
|
|
104
|
+
headers?: Record<string, '[REDACTED]'>;
|
|
80
105
|
};
|
|
81
106
|
export interface LaunchpadSDKConfig extends SDKConfig {
|
|
82
107
|
/**
|
|
@@ -85,14 +110,53 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
85
110
|
* - Optional for: Pool queries, price fetches, balance checks, calculations, metadata retrieval
|
|
86
111
|
*
|
|
87
112
|
* If not provided, SDK operates in read-only mode. Call setWallet() later to enable signing operations.
|
|
113
|
+
*
|
|
114
|
+
* @deprecated Use `walletProvider` instead for browser wallet support
|
|
115
|
+
*/
|
|
116
|
+
wallet?: Wallet | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* A WalletProvider for authentication (optional)
|
|
119
|
+
*
|
|
120
|
+
* Supports both private key and browser extension wallets (MetaMask, Coinbase, etc.).
|
|
121
|
+
* - Required for: Trading (buy/sell), transfers, token creation, profile updates
|
|
122
|
+
* - Optional for: Pool queries, price fetches, balance checks, calculations, metadata retrieval
|
|
123
|
+
*
|
|
124
|
+
* If not provided, SDK operates in read-only mode.
|
|
125
|
+
*
|
|
126
|
+
* @example Using private key (Node.js/CLI)
|
|
127
|
+
* ```typescript
|
|
128
|
+
* import { PrivateKeyProvider } from '@gala-chain/launchpad-sdk/wallet';
|
|
129
|
+
*
|
|
130
|
+
* const provider = new PrivateKeyProvider('0x...');
|
|
131
|
+
* const sdk = new LaunchpadSDK({
|
|
132
|
+
* walletProvider: provider,
|
|
133
|
+
* env: 'PROD'
|
|
134
|
+
* });
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
137
|
+
* @example Using browser wallet (React/Vue)
|
|
138
|
+
* ```typescript
|
|
139
|
+
* import { ExternalWalletProvider, detectWallets } from '@gala-chain/launchpad-sdk/wallet';
|
|
140
|
+
*
|
|
141
|
+
* const { wallets } = await detectWallets();
|
|
142
|
+
* const provider = new ExternalWalletProvider(wallets[0].provider);
|
|
143
|
+
* await provider.connect();
|
|
144
|
+
*
|
|
145
|
+
* const sdk = new LaunchpadSDK({
|
|
146
|
+
* walletProvider: provider,
|
|
147
|
+
* env: 'PROD'
|
|
148
|
+
* });
|
|
149
|
+
* ```
|
|
88
150
|
*/
|
|
89
|
-
|
|
151
|
+
walletProvider?: WalletProvider;
|
|
90
152
|
/** Optional GalaChain gateway URL override - defaults based on main API environment */
|
|
91
153
|
galaChainBaseUrl?: string;
|
|
92
154
|
/** Optional Bundle service URL override - defaults based on main API environment */
|
|
93
155
|
bundleBaseUrl?: string;
|
|
94
156
|
/** Optional WebSocket URL override for transaction monitoring - defaults based on main API environment */
|
|
95
157
|
webSocketUrl?: string;
|
|
158
|
+
/** Optional GDEX JSON-RPC WebSocket URL override - defaults based on main API environment */
|
|
159
|
+
gdexWebSocketUrl?: string;
|
|
96
160
|
/** Optional DEX API URL override for launchpad token balances - defaults based on main API environment */
|
|
97
161
|
dexApiBaseUrl?: string;
|
|
98
162
|
/** Optional DEX Backend URL override for price oracle - defaults based on main API environment */
|
|
@@ -318,19 +382,28 @@ export declare class LaunchpadSDK {
|
|
|
318
382
|
private _streamingService;
|
|
319
383
|
private _streamChatService;
|
|
320
384
|
private _streamWebSocketService;
|
|
385
|
+
private _gdexStreamService;
|
|
321
386
|
private _streamingEventService;
|
|
322
387
|
private _banService;
|
|
323
388
|
private _tokenBanService;
|
|
389
|
+
private _aiModerationService;
|
|
324
390
|
private _apiKeyService;
|
|
325
391
|
private _moderatorService;
|
|
326
392
|
private _flagService;
|
|
327
393
|
private _overseerService;
|
|
328
|
-
private
|
|
394
|
+
private _websocketAdminService;
|
|
329
395
|
private _contentReactionService;
|
|
330
|
-
private
|
|
331
|
-
private
|
|
332
|
-
private
|
|
396
|
+
private _messagesService;
|
|
397
|
+
private _restrictedNamesService;
|
|
398
|
+
private _platformConfigService;
|
|
399
|
+
private _eventsBatcherService;
|
|
400
|
+
private _weeklyChallengeService;
|
|
401
|
+
private _oembedService;
|
|
402
|
+
private _platformStatsService;
|
|
403
|
+
private _notificationService;
|
|
404
|
+
private _clientConfigService;
|
|
333
405
|
private readonly nftCollectionService;
|
|
406
|
+
private readonly tradingQuotesService;
|
|
334
407
|
private readonly launchpadAPI;
|
|
335
408
|
constructor(config: LaunchpadSDKConfig);
|
|
336
409
|
/**
|
|
@@ -367,8 +440,7 @@ export declare class LaunchpadSDK {
|
|
|
367
440
|
* const address = sdk.getAddress();
|
|
368
441
|
* const pools = await sdk.launchpad.fetchPools({
|
|
369
442
|
* creatorAddress: address,
|
|
370
|
-
*
|
|
371
|
-
* limit: 10
|
|
443
|
+
* pageSize: 10
|
|
372
444
|
* });
|
|
373
445
|
* ```
|
|
374
446
|
*
|
|
@@ -475,6 +547,30 @@ export declare class LaunchpadSDK {
|
|
|
475
547
|
* ```
|
|
476
548
|
*/
|
|
477
549
|
setWallet(wallet: Wallet): void;
|
|
550
|
+
/**
|
|
551
|
+
* Sets or updates the wallet provider for authentication
|
|
552
|
+
*
|
|
553
|
+
* Use this method to dynamically configure wallet authentication after SDK initialization.
|
|
554
|
+
* This is the preferred method for browser wallet integrations.
|
|
555
|
+
*
|
|
556
|
+
* @param provider The wallet provider to set (or undefined to clear)
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* ```typescript
|
|
560
|
+
* import { ExternalWalletProvider, detectWallets } from '@gala-chain/launchpad-sdk/wallet';
|
|
561
|
+
*
|
|
562
|
+
* // Detect available wallets
|
|
563
|
+
* const { wallets } = await detectWallets();
|
|
564
|
+
*
|
|
565
|
+
* // Create provider from detected wallet
|
|
566
|
+
* const provider = new ExternalWalletProvider(wallets[0].provider);
|
|
567
|
+
* await provider.connect();
|
|
568
|
+
*
|
|
569
|
+
* // Set on SDK
|
|
570
|
+
* sdk.setWalletProvider(provider);
|
|
571
|
+
* ```
|
|
572
|
+
*/
|
|
573
|
+
setWalletProvider(provider: WalletProvider | undefined): void;
|
|
478
574
|
/**
|
|
479
575
|
* Gets the currently configured wallet
|
|
480
576
|
*
|
|
@@ -509,6 +605,21 @@ export declare class LaunchpadSDK {
|
|
|
509
605
|
* ```
|
|
510
606
|
*/
|
|
511
607
|
getWallet(): Wallet | undefined;
|
|
608
|
+
/**
|
|
609
|
+
* Access the events tracking service for batching and flushing events
|
|
610
|
+
*
|
|
611
|
+
* Lazy-initialized on first access.
|
|
612
|
+
*
|
|
613
|
+
* @returns EventsBatcherService instance
|
|
614
|
+
* @since 8.2.0
|
|
615
|
+
*/
|
|
616
|
+
get events(): EventsBatcherService;
|
|
617
|
+
/**
|
|
618
|
+
* Returns the configured wallet provider (if any)
|
|
619
|
+
*
|
|
620
|
+
* @returns The wallet provider or undefined if not configured
|
|
621
|
+
*/
|
|
622
|
+
getWalletProvider(): WalletProvider | undefined;
|
|
512
623
|
/**
|
|
513
624
|
* Checks if a wallet is configured
|
|
514
625
|
*
|
|
@@ -657,7 +768,7 @@ export declare class LaunchpadSDK {
|
|
|
657
768
|
*
|
|
658
769
|
* @example Basic pool fetching
|
|
659
770
|
* ```typescript
|
|
660
|
-
* const result = await sdk.fetchPools({ type: 'recent',
|
|
771
|
+
* const result = await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
661
772
|
* console.log(`Fetched ${result.items.length} pools`);
|
|
662
773
|
* console.log(`Total pools: ${result.total}`);
|
|
663
774
|
* ```
|
|
@@ -669,7 +780,7 @@ export declare class LaunchpadSDK {
|
|
|
669
780
|
* console.log('Cached tokens:', cacheInfo.totalTokens); // 0
|
|
670
781
|
*
|
|
671
782
|
* // Fetch pools - automatically warms cache
|
|
672
|
-
* await sdk.fetchPools({
|
|
783
|
+
* await sdk.fetchPools({ pageSize: 20 });
|
|
673
784
|
*
|
|
674
785
|
* // After fetching - cache is warmed
|
|
675
786
|
* cacheInfo = sdk.getCacheInfo();
|
|
@@ -688,7 +799,7 @@ export declare class LaunchpadSDK {
|
|
|
688
799
|
* @example Performance optimization with cache
|
|
689
800
|
* ```typescript
|
|
690
801
|
* // Warm cache once
|
|
691
|
-
* await sdk.fetchPools({ type: 'popular',
|
|
802
|
+
* await sdk.fetchPools({ type: 'popular', pageSize: 50 });
|
|
692
803
|
*
|
|
693
804
|
* // All subsequent calculations for these tokens are instant
|
|
694
805
|
* const tokens = ['token1', 'token2', 'token3'];
|
|
@@ -710,7 +821,7 @@ export declare class LaunchpadSDK {
|
|
|
710
821
|
* Fetch all available pools with automatic pagination
|
|
711
822
|
*
|
|
712
823
|
* Convenience method that fetches all available pools by automatically
|
|
713
|
-
* handling pagination
|
|
824
|
+
* handling pagination through cursor-based iteration.
|
|
714
825
|
*
|
|
715
826
|
* **Cache Warming:** Maintains the same opportunistic cache warming as fetchPools(),
|
|
716
827
|
* caching immutable token metadata for all returned pools to enable instant local calculations.
|
|
@@ -781,8 +892,7 @@ export declare class LaunchpadSDK {
|
|
|
781
892
|
* const result = await sdk.fetchDexPools({
|
|
782
893
|
* sortBy: 'volume1d',
|
|
783
894
|
* sortOrder: 'desc',
|
|
784
|
-
*
|
|
785
|
-
* page: 1
|
|
895
|
+
* pageSize: 10
|
|
786
896
|
* });
|
|
787
897
|
*
|
|
788
898
|
* console.log(`Found ${result.total} total pools`);
|
|
@@ -797,7 +907,7 @@ export declare class LaunchpadSDK {
|
|
|
797
907
|
* ```typescript
|
|
798
908
|
* const galaPools = await sdk.fetchDexPools({
|
|
799
909
|
* search: 'GALA',
|
|
800
|
-
*
|
|
910
|
+
* pageSize: 20
|
|
801
911
|
* });
|
|
802
912
|
*
|
|
803
913
|
* console.log(`Found ${galaPools.items.length} GALA trading pairs`);
|
|
@@ -808,7 +918,7 @@ export declare class LaunchpadSDK {
|
|
|
808
918
|
* const topTvl = await sdk.fetchDexPools({
|
|
809
919
|
* sortBy: 'tvl',
|
|
810
920
|
* sortOrder: 'desc',
|
|
811
|
-
*
|
|
921
|
+
* pageSize: 5
|
|
812
922
|
* });
|
|
813
923
|
* ```
|
|
814
924
|
*/
|
|
@@ -899,7 +1009,7 @@ export declare class LaunchpadSDK {
|
|
|
899
1009
|
* amount: '500'
|
|
900
1010
|
* });
|
|
901
1011
|
*
|
|
902
|
-
* // Step 3: Compare with real-time quote from
|
|
1012
|
+
* // Step 3: Compare with a real-time quote from the DEX backend
|
|
903
1013
|
* const liveQuote = await sdk.calculateDexPoolQuoteExactAmountExternal({
|
|
904
1014
|
* compositePoolData: composite,
|
|
905
1015
|
* fromToken: 'GALA|Unit|none|none',
|
|
@@ -948,13 +1058,13 @@ export declare class LaunchpadSDK {
|
|
|
948
1058
|
*/
|
|
949
1059
|
calculateDexPoolQuoteExactAmountLocal(options: CalculateDexPoolQuoteOptions): Promise<DexPoolQuoteResult>;
|
|
950
1060
|
/**
|
|
951
|
-
* Calculate DEX pool quote using
|
|
1061
|
+
* Calculate DEX pool quote using the external DEX backend endpoint
|
|
952
1062
|
*
|
|
953
|
-
* Real-time quotes
|
|
954
|
-
*
|
|
1063
|
+
* Real-time quotes using current backend pool state. Slower than local calculation
|
|
1064
|
+
* and useful for final price verification.
|
|
955
1065
|
*
|
|
956
1066
|
* @param options Quote calculation options (compositePoolData provides token metadata)
|
|
957
|
-
* @returns DexPoolQuoteResult with current
|
|
1067
|
+
* @returns DexPoolQuoteResult with current pool state
|
|
958
1068
|
* @throws DexQuoteError on network or calculation errors
|
|
959
1069
|
* @since 3.32.0
|
|
960
1070
|
* @category DEX Quotes
|
|
@@ -975,7 +1085,7 @@ export declare class LaunchpadSDK {
|
|
|
975
1085
|
* amount: '1000'
|
|
976
1086
|
* });
|
|
977
1087
|
*
|
|
978
|
-
* // Live verification from
|
|
1088
|
+
* // Live verification from the DEX backend
|
|
979
1089
|
* const liveQuote = await sdk.calculateDexPoolQuoteExactAmountExternal({
|
|
980
1090
|
* compositePoolData: composite,
|
|
981
1091
|
* fromToken: 'GALA|Unit|none|none',
|
|
@@ -994,7 +1104,7 @@ export declare class LaunchpadSDK {
|
|
|
994
1104
|
* Defaults to local (instant) calculation.
|
|
995
1105
|
*
|
|
996
1106
|
* @param options Quote calculation options
|
|
997
|
-
* @param mode 'local' (instant, client-side) or 'external' (real-time,
|
|
1107
|
+
* @param mode 'local' (instant, client-side) or 'external' (real-time, backend) - defaults to 'local'
|
|
998
1108
|
* @returns DexPoolQuoteResult with amounts and prices
|
|
999
1109
|
* @since 3.32.0
|
|
1000
1110
|
* @category DEX Quotes
|
|
@@ -1018,7 +1128,7 @@ export declare class LaunchpadSDK {
|
|
|
1018
1128
|
* toToken: 'Token|Unit|BENE|client:123',
|
|
1019
1129
|
* amount: '1000'
|
|
1020
1130
|
* }, 'external');
|
|
1021
|
-
* // Returns real-time quote from
|
|
1131
|
+
* // Returns a real-time quote from the DEX backend
|
|
1022
1132
|
* ```
|
|
1023
1133
|
*/
|
|
1024
1134
|
calculateDexPoolQuoteExactAmount(options: CalculateDexPoolQuoteOptions, mode?: 'local' | 'external'): Promise<DexPoolQuoteResult>;
|
|
@@ -1054,7 +1164,126 @@ export declare class LaunchpadSDK {
|
|
|
1054
1164
|
* console.log(`Found ${whales.length} whales with >5% ownership`);
|
|
1055
1165
|
* ```
|
|
1056
1166
|
*/
|
|
1057
|
-
fetchTokenDistribution(tokenName: string): Promise<
|
|
1167
|
+
fetchTokenDistribution(tokenName: string): Promise<TokenDistributionResult>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Get the top N token holders by balance
|
|
1170
|
+
*
|
|
1171
|
+
* Convenience wrapper around `fetchTokenDistribution()` that returns the top
|
|
1172
|
+
* holders sorted by balance descending, each enriched with their rank.
|
|
1173
|
+
*
|
|
1174
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1175
|
+
* @param limit - Number of top holders to return (default: 10, max: 100)
|
|
1176
|
+
* @returns Array of top holders with address, balance, percentage, and rank
|
|
1177
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1178
|
+
* @since 9.2.0
|
|
1179
|
+
* @category Token Information
|
|
1180
|
+
*
|
|
1181
|
+
* @example
|
|
1182
|
+
* ```typescript
|
|
1183
|
+
* const topHolders = await sdk.getTopHolders('anime', 5);
|
|
1184
|
+
* topHolders.forEach(h => console.log(`#${h.rank} ${h.address}: ${h.balance} (${h.percentage}%)`));
|
|
1185
|
+
* ```
|
|
1186
|
+
*/
|
|
1187
|
+
getTopHolders(tokenName: string, limit?: number): Promise<Array<TokenHolder & {
|
|
1188
|
+
rank: number;
|
|
1189
|
+
}>>;
|
|
1190
|
+
/**
|
|
1191
|
+
* Get the total holder count and combined balance for a token
|
|
1192
|
+
*
|
|
1193
|
+
* Convenience wrapper around `fetchTokenDistribution()`.
|
|
1194
|
+
*
|
|
1195
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1196
|
+
* @returns Object with count (number of holders) and totalBalance (total supply across all holders)
|
|
1197
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1198
|
+
* @since 9.2.0
|
|
1199
|
+
* @category Token Information
|
|
1200
|
+
*
|
|
1201
|
+
* @example
|
|
1202
|
+
* ```typescript
|
|
1203
|
+
* const { count, totalBalance } = await sdk.getHolderCount('anime');
|
|
1204
|
+
* console.log(`${count} holders, total supply: ${totalBalance}`);
|
|
1205
|
+
* ```
|
|
1206
|
+
*/
|
|
1207
|
+
getHolderCount(tokenName: string): Promise<{
|
|
1208
|
+
count: number;
|
|
1209
|
+
totalBalance: string;
|
|
1210
|
+
}>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Get a user's holder rank and balance for a token
|
|
1213
|
+
*
|
|
1214
|
+
* Returns the user's position in the holder distribution (rank 1 = largest holder),
|
|
1215
|
+
* their balance, and the total holder count. Returns null if the user holds no tokens.
|
|
1216
|
+
*
|
|
1217
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1218
|
+
* @param userAddress - User's wallet address (eth|... format)
|
|
1219
|
+
* @returns Rank info or null if user is not a holder
|
|
1220
|
+
* @throws {ValidationError} If tokenName or userAddress is invalid
|
|
1221
|
+
* @since 9.2.0
|
|
1222
|
+
* @category Token Information
|
|
1223
|
+
*
|
|
1224
|
+
* @example
|
|
1225
|
+
* ```typescript
|
|
1226
|
+
* const rank = await sdk.getHolderRank('anime', 'eth|0x1234...');
|
|
1227
|
+
* if (rank) {
|
|
1228
|
+
* console.log(`Rank #${rank.rank} of ${rank.holderCount} holders, balance: ${rank.balance}`);
|
|
1229
|
+
* }
|
|
1230
|
+
* ```
|
|
1231
|
+
*/
|
|
1232
|
+
getHolderRank(tokenName: string, userAddress: string): Promise<{
|
|
1233
|
+
rank: number;
|
|
1234
|
+
balance: string;
|
|
1235
|
+
holderCount: number;
|
|
1236
|
+
} | null>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Get holders within a specific balance range
|
|
1239
|
+
*
|
|
1240
|
+
* Convenience wrapper around `fetchTokenDistribution()` that filters holders
|
|
1241
|
+
* by balance and returns them enriched with their rank.
|
|
1242
|
+
*
|
|
1243
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1244
|
+
* @param options - Filter options
|
|
1245
|
+
* @param options.minBalance - Minimum balance (no floor if omitted)
|
|
1246
|
+
* @param options.maxBalance - Maximum balance (no ceiling if omitted)
|
|
1247
|
+
* @param options.limit - Maximum results to return (default: 100, max: 1000)
|
|
1248
|
+
* @returns Filtered holders with rank
|
|
1249
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1250
|
+
* @since 9.2.0
|
|
1251
|
+
* @category Token Information
|
|
1252
|
+
*
|
|
1253
|
+
* @example
|
|
1254
|
+
* ```typescript
|
|
1255
|
+
* const whales = await sdk.getHoldersByBalance('anime', { minBalance: 10000 });
|
|
1256
|
+
* console.log(`${whales.length} whales hold ≥10,000 tokens`);
|
|
1257
|
+
* ```
|
|
1258
|
+
*/
|
|
1259
|
+
getHoldersByBalance(tokenName: string, options?: {
|
|
1260
|
+
minBalance?: number;
|
|
1261
|
+
maxBalance?: number;
|
|
1262
|
+
limit?: number;
|
|
1263
|
+
}): Promise<Array<TokenHolder & {
|
|
1264
|
+
rank: number;
|
|
1265
|
+
}>>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Get recent trade history for a specific holder
|
|
1268
|
+
*
|
|
1269
|
+
* Returns trades that affected a user's holdings for a token, delegating to
|
|
1270
|
+
* `getTrades()` with userAddress and tokenName filters.
|
|
1271
|
+
*
|
|
1272
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1273
|
+
* @param userAddress - Holder's wallet address
|
|
1274
|
+
* @param limit - Number of recent trades to return (default: 20, max: 100)
|
|
1275
|
+
* @returns Paginated trade history result
|
|
1276
|
+
* @throws {ValidationError} If tokenName or userAddress is invalid
|
|
1277
|
+
* @since 9.2.0
|
|
1278
|
+
* @category Trades
|
|
1279
|
+
*
|
|
1280
|
+
* @example
|
|
1281
|
+
* ```typescript
|
|
1282
|
+
* const history = await sdk.getHolderHistory('anime', 'eth|0x1234...', 10);
|
|
1283
|
+
* history.trades.forEach(t => console.log(`${t.txnType}: ${t.inputAmount} → ${t.outputAmount}`));
|
|
1284
|
+
* ```
|
|
1285
|
+
*/
|
|
1286
|
+
getHolderHistory(tokenName: string, userAddress: string, limit?: number): Promise<TradesQueryResult>;
|
|
1058
1287
|
/**
|
|
1059
1288
|
* Fetch a user's holder context for a specific token
|
|
1060
1289
|
*
|
|
@@ -1081,7 +1310,7 @@ export declare class LaunchpadSDK {
|
|
|
1081
1310
|
* }
|
|
1082
1311
|
* ```
|
|
1083
1312
|
*/
|
|
1084
|
-
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<
|
|
1313
|
+
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<UserHolderContext>;
|
|
1085
1314
|
/**
|
|
1086
1315
|
* Fetch token achievement badges and metadata
|
|
1087
1316
|
*
|
|
@@ -1105,7 +1334,7 @@ export declare class LaunchpadSDK {
|
|
|
1105
1334
|
* });
|
|
1106
1335
|
* ```
|
|
1107
1336
|
*/
|
|
1108
|
-
fetchTokenBadges(tokenName: string): Promise<
|
|
1337
|
+
fetchTokenBadges(tokenName: string): Promise<TokenBadgesResult>;
|
|
1109
1338
|
/**
|
|
1110
1339
|
* Fetch USD spot price for any token with smart routing
|
|
1111
1340
|
*
|
|
@@ -1566,7 +1795,7 @@ export declare class LaunchpadSDK {
|
|
|
1566
1795
|
* console.log(`January volume: ${volumeData.reduce((sum, p) => sum + p.volume, 0)}`);
|
|
1567
1796
|
* ```
|
|
1568
1797
|
*/
|
|
1569
|
-
fetchVolumeData(options: FetchVolumeDataOptions): Promise<
|
|
1798
|
+
fetchVolumeData(options: FetchVolumeDataOptions): Promise<GraphDataResult>;
|
|
1570
1799
|
/**
|
|
1571
1800
|
* Fetch trade history with optional filters and pagination
|
|
1572
1801
|
*
|
|
@@ -1577,8 +1806,7 @@ export declare class LaunchpadSDK {
|
|
|
1577
1806
|
* @category Trading Data
|
|
1578
1807
|
* @param options Trade fetching options with required tokenName
|
|
1579
1808
|
* @param options.tokenName - Token name to fetch trades for (required)
|
|
1580
|
-
* @param options.
|
|
1581
|
-
* @param options.limit - Items per page, defaults to 20
|
|
1809
|
+
* @param options.pageSize - Items per page, defaults to 20
|
|
1582
1810
|
* @param options.type - Filter by trade type: 'buy' or 'sell' (optional)
|
|
1583
1811
|
* @param options.address - Filter by wallet address (optional)
|
|
1584
1812
|
* @param options.startDate - Filter trades after this date (optional)
|
|
@@ -1592,8 +1820,7 @@ export declare class LaunchpadSDK {
|
|
|
1592
1820
|
* ```typescript
|
|
1593
1821
|
* const trades = await sdk.fetchTrades({
|
|
1594
1822
|
* tokenName: 'anime',
|
|
1595
|
-
*
|
|
1596
|
-
* limit: 50
|
|
1823
|
+
* pageSize: 50
|
|
1597
1824
|
* });
|
|
1598
1825
|
* console.log(`Found ${trades.total} trades`);
|
|
1599
1826
|
* trades.trades.forEach(trade => {
|
|
@@ -1606,7 +1833,7 @@ export declare class LaunchpadSDK {
|
|
|
1606
1833
|
* const buys = await sdk.fetchTrades({
|
|
1607
1834
|
* tokenName: 'anime',
|
|
1608
1835
|
* type: 'buy',
|
|
1609
|
-
*
|
|
1836
|
+
* pageSize: 20
|
|
1610
1837
|
* });
|
|
1611
1838
|
* console.log(`Recent buy trades: ${buys.trades.length}`);
|
|
1612
1839
|
* ```
|
|
@@ -1622,7 +1849,7 @@ export declare class LaunchpadSDK {
|
|
|
1622
1849
|
* console.log(`My January trades: ${myTrades.total}`);
|
|
1623
1850
|
* ```
|
|
1624
1851
|
*/
|
|
1625
|
-
fetchTrades(options: FetchTradesOptions): Promise<
|
|
1852
|
+
fetchTrades(options: FetchTradesOptions): Promise<TradesResult>;
|
|
1626
1853
|
/**
|
|
1627
1854
|
* Fetch GALA token balance for a wallet address
|
|
1628
1855
|
*
|
|
@@ -1777,6 +2004,73 @@ export declare class LaunchpadSDK {
|
|
|
1777
2004
|
* @since 6.x.0
|
|
1778
2005
|
*/
|
|
1779
2006
|
private getTokenBanService;
|
|
2007
|
+
/**
|
|
2008
|
+
* Get or create the AIModerationService instance.
|
|
2009
|
+
*
|
|
2010
|
+
* Lazily initializes the AIModerationService on first use.
|
|
2011
|
+
* The service handles REST API calls for AI-powered content moderation
|
|
2012
|
+
* (overseer-only).
|
|
2013
|
+
*
|
|
2014
|
+
* @returns Configured AIModerationService instance
|
|
2015
|
+
*
|
|
2016
|
+
* @internal This is a private helper method for AI moderation operations
|
|
2017
|
+
* @since 6.15.0
|
|
2018
|
+
*/
|
|
2019
|
+
private getAIModerationService;
|
|
2020
|
+
/**
|
|
2021
|
+
* Get or create the WeeklyChallengeService instance.
|
|
2022
|
+
*
|
|
2023
|
+
* Lazily initializes the WeeklyChallengeService on first use.
|
|
2024
|
+
* The service handles REST API calls for weekly challenge leaderboard data.
|
|
2025
|
+
*
|
|
2026
|
+
* @returns Configured WeeklyChallengeService instance
|
|
2027
|
+
*
|
|
2028
|
+
* @internal This is a private helper method for weekly challenge operations
|
|
2029
|
+
* @since 9.0.0
|
|
2030
|
+
*/
|
|
2031
|
+
private getWeeklyChallengeService;
|
|
2032
|
+
/**
|
|
2033
|
+
* Get or create the OEmbedService instance.
|
|
2034
|
+
*
|
|
2035
|
+
* Lazily initializes the OEmbedService on first use.
|
|
2036
|
+
* The service handles REST API calls for oEmbed metadata.
|
|
2037
|
+
*
|
|
2038
|
+
* @returns Configured OEmbedService instance
|
|
2039
|
+
*
|
|
2040
|
+
* @internal This is a private helper method for oEmbed operations
|
|
2041
|
+
* @since 9.0.0
|
|
2042
|
+
*/
|
|
2043
|
+
private getOEmbedService;
|
|
2044
|
+
/**
|
|
2045
|
+
* Get or create the PlatformStatsService instance.
|
|
2046
|
+
*
|
|
2047
|
+
* Lazily initializes the PlatformStatsService on first use.
|
|
2048
|
+
* The service handles REST API calls for platform statistics.
|
|
2049
|
+
*
|
|
2050
|
+
* @returns Configured PlatformStatsService instance
|
|
2051
|
+
*
|
|
2052
|
+
* @internal This is a private helper method for platform stats operations
|
|
2053
|
+
* @since 9.0.0
|
|
2054
|
+
*/
|
|
2055
|
+
private getPlatformStatsService;
|
|
2056
|
+
/**
|
|
2057
|
+
* Get or create the NotificationService instance.
|
|
2058
|
+
*
|
|
2059
|
+
* Lazily initializes the NotificationService on first use.
|
|
2060
|
+
* The service handles push notification device registration and preference management.
|
|
2061
|
+
*
|
|
2062
|
+
* @returns Configured NotificationService instance
|
|
2063
|
+
*/
|
|
2064
|
+
private getNotificationService;
|
|
2065
|
+
/**
|
|
2066
|
+
* Get or create the ClientConfigService instance.
|
|
2067
|
+
*
|
|
2068
|
+
* Lazily initializes the ClientConfigService on first use.
|
|
2069
|
+
* The service handles client-side feature flag queries.
|
|
2070
|
+
*
|
|
2071
|
+
* @returns Configured ClientConfigService instance
|
|
2072
|
+
*/
|
|
2073
|
+
private getClientConfigService;
|
|
1780
2074
|
/**
|
|
1781
2075
|
* Get or create the ApiKeyService instance.
|
|
1782
2076
|
*
|
|
@@ -1829,14 +2123,17 @@ export declare class LaunchpadSDK {
|
|
|
1829
2123
|
*/
|
|
1830
2124
|
private getOverseerService;
|
|
1831
2125
|
/**
|
|
1832
|
-
* Get or create the
|
|
2126
|
+
* Get or create the WebSocketAdminService instance.
|
|
1833
2127
|
*
|
|
1834
|
-
* Lazily initializes the
|
|
1835
|
-
*
|
|
2128
|
+
* Lazily initializes the WebSocketAdminService on first use.
|
|
2129
|
+
* The service handles WebSocket event emission and connected client management.
|
|
1836
2130
|
*
|
|
1837
|
-
* @
|
|
2131
|
+
* @returns Configured WebSocketAdminService instance
|
|
2132
|
+
*
|
|
2133
|
+
* @internal This is a private helper method for WebSocket admin operations
|
|
2134
|
+
* @since 5.15.0
|
|
1838
2135
|
*/
|
|
1839
|
-
private
|
|
2136
|
+
private getWebSocketAdminService;
|
|
1840
2137
|
/**
|
|
1841
2138
|
* Get or create the ContentReactionService instance.
|
|
1842
2139
|
*
|
|
@@ -1848,27 +2145,44 @@ export declare class LaunchpadSDK {
|
|
|
1848
2145
|
*/
|
|
1849
2146
|
private getContentReactionService;
|
|
1850
2147
|
/**
|
|
1851
|
-
* Get or create the
|
|
2148
|
+
* Get or create the MessagesService instance.
|
|
1852
2149
|
*
|
|
1853
|
-
* Lazily initializes the
|
|
1854
|
-
* Uses v1
|
|
2150
|
+
* Lazily initializes the MessagesService on first use.
|
|
2151
|
+
* Uses unified v1/messages endpoints for all message types (CHAT and COMMENT).
|
|
1855
2152
|
*
|
|
1856
|
-
* @returns Configured
|
|
2153
|
+
* @returns Configured MessagesService instance
|
|
1857
2154
|
* @internal
|
|
1858
|
-
* @since
|
|
2155
|
+
* @since 7.0.0
|
|
1859
2156
|
*/
|
|
1860
|
-
private
|
|
2157
|
+
private getMessagesService;
|
|
1861
2158
|
/**
|
|
1862
|
-
* Get or create the
|
|
2159
|
+
* Get or create the RestrictedNamesService instance.
|
|
1863
2160
|
*
|
|
1864
|
-
* Lazily initializes the
|
|
1865
|
-
*
|
|
2161
|
+
* Lazily initializes the RestrictedNamesService on first use.
|
|
2162
|
+
* Provides methods for managing restricted token names (overseer only).
|
|
1866
2163
|
*
|
|
1867
|
-
* @returns Configured
|
|
2164
|
+
* @returns Configured RestrictedNamesService instance
|
|
1868
2165
|
* @internal
|
|
1869
|
-
* @since
|
|
2166
|
+
* @since 7.0.0
|
|
2167
|
+
*/
|
|
2168
|
+
private getRestrictedNamesService;
|
|
2169
|
+
/**
|
|
2170
|
+
* Get or create the PlatformConfigService instance.
|
|
2171
|
+
*
|
|
2172
|
+
* Lazily initializes the PlatformConfigService on first use.
|
|
2173
|
+
* The service handles REST API calls for platform configuration operations
|
|
2174
|
+
* including streaming, chat, comments, and webhooks settings.
|
|
2175
|
+
*
|
|
2176
|
+
* @returns Configured PlatformConfigService instance
|
|
2177
|
+
*
|
|
2178
|
+
* @internal This is a private helper method for platform config operations
|
|
2179
|
+
* @since 7.3.0
|
|
2180
|
+
*/
|
|
2181
|
+
private getPlatformConfigService;
|
|
2182
|
+
/**
|
|
2183
|
+
* Lazy-initialize and return the events batcher service
|
|
1870
2184
|
*/
|
|
1871
|
-
private
|
|
2185
|
+
private getEventsBatcherService;
|
|
1872
2186
|
/**
|
|
1873
2187
|
* Get or create the StreamWebSocketService instance.
|
|
1874
2188
|
*
|
|
@@ -1883,6 +2197,14 @@ export declare class LaunchpadSDK {
|
|
|
1883
2197
|
* @since 5.1.0
|
|
1884
2198
|
*/
|
|
1885
2199
|
private getStreamWebSocketService;
|
|
2200
|
+
/**
|
|
2201
|
+
* Get or create the public GDEX JSON-RPC WebSocket client.
|
|
2202
|
+
*
|
|
2203
|
+
* @returns Configured GdexStreamService instance
|
|
2204
|
+
* @category Services
|
|
2205
|
+
* @since 5.0.4
|
|
2206
|
+
*/
|
|
2207
|
+
getGdexStreamService(): GdexStreamService;
|
|
1886
2208
|
/**
|
|
1887
2209
|
* Get the streaming event service
|
|
1888
2210
|
*
|
|
@@ -2150,7 +2472,7 @@ export declare class LaunchpadSDK {
|
|
|
2150
2472
|
* Queries the DEX API to discover which tokens can be bridged to the specified network.
|
|
2151
2473
|
* Results are cached permanently for the SDK lifetime (bridgeable tokens never change).
|
|
2152
2474
|
*
|
|
2153
|
-
* @param options Fetch options including network
|
|
2475
|
+
* @param options Fetch options including network and pagination
|
|
2154
2476
|
* @returns Promise resolving to paginated bridgeable tokens
|
|
2155
2477
|
* @throws NetworkError if DEX API is unavailable
|
|
2156
2478
|
*
|
|
@@ -2161,8 +2483,7 @@ export declare class LaunchpadSDK {
|
|
|
2161
2483
|
* ```typescript
|
|
2162
2484
|
* const result = await sdk.fetchBridgeableTokensByNetwork({
|
|
2163
2485
|
* network: 'ETHEREUM',
|
|
2164
|
-
*
|
|
2165
|
-
* limit: 100
|
|
2486
|
+
* pageSize: 100
|
|
2166
2487
|
* });
|
|
2167
2488
|
* console.log(`Found ${result.tokenCount} Ethereum-bridgeable tokens`);
|
|
2168
2489
|
* ```
|
|
@@ -2331,7 +2652,7 @@ export declare class LaunchpadSDK {
|
|
|
2331
2652
|
*
|
|
2332
2653
|
* For balance data, use {@link fetchWrappableTokenBalances} instead.
|
|
2333
2654
|
*
|
|
2334
|
-
* @param options Fetch options including
|
|
2655
|
+
* @param options Fetch options including pagination
|
|
2335
2656
|
* @returns Promise resolving to fetch result with tokens array
|
|
2336
2657
|
* @throws NetworkError if DEX API is unavailable
|
|
2337
2658
|
*
|
|
@@ -2341,8 +2662,7 @@ export declare class LaunchpadSDK {
|
|
|
2341
2662
|
* @example Paginated fetch
|
|
2342
2663
|
* ```typescript
|
|
2343
2664
|
* const result = await sdk.fetchWrappableTokens({
|
|
2344
|
-
*
|
|
2345
|
-
* limit: 100
|
|
2665
|
+
* pageSize: 100
|
|
2346
2666
|
* });
|
|
2347
2667
|
* console.log(`Found ${result.tokenCount} wrappable tokens`);
|
|
2348
2668
|
* ```
|
|
@@ -2576,21 +2896,21 @@ export declare class LaunchpadSDK {
|
|
|
2576
2896
|
* of a cross-channel wrap or unwrap operation.
|
|
2577
2897
|
*
|
|
2578
2898
|
* @param transactionId - Transaction ID from wrap/unwrap result
|
|
2579
|
-
* @returns
|
|
2899
|
+
* @returns Transaction status
|
|
2580
2900
|
*
|
|
2581
2901
|
* @since 4.0.18
|
|
2582
2902
|
* @category Wrap/Unwrap
|
|
2583
2903
|
*
|
|
2584
2904
|
* @example Check wrap status
|
|
2585
2905
|
* ```typescript
|
|
2586
|
-
* const status =
|
|
2906
|
+
* const status = sdk.getWrapStatus(result.transactionId);
|
|
2587
2907
|
* console.log(`Status: ${status.status}`);
|
|
2588
2908
|
* if (status.status === 'completed') {
|
|
2589
2909
|
* console.log(`Completed at: ${new Date(status.completedAt)}`);
|
|
2590
2910
|
* }
|
|
2591
2911
|
* ```
|
|
2592
2912
|
*/
|
|
2593
|
-
getWrapStatus(transactionId: string):
|
|
2913
|
+
getWrapStatus(transactionId: string): WrapUnwrapStatusResult;
|
|
2594
2914
|
/**
|
|
2595
2915
|
* Login with wallet signature to get JWT token.
|
|
2596
2916
|
*
|
|
@@ -2654,8 +2974,12 @@ export declare class LaunchpadSDK {
|
|
|
2654
2974
|
/**
|
|
2655
2975
|
* Logout and clear the JWT token.
|
|
2656
2976
|
*
|
|
2657
|
-
*
|
|
2658
|
-
* endpoints will fail until login() is called again.
|
|
2977
|
+
* Clears the client-side JWT and optionally revokes all active sessions on the server.
|
|
2978
|
+
* Future calls to JWT-protected endpoints will fail until login() is called again.
|
|
2979
|
+
*
|
|
2980
|
+
* @param options - Optional logout configuration
|
|
2981
|
+
* @param options.allDevices - If true, revokes all active sessions server-side (requires valid JWT)
|
|
2982
|
+
* @returns Promise that resolves when logout is complete
|
|
2659
2983
|
*
|
|
2660
2984
|
* @since 5.2.0
|
|
2661
2985
|
* @category Authentication
|
|
@@ -2663,11 +2987,19 @@ export declare class LaunchpadSDK {
|
|
|
2663
2987
|
* @example Clean logout
|
|
2664
2988
|
* ```typescript
|
|
2665
2989
|
* // ... do work ...
|
|
2666
|
-
* sdk.logout();
|
|
2990
|
+
* await sdk.logout();
|
|
2667
2991
|
* console.log('Logged out');
|
|
2668
2992
|
* ```
|
|
2993
|
+
*
|
|
2994
|
+
* @example Logout from all devices
|
|
2995
|
+
* ```typescript
|
|
2996
|
+
* await sdk.logout({ allDevices: true });
|
|
2997
|
+
* console.log('Logged out from all devices');
|
|
2998
|
+
* ```
|
|
2669
2999
|
*/
|
|
2670
|
-
logout(
|
|
3000
|
+
logout(options?: {
|
|
3001
|
+
allDevices?: boolean;
|
|
3002
|
+
}): Promise<void>;
|
|
2671
3003
|
/**
|
|
2672
3004
|
* Check if user is authenticated with valid JWT.
|
|
2673
3005
|
*
|
|
@@ -2829,28 +3161,6 @@ export declare class LaunchpadSDK {
|
|
|
2829
3161
|
* ```
|
|
2830
3162
|
*/
|
|
2831
3163
|
stopStream(tokenName: string): Promise<void>;
|
|
2832
|
-
/**
|
|
2833
|
-
* Get stream information for a token.
|
|
2834
|
-
*
|
|
2835
|
-
* Returns current stream status, playback information, and metadata.
|
|
2836
|
-
* Does not require authentication for public stream information.
|
|
2837
|
-
*
|
|
2838
|
-
* @param tokenName - Token name (lowercase)
|
|
2839
|
-
* @returns Promise resolving to stream information
|
|
2840
|
-
*
|
|
2841
|
-
* @since 5.1.0
|
|
2842
|
-
* @category Streaming
|
|
2843
|
-
*
|
|
2844
|
-
* @example Check stream status
|
|
2845
|
-
* ```typescript
|
|
2846
|
-
* const info = await sdk.getStreamInfo('mytoken');
|
|
2847
|
-
* if (info.isLive) {
|
|
2848
|
-
* console.log(`Stream is live! Viewers: ${info.viewerCount}`);
|
|
2849
|
-
* console.log(`Watch at: https://player.example.com/${info.playbackId}`);
|
|
2850
|
-
* }
|
|
2851
|
-
* ```
|
|
2852
|
-
*/
|
|
2853
|
-
getStreamInfo(tokenName: string): Promise<StreamInfo>;
|
|
2854
3164
|
/**
|
|
2855
3165
|
* Disable streaming for a specific token (Admin only).
|
|
2856
3166
|
*
|
|
@@ -2907,6 +3217,26 @@ export declare class LaunchpadSDK {
|
|
|
2907
3217
|
* ```
|
|
2908
3218
|
*/
|
|
2909
3219
|
resetStreamKey(tokenName: string): Promise<ResetStreamKeyResult>;
|
|
3220
|
+
/**
|
|
3221
|
+
* Get stream credentials (key and URL).
|
|
3222
|
+
*
|
|
3223
|
+
* Returns the current stream key and RTMP URL for streaming.
|
|
3224
|
+
*
|
|
3225
|
+
* @param tokenName - Token name (lowercase)
|
|
3226
|
+
* @returns Promise resolving to stream credentials
|
|
3227
|
+
*
|
|
3228
|
+
* @since 6.13.0
|
|
3229
|
+
* @category Streaming
|
|
3230
|
+
*
|
|
3231
|
+
* @example Get stream credentials
|
|
3232
|
+
* ```typescript
|
|
3233
|
+
* const creds = await sdk.getStreamCredentials('mytoken');
|
|
3234
|
+
* console.log(`Stream Key: ${creds.streamKey}`);
|
|
3235
|
+
* console.log(`RTMP URL: ${creds.rtmpUrl}`);
|
|
3236
|
+
* console.log(`Playback ID: ${creds.playbackId}`);
|
|
3237
|
+
* ```
|
|
3238
|
+
*/
|
|
3239
|
+
getStreamCredentials(tokenName: string): Promise<StreamCredentialsResult>;
|
|
2910
3240
|
/**
|
|
2911
3241
|
* Get recordings for a stream.
|
|
2912
3242
|
*
|
|
@@ -3050,7 +3380,6 @@ export declare class LaunchpadSDK {
|
|
|
3050
3380
|
*
|
|
3051
3381
|
* @param tokenName Token name (lowercase)
|
|
3052
3382
|
* @param nextLiveStreamAt Scheduled stream time (ISO 8601 string, Date, or null to clear)
|
|
3053
|
-
* @returns Updated stream settings
|
|
3054
3383
|
* @throws {ValidationError} If token name or date is invalid
|
|
3055
3384
|
*
|
|
3056
3385
|
* @since 6.x.0
|
|
@@ -3065,7 +3394,7 @@ export declare class LaunchpadSDK {
|
|
|
3065
3394
|
* await sdk.setNextLiveStreamCountdown('mytoken', null);
|
|
3066
3395
|
* ```
|
|
3067
3396
|
*/
|
|
3068
|
-
setNextLiveStreamCountdown(tokenName: string, nextLiveStreamAt: string | Date | null): Promise<
|
|
3397
|
+
setNextLiveStreamCountdown(tokenName: string, nextLiveStreamAt: string | Date | null): Promise<void>;
|
|
3069
3398
|
/**
|
|
3070
3399
|
* Enable or disable streaming globally (Admin only).
|
|
3071
3400
|
*
|
|
@@ -3202,25 +3531,8 @@ export declare class LaunchpadSDK {
|
|
|
3202
3531
|
* @since 5.1.0
|
|
3203
3532
|
* @category Chat
|
|
3204
3533
|
*
|
|
3205
|
-
*
|
|
3206
|
-
*
|
|
3207
|
-
* Returns whether chat is enabled for the stream and the reason if disabled.
|
|
3208
|
-
*
|
|
3209
|
-
* @param tokenName - Token name (lowercase)
|
|
3210
|
-
* @returns Promise resolving to chat status
|
|
3211
|
-
*
|
|
3212
|
-
* @since 5.1.0
|
|
3213
|
-
* @category Chat
|
|
3214
|
-
*
|
|
3215
|
-
* @example Check chat availability
|
|
3216
|
-
* ```typescript
|
|
3217
|
-
* const status = await sdk.getChatStatus('mytoken');
|
|
3218
|
-
* if (!status.enabled) {
|
|
3219
|
-
* console.log(`Chat disabled: ${status.reason}`);
|
|
3220
|
-
* }
|
|
3221
|
-
* ```
|
|
3534
|
+
* Deprecated: Chat status is now included in token details (GET /v1/tokens/:tokenName)
|
|
3222
3535
|
*/
|
|
3223
|
-
getChatStatus(tokenName: string): Promise<ChatStatusResponse>;
|
|
3224
3536
|
/**
|
|
3225
3537
|
* Get engagement statistics for a token.
|
|
3226
3538
|
*
|
|
@@ -3334,7 +3646,7 @@ export declare class LaunchpadSDK {
|
|
|
3334
3646
|
* }
|
|
3335
3647
|
* ```
|
|
3336
3648
|
*/
|
|
3337
|
-
getPinnedChatMessage(tokenName: string): Promise<
|
|
3649
|
+
getPinnedChatMessage(tokenName: string): Promise<LegacyGetPinnedMessageResult>;
|
|
3338
3650
|
/**
|
|
3339
3651
|
* Pin a chat message for a token (v6.x.0+)
|
|
3340
3652
|
*
|
|
@@ -3356,7 +3668,7 @@ export declare class LaunchpadSDK {
|
|
|
3356
3668
|
* console.log('Message pinned:', result.pinnedMessage.id);
|
|
3357
3669
|
* ```
|
|
3358
3670
|
*/
|
|
3359
|
-
pinChatMessage(tokenName: string, messageId: string): Promise<
|
|
3671
|
+
pinChatMessage(tokenName: string, messageId: string): Promise<LegacyPinMessageResult>;
|
|
3360
3672
|
/**
|
|
3361
3673
|
* Unpin the currently pinned chat message for a token (v6.x.0+)
|
|
3362
3674
|
*
|
|
@@ -3376,7 +3688,36 @@ export declare class LaunchpadSDK {
|
|
|
3376
3688
|
* console.log('Message unpinned');
|
|
3377
3689
|
* ```
|
|
3378
3690
|
*/
|
|
3379
|
-
unpinChatMessage(tokenName: string): Promise<
|
|
3691
|
+
unpinChatMessage(tokenName: string): Promise<LegacyUnpinMessageResult>;
|
|
3692
|
+
/**
|
|
3693
|
+
* Set slow mode interval for a token's chat (v8.x.0+)
|
|
3694
|
+
*
|
|
3695
|
+
* Throttles users to one message per N seconds.
|
|
3696
|
+
* Enforcement is server-side (Redis-backed).
|
|
3697
|
+
* Set to 0 to disable slow mode.
|
|
3698
|
+
*
|
|
3699
|
+
* @param tokenName Token name (lowercase)
|
|
3700
|
+
* @param slowModeSeconds Interval in seconds (0 = disabled, max 600)
|
|
3701
|
+
* @returns Updated slow mode setting
|
|
3702
|
+
* @throws {ValidationError} If token name is invalid or seconds out of range
|
|
3703
|
+
*
|
|
3704
|
+
* @since 8.x.0
|
|
3705
|
+
* @category Chat
|
|
3706
|
+
*
|
|
3707
|
+
* @example Set 30-second slow mode
|
|
3708
|
+
* ```typescript
|
|
3709
|
+
* await sdk.setSlowMode('mytoken', 30);
|
|
3710
|
+
* ```
|
|
3711
|
+
*
|
|
3712
|
+
* @example Disable slow mode
|
|
3713
|
+
* ```typescript
|
|
3714
|
+
* await sdk.setSlowMode('mytoken', 0);
|
|
3715
|
+
* ```
|
|
3716
|
+
*/
|
|
3717
|
+
setSlowMode(tokenName: string, slowModeSeconds: number): Promise<{
|
|
3718
|
+
tokenName: string;
|
|
3719
|
+
slowModeSeconds: number;
|
|
3720
|
+
}>;
|
|
3380
3721
|
/**
|
|
3381
3722
|
* Create a ban for a user on a token.
|
|
3382
3723
|
*
|
|
@@ -3463,7 +3804,7 @@ export declare class LaunchpadSDK {
|
|
|
3463
3804
|
* @example List all bans
|
|
3464
3805
|
* ```typescript
|
|
3465
3806
|
* const result = await sdk.listBans({ tokenName: 'mytoken' });
|
|
3466
|
-
* console.log(`Total bans: ${result.
|
|
3807
|
+
* console.log(`Total bans: ${result.pageInfo.totalCount}`);
|
|
3467
3808
|
* result.bans.forEach(ban => {
|
|
3468
3809
|
* console.log(`${ban.userAddress}: ${ban.reason}`);
|
|
3469
3810
|
* });
|
|
@@ -3474,8 +3815,7 @@ export declare class LaunchpadSDK {
|
|
|
3474
3815
|
* const result = await sdk.listBans({
|
|
3475
3816
|
* tokenName: 'mytoken',
|
|
3476
3817
|
* search: 'alice', // Search by address or name
|
|
3477
|
-
*
|
|
3478
|
-
* limit: 20,
|
|
3818
|
+
* pageSize: 20,
|
|
3479
3819
|
* });
|
|
3480
3820
|
* ```
|
|
3481
3821
|
*/
|
|
@@ -3552,83 +3892,209 @@ export declare class LaunchpadSDK {
|
|
|
3552
3892
|
*/
|
|
3553
3893
|
getActiveUsers(options: GetActiveUsersOptions): Promise<ActiveUsersResult>;
|
|
3554
3894
|
/**
|
|
3555
|
-
* Create a
|
|
3556
|
-
*
|
|
3557
|
-
* **CRITICAL**: The `rawKey` in the response is ONLY shown once!
|
|
3558
|
-
* Store it securely immediately - it cannot be retrieved again.
|
|
3895
|
+
* Create a global user ban (bans user from all tokens on the platform).
|
|
3559
3896
|
*
|
|
3560
|
-
*
|
|
3561
|
-
* or
|
|
3897
|
+
* Global bans prevent a user from accessing any token, participating in streams,
|
|
3898
|
+
* chat, or comments across the entire platform.
|
|
3562
3899
|
*
|
|
3563
|
-
* Requires
|
|
3900
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3564
3901
|
*
|
|
3565
|
-
* @param options -
|
|
3566
|
-
* @returns
|
|
3902
|
+
* @param options - Global ban creation options
|
|
3903
|
+
* @returns Promise resolving to created ban data
|
|
3567
3904
|
* @throws ValidationError if options are invalid
|
|
3568
|
-
* @throws ConfigurationError if JWT
|
|
3905
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3569
3906
|
*
|
|
3570
|
-
* @
|
|
3907
|
+
* @since 6.x.0
|
|
3908
|
+
* @category Moderation
|
|
3909
|
+
*
|
|
3910
|
+
* @example Permanent global ban
|
|
3571
3911
|
* ```typescript
|
|
3572
|
-
*
|
|
3573
|
-
*
|
|
3574
|
-
*
|
|
3575
|
-
* description: 'Twitch chat bot integration',
|
|
3576
|
-
* tokenNames: ['mytoken', 'othertoken']
|
|
3912
|
+
* const result = await sdk.createGlobalBan({
|
|
3913
|
+
* userAddress: 'eth|0x123...',
|
|
3914
|
+
* reason: 'Serious platform violation'
|
|
3577
3915
|
* });
|
|
3916
|
+
* console.log('User globally banned:', result.ban.userAddress);
|
|
3917
|
+
* ```
|
|
3578
3918
|
*
|
|
3579
|
-
*
|
|
3580
|
-
*
|
|
3581
|
-
*
|
|
3582
|
-
*
|
|
3583
|
-
*
|
|
3584
|
-
*
|
|
3585
|
-
* role: 'OWNER',
|
|
3586
|
-
* description: 'Production automation',
|
|
3587
|
-
* delegateAllTokens: true,
|
|
3588
|
-
* expiresAt: '2025-12-31T23:59:59Z'
|
|
3919
|
+
* @example Temporary global ban (7 days)
|
|
3920
|
+
* ```typescript
|
|
3921
|
+
* const result = await sdk.createGlobalBan({
|
|
3922
|
+
* userAddress: 'eth|0x123...',
|
|
3923
|
+
* reason: 'Spam across multiple streams',
|
|
3924
|
+
* durationSeconds: 604800 // 7 days
|
|
3589
3925
|
* });
|
|
3926
|
+
* console.log('Ban expires:', result.ban.expiresAt);
|
|
3590
3927
|
* ```
|
|
3591
|
-
*
|
|
3592
|
-
* @since 5.6.0
|
|
3593
3928
|
*/
|
|
3594
|
-
|
|
3929
|
+
createGlobalBan(options: CreateGlobalBanOptions): Promise<CreateGlobalBanResult>;
|
|
3595
3930
|
/**
|
|
3596
|
-
*
|
|
3931
|
+
* Remove a global user ban.
|
|
3597
3932
|
*
|
|
3598
|
-
*
|
|
3599
|
-
* they are only shown once at creation time.
|
|
3933
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3600
3934
|
*
|
|
3601
|
-
*
|
|
3935
|
+
* @param options - Global ban removal options
|
|
3936
|
+
* @returns Promise resolving to removal confirmation
|
|
3937
|
+
* @throws ValidationError if options are invalid
|
|
3938
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3939
|
+
* @throws Error if ban not found
|
|
3602
3940
|
*
|
|
3603
|
-
* @
|
|
3604
|
-
* @
|
|
3605
|
-
* @throws ConfigurationError if JWT auth is not configured
|
|
3941
|
+
* @since 6.x.0
|
|
3942
|
+
* @category Moderation
|
|
3606
3943
|
*
|
|
3607
3944
|
* @example
|
|
3608
3945
|
* ```typescript
|
|
3609
|
-
*
|
|
3610
|
-
*
|
|
3611
|
-
*
|
|
3612
|
-
*
|
|
3613
|
-
* for (const key of result.apiKeys) {
|
|
3614
|
-
* console.log(`${key.keyPrefix} - ${key.role} - ${key.description}`);
|
|
3615
|
-
* console.log(` Last used: ${key.lastUsedAt || 'Never'}`);
|
|
3616
|
-
* console.log(` Expires: ${key.expiresAt || 'Never'}`);
|
|
3617
|
-
* }
|
|
3618
|
-
*
|
|
3619
|
-
* // Paginate through keys
|
|
3620
|
-
* const page2 = await sdk.listApiKeys({ page: 2, limit: 10 });
|
|
3946
|
+
* const result = await sdk.removeGlobalBan({
|
|
3947
|
+
* userAddress: 'eth|0x123...'
|
|
3948
|
+
* });
|
|
3949
|
+
* console.log('Global ban removed:', result.removed);
|
|
3621
3950
|
* ```
|
|
3622
|
-
*
|
|
3623
|
-
* @since 5.6.0
|
|
3624
3951
|
*/
|
|
3625
|
-
|
|
3952
|
+
removeGlobalBan(options: RemoveGlobalBanOptions): Promise<RemoveGlobalBanResult>;
|
|
3626
3953
|
/**
|
|
3627
|
-
*
|
|
3954
|
+
* List all global user bans on the platform.
|
|
3628
3955
|
*
|
|
3629
|
-
* Returns
|
|
3956
|
+
* Returns paginated results with user profile information. Supports filtering
|
|
3957
|
+
* by user address or name.
|
|
3630
3958
|
*
|
|
3631
|
-
* Requires
|
|
3959
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3960
|
+
*
|
|
3961
|
+
* @param options - List options with optional pagination and filters
|
|
3962
|
+
* @returns Promise resolving to paginated list of global bans
|
|
3963
|
+
* @throws ValidationError if options are invalid
|
|
3964
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3965
|
+
*
|
|
3966
|
+
* @since 6.x.0
|
|
3967
|
+
* @category Moderation
|
|
3968
|
+
*
|
|
3969
|
+
* @example Get first page of global bans
|
|
3970
|
+
* ```typescript
|
|
3971
|
+
* const result = await sdk.listGlobalBans({
|
|
3972
|
+
* pageSize: 20
|
|
3973
|
+
* });
|
|
3974
|
+
* console.log('Total global bans:', result.pageInfo.totalCount);
|
|
3975
|
+
* result.items.forEach(ban => {
|
|
3976
|
+
* console.log(`${ban.userAddress}: ${ban.reason}`);
|
|
3977
|
+
* });
|
|
3978
|
+
* ```
|
|
3979
|
+
*
|
|
3980
|
+
* @example Search for banned user
|
|
3981
|
+
* ```typescript
|
|
3982
|
+
* const result = await sdk.listGlobalBans({
|
|
3983
|
+
* userAddress: 'eth|0x123...',
|
|
3984
|
+
* pageSize: 10
|
|
3985
|
+
* });
|
|
3986
|
+
* ```
|
|
3987
|
+
*/
|
|
3988
|
+
listGlobalBans(options?: ListGlobalBansOptions): Promise<GlobalBanListResult>;
|
|
3989
|
+
/**
|
|
3990
|
+
* Get global ban status for a specific user.
|
|
3991
|
+
*
|
|
3992
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3993
|
+
*
|
|
3994
|
+
* @param options - Global ban status options
|
|
3995
|
+
* @returns Promise resolving to ban status (banned or not) with ban data if applicable
|
|
3996
|
+
* @throws ValidationError if options are invalid
|
|
3997
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3998
|
+
*
|
|
3999
|
+
* @since 6.x.0
|
|
4000
|
+
* @category Moderation
|
|
4001
|
+
*
|
|
4002
|
+
* @example
|
|
4003
|
+
* ```typescript
|
|
4004
|
+
* const status = await sdk.getGlobalBan({
|
|
4005
|
+
* userAddress: 'eth|0x123...'
|
|
4006
|
+
* });
|
|
4007
|
+
* if (status.banned) {
|
|
4008
|
+
* console.log('User is globally banned');
|
|
4009
|
+
* console.log('Reason:', status.ban?.reason);
|
|
4010
|
+
* console.log('Expires:', status.ban?.expiresAt ?? 'permanent');
|
|
4011
|
+
* }
|
|
4012
|
+
* ```
|
|
4013
|
+
*/
|
|
4014
|
+
getGlobalBan(options: GetGlobalBanOptions): Promise<GlobalBanStatusResult>;
|
|
4015
|
+
/**
|
|
4016
|
+
* Create a new API key.
|
|
4017
|
+
*
|
|
4018
|
+
* **CRITICAL**: The `rawKey` in the response is ONLY shown once!
|
|
4019
|
+
* Store it securely immediately - it cannot be retrieved again.
|
|
4020
|
+
*
|
|
4021
|
+
* API keys enable delegation of specific permissions to third-party services
|
|
4022
|
+
* or automated systems without sharing full account access.
|
|
4023
|
+
*
|
|
4024
|
+
* Requires JWT authentication - call `sdk.login()` first.
|
|
4025
|
+
*
|
|
4026
|
+
* @param options - API key creation options
|
|
4027
|
+
* @returns Created API key with raw key (shown only once)
|
|
4028
|
+
* @throws ValidationError if options are invalid
|
|
4029
|
+
* @throws ConfigurationError if JWT auth is not configured
|
|
4030
|
+
*
|
|
4031
|
+
* @example
|
|
4032
|
+
* ```typescript
|
|
4033
|
+
* // Create a moderator key for chat management
|
|
4034
|
+
* const result = await sdk.createApiKey({
|
|
4035
|
+
* role: 'MODERATOR',
|
|
4036
|
+
* description: 'Twitch chat bot integration',
|
|
4037
|
+
* tokenNames: ['mytoken', 'othertoken']
|
|
4038
|
+
* });
|
|
4039
|
+
*
|
|
4040
|
+
* // CRITICAL: Save this immediately!
|
|
4041
|
+
* console.log('API Key:', result.rawKey);
|
|
4042
|
+
* // Format: glp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
4043
|
+
*
|
|
4044
|
+
* // Create an owner key for full access to all tokens
|
|
4045
|
+
* const ownerKey = await sdk.createApiKey({
|
|
4046
|
+
* role: 'OWNER',
|
|
4047
|
+
* description: 'Production automation',
|
|
4048
|
+
* delegateAllTokens: true,
|
|
4049
|
+
* expiresAt: '2025-12-31T23:59:59Z'
|
|
4050
|
+
* });
|
|
4051
|
+
* ```
|
|
4052
|
+
*
|
|
4053
|
+
* @since 5.6.0
|
|
4054
|
+
*/
|
|
4055
|
+
createApiKey(options: CreateApiKeyOptions): Promise<CreateApiKeyResponse>;
|
|
4056
|
+
/**
|
|
4057
|
+
* List all API keys for the authenticated user.
|
|
4058
|
+
*
|
|
4059
|
+
* Returns paginated list of API keys. Raw keys are never included -
|
|
4060
|
+
* they are only shown once at creation time.
|
|
4061
|
+
*
|
|
4062
|
+
* Requires JWT authentication - call `sdk.login()` first.
|
|
4063
|
+
*
|
|
4064
|
+
* @param options - Optional pagination options
|
|
4065
|
+
* @returns Paginated list of API keys
|
|
4066
|
+
* @throws ConfigurationError if JWT auth is not configured
|
|
4067
|
+
*
|
|
4068
|
+
* @example
|
|
4069
|
+
* ```typescript
|
|
4070
|
+
* // List all API keys
|
|
4071
|
+
* const result = await sdk.listApiKeys();
|
|
4072
|
+
* console.log(`Total keys: ${result.pageInfo.totalCount}`);
|
|
4073
|
+
*
|
|
4074
|
+
* for (const key of result.apiKeys) {
|
|
4075
|
+
* console.log(`${key.keyPrefix} - ${key.role} - ${key.description}`);
|
|
4076
|
+
* console.log(` Last used: ${key.lastUsedAt || 'Never'}`);
|
|
4077
|
+
* console.log(` Expires: ${key.expiresAt || 'Never'}`);
|
|
4078
|
+
* }
|
|
4079
|
+
*
|
|
4080
|
+
* // Paginate through keys (cursor-based)
|
|
4081
|
+
* if (result.pageInfo.hasNextPage) {
|
|
4082
|
+
* const page2 = await sdk.listApiKeys({
|
|
4083
|
+
* cursor: result.pageInfo.nextCursor,
|
|
4084
|
+
* pageSize: 10
|
|
4085
|
+
* });
|
|
4086
|
+
* }
|
|
4087
|
+
* ```
|
|
4088
|
+
*
|
|
4089
|
+
* @since 5.6.0
|
|
4090
|
+
*/
|
|
4091
|
+
listApiKeys(options?: ListApiKeysOptions): Promise<ApiKeyListResponse>;
|
|
4092
|
+
/**
|
|
4093
|
+
* Get a single API key by ID.
|
|
4094
|
+
*
|
|
4095
|
+
* Returns the API key metadata. Raw key is never included.
|
|
4096
|
+
*
|
|
4097
|
+
* Requires JWT authentication - call `sdk.login()` first.
|
|
3632
4098
|
*
|
|
3633
4099
|
* @param id - API key ID
|
|
3634
4100
|
* @returns API key data
|
|
@@ -3790,8 +4256,8 @@ export declare class LaunchpadSDK {
|
|
|
3790
4256
|
*
|
|
3791
4257
|
* @example
|
|
3792
4258
|
* ```typescript
|
|
3793
|
-
* const result = await sdk.getModeratedTokens({
|
|
3794
|
-
* console.log('Moderating', result.
|
|
4259
|
+
* const result = await sdk.getModeratedTokens({ pageSize: 20 });
|
|
4260
|
+
* console.log('Moderating', result.pageInfo.totalCount, 'tokens');
|
|
3795
4261
|
* for (const token of result.tokens) {
|
|
3796
4262
|
* console.log(`- ${token.tokenName} (${token.role})`);
|
|
3797
4263
|
* }
|
|
@@ -3819,7 +4285,7 @@ export declare class LaunchpadSDK {
|
|
|
3819
4285
|
*
|
|
3820
4286
|
* // Get invites for a specific token
|
|
3821
4287
|
* const result = await sdk.listModeratorInvites({ tokenName: 'mytoken' });
|
|
3822
|
-
* console.log('Total invites:', result.
|
|
4288
|
+
* console.log('Total invites:', result.pageInfo.totalCount);
|
|
3823
4289
|
*
|
|
3824
4290
|
* // Filter by status
|
|
3825
4291
|
* const pending = await sdk.listModeratorInvites({
|
|
@@ -3873,6 +4339,24 @@ export declare class LaunchpadSDK {
|
|
|
3873
4339
|
* @since 5.7.0
|
|
3874
4340
|
*/
|
|
3875
4341
|
updateModeratorInviteRole(options: UpdateInviteRoleOptions): Promise<UpdateInviteRoleResult>;
|
|
4342
|
+
/**
|
|
4343
|
+
* Update a moderator invite's role and/or description (owner only).
|
|
4344
|
+
*
|
|
4345
|
+
* @param options - Update options including inviteId, optional role, and optional description
|
|
4346
|
+
* @returns The updated invite
|
|
4347
|
+
*
|
|
4348
|
+
* @example
|
|
4349
|
+
* ```typescript
|
|
4350
|
+
* const result = await sdk.updateModeratorInvite({
|
|
4351
|
+
* inviteId: 123,
|
|
4352
|
+
* description: 'John - handles Friday evening streams'
|
|
4353
|
+
* });
|
|
4354
|
+
* console.log('Updated description:', result.invite.description);
|
|
4355
|
+
* ```
|
|
4356
|
+
*
|
|
4357
|
+
* @since 5.0.4-beta.60
|
|
4358
|
+
*/
|
|
4359
|
+
updateModeratorInvite(options: UpdateModeratorInviteOptions): Promise<UpdateModeratorInviteResult>;
|
|
3876
4360
|
/**
|
|
3877
4361
|
* Get invite details by code (public endpoint).
|
|
3878
4362
|
*
|
|
@@ -3959,8 +4443,7 @@ export declare class LaunchpadSDK {
|
|
|
3959
4443
|
* const result = await sdk.listFlags({
|
|
3960
4444
|
* tokenName: 'mytoken',
|
|
3961
4445
|
* contentType: ContentType.CHAT_MESSAGE,
|
|
3962
|
-
*
|
|
3963
|
-
* limit: 50,
|
|
4446
|
+
* pageSize: 50,
|
|
3964
4447
|
* });
|
|
3965
4448
|
* ```
|
|
3966
4449
|
*/
|
|
@@ -4081,15 +4564,14 @@ export declare class LaunchpadSDK {
|
|
|
4081
4564
|
* @example List all invites
|
|
4082
4565
|
* ```typescript
|
|
4083
4566
|
* const result = await sdk.listOverseerInvites();
|
|
4084
|
-
* console.log(`Total invites: ${result.
|
|
4567
|
+
* console.log(`Total invites: ${result.pageInfo.totalCount}`);
|
|
4085
4568
|
* ```
|
|
4086
4569
|
*
|
|
4087
4570
|
* @example Filter by status with pagination
|
|
4088
4571
|
* ```typescript
|
|
4089
4572
|
* const result = await sdk.listOverseerInvites({
|
|
4090
4573
|
* status: 'PENDING',
|
|
4091
|
-
*
|
|
4092
|
-
* limit: 10,
|
|
4574
|
+
* pageSize: 10,
|
|
4093
4575
|
* });
|
|
4094
4576
|
* ```
|
|
4095
4577
|
*/
|
|
@@ -4179,7 +4661,7 @@ export declare class LaunchpadSDK {
|
|
|
4179
4661
|
* @example List all overseers
|
|
4180
4662
|
* ```typescript
|
|
4181
4663
|
* const result = await sdk.listOverseers();
|
|
4182
|
-
* console.log(`Total overseers: ${result.
|
|
4664
|
+
* console.log(`Total overseers: ${result.pageInfo.totalCount}`);
|
|
4183
4665
|
* ```
|
|
4184
4666
|
*
|
|
4185
4667
|
* @example Filter by status
|
|
@@ -4190,6 +4672,38 @@ export declare class LaunchpadSDK {
|
|
|
4190
4672
|
* ```
|
|
4191
4673
|
*/
|
|
4192
4674
|
listOverseers(options?: ListOverseersOptions): Promise<PaginatedOverseers>;
|
|
4675
|
+
/**
|
|
4676
|
+
* Create an overseer directly (bypassing invite flow).
|
|
4677
|
+
*
|
|
4678
|
+
* This directly promotes a user to overseer status without requiring them
|
|
4679
|
+
* to claim an invite. A synthetic invite record is created for audit trail.
|
|
4680
|
+
*
|
|
4681
|
+
* Use this when you need to promote someone programmatically without
|
|
4682
|
+
* requiring their interaction (e.g., CLI admin tools, automated tests).
|
|
4683
|
+
*
|
|
4684
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4685
|
+
*
|
|
4686
|
+
* @param options - The options for creating the overseer
|
|
4687
|
+
* @returns The created overseer record
|
|
4688
|
+
* @throws ValidationError if address format is invalid
|
|
4689
|
+
* @throws ConfigurationError if neither auth method is available
|
|
4690
|
+
* @throws Error if user is already an overseer (400)
|
|
4691
|
+
*
|
|
4692
|
+
* @since 8.3.0
|
|
4693
|
+
* @category Overseer
|
|
4694
|
+
*
|
|
4695
|
+
* @example Promote a user to overseer
|
|
4696
|
+
* ```typescript
|
|
4697
|
+
* const result = await sdk.createOverseerDirect({
|
|
4698
|
+
* userAddress: 'eth|0x1234567890abcdef1234567890abcdef12345678',
|
|
4699
|
+
* description: 'Platform team - John'
|
|
4700
|
+
* });
|
|
4701
|
+
* console.log('Overseer created:', result.overseer.userAddress);
|
|
4702
|
+
* ```
|
|
4703
|
+
*/
|
|
4704
|
+
createOverseerDirect(options: CreateOverseerDirectOptions): Promise<{
|
|
4705
|
+
overseer: Overseer;
|
|
4706
|
+
}>;
|
|
4193
4707
|
/**
|
|
4194
4708
|
* Revoke an overseer's access.
|
|
4195
4709
|
*
|
|
@@ -4263,6 +4777,46 @@ export declare class LaunchpadSDK {
|
|
|
4263
4777
|
* ```
|
|
4264
4778
|
*/
|
|
4265
4779
|
getOverseerSummary(): Promise<OverseerSummaryResponse>;
|
|
4780
|
+
/**
|
|
4781
|
+
* Get ban stats for the overseer banned users tab
|
|
4782
|
+
*
|
|
4783
|
+
* @returns Ban counts
|
|
4784
|
+
* @since 8.x.0
|
|
4785
|
+
* @category Overseer
|
|
4786
|
+
*/
|
|
4787
|
+
getBanStats(): Promise<BanStatsResponse>;
|
|
4788
|
+
/**
|
|
4789
|
+
* Get token ban stats for the overseer delisted tokens tab
|
|
4790
|
+
*
|
|
4791
|
+
* @returns Token ban counts
|
|
4792
|
+
* @since 8.x.0
|
|
4793
|
+
* @category Overseer
|
|
4794
|
+
*/
|
|
4795
|
+
getTokenBanStats(): Promise<TokenBanStatsResponse>;
|
|
4796
|
+
/**
|
|
4797
|
+
* Get invite stats for the overseer invites tab
|
|
4798
|
+
*
|
|
4799
|
+
* @returns Invite counts by status
|
|
4800
|
+
* @since 8.x.0
|
|
4801
|
+
* @category Overseer
|
|
4802
|
+
*/
|
|
4803
|
+
getInviteStats(): Promise<InviteStatsResponse>;
|
|
4804
|
+
/**
|
|
4805
|
+
* Get flag stats for the content flags tab
|
|
4806
|
+
*
|
|
4807
|
+
* @returns Flag counts by status
|
|
4808
|
+
* @since 8.x.0
|
|
4809
|
+
* @category Overseer
|
|
4810
|
+
*/
|
|
4811
|
+
getFlagStats(): Promise<FlagStatsResponse>;
|
|
4812
|
+
/**
|
|
4813
|
+
* Get user stats for the overseer users management tab
|
|
4814
|
+
*
|
|
4815
|
+
* @returns User counts (total, flagged, banned)
|
|
4816
|
+
* @since 8.x.0
|
|
4817
|
+
* @category Overseer
|
|
4818
|
+
*/
|
|
4819
|
+
getUserStats(): Promise<UserStatsResponse>;
|
|
4266
4820
|
/**
|
|
4267
4821
|
* List users with activity metrics (Admin/Overseer only - v6.x.0+)
|
|
4268
4822
|
*
|
|
@@ -4281,9 +4835,9 @@ export declare class LaunchpadSDK {
|
|
|
4281
4835
|
*
|
|
4282
4836
|
* @example List users with pagination
|
|
4283
4837
|
* ```typescript
|
|
4284
|
-
* const result = await sdk.listOverseerUsers({
|
|
4838
|
+
* const result = await sdk.listOverseerUsers({ pageSize: 20 });
|
|
4285
4839
|
* result.items.forEach(user => {
|
|
4286
|
-
* console.log(`${user.
|
|
4840
|
+
* console.log(`${user.fullName}: ${user.flagsReceived} flags`);
|
|
4287
4841
|
* });
|
|
4288
4842
|
* ```
|
|
4289
4843
|
*
|
|
@@ -4293,7 +4847,7 @@ export declare class LaunchpadSDK {
|
|
|
4293
4847
|
* search: 'alice',
|
|
4294
4848
|
* sortBy: 'activity',
|
|
4295
4849
|
* sortOrder: 'desc',
|
|
4296
|
-
*
|
|
4850
|
+
* pageSize: 10
|
|
4297
4851
|
* });
|
|
4298
4852
|
* ```
|
|
4299
4853
|
*/
|
|
@@ -4317,183 +4871,869 @@ export declare class LaunchpadSDK {
|
|
|
4317
4871
|
* @example Get user summary
|
|
4318
4872
|
* ```typescript
|
|
4319
4873
|
* const summary = await sdk.getOverseerUserSummary('eth|abc123...');
|
|
4320
|
-
* console.log(`User: ${summary.profile
|
|
4321
|
-
* console.log(`
|
|
4322
|
-
* console.log(`
|
|
4323
|
-
* if (summary.isBanned) {
|
|
4324
|
-
* console.log(`Reason: ${summary.banInfo?.reason}`);
|
|
4325
|
-
* }
|
|
4874
|
+
* console.log(`User: ${summary.profile?.fullName}`);
|
|
4875
|
+
* console.log(`Flags: ${summary.stats.flagsReceived}`);
|
|
4876
|
+
* console.log(`Global ban: ${summary.stats.globalBan}`);
|
|
4326
4877
|
* ```
|
|
4327
4878
|
*/
|
|
4328
4879
|
getOverseerUserSummary(address: string): Promise<UserSummaryResponse>;
|
|
4329
4880
|
/**
|
|
4330
|
-
*
|
|
4881
|
+
* Flush all cache entries for a wallet address.
|
|
4331
4882
|
*
|
|
4332
|
-
*
|
|
4333
|
-
* -
|
|
4334
|
-
* -
|
|
4335
|
-
* -
|
|
4336
|
-
* -
|
|
4337
|
-
* - Trading NOT blocked (GalaChain handles trading independently)
|
|
4883
|
+
* Clears cached data associated with the specified address including:
|
|
4884
|
+
* - User profile data (profile:data:*, profile:stats:*)
|
|
4885
|
+
* - Overseer status
|
|
4886
|
+
* - Owned tokens list
|
|
4887
|
+
* - Ban status (global and per-token)
|
|
4338
4888
|
*
|
|
4339
|
-
* Requires
|
|
4889
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4340
4890
|
*
|
|
4341
|
-
* @param
|
|
4342
|
-
* @returns
|
|
4343
|
-
* @throws ValidationError if parameters are invalid
|
|
4891
|
+
* @param address - Wallet address to flush cache for (eth|... or 0x... format)
|
|
4892
|
+
* @returns Flush result with count and duration
|
|
4344
4893
|
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4345
|
-
* @throws Error if token is already banned (409 Conflict)
|
|
4346
|
-
*
|
|
4347
|
-
* @since 6.x.0
|
|
4348
|
-
* @category TokenBan
|
|
4349
4894
|
*
|
|
4350
|
-
* @
|
|
4351
|
-
*
|
|
4352
|
-
* const result = await sdk.banToken({
|
|
4353
|
-
* tokenName: 'scamtoken',
|
|
4354
|
-
* reason: 'Fraudulent project - reported by multiple users'
|
|
4355
|
-
* });
|
|
4356
|
-
* console.log('Banned token:', result.tokenName);
|
|
4357
|
-
* console.log('Ban ID:', result.ban.id);
|
|
4358
|
-
* console.log('Banned by:', result.ban.bannedBy);
|
|
4359
|
-
* ```
|
|
4895
|
+
* @since 8.x.0
|
|
4896
|
+
* @category Cache Management
|
|
4360
4897
|
*
|
|
4361
|
-
* @example
|
|
4898
|
+
* @example Flush cache for a user
|
|
4362
4899
|
* ```typescript
|
|
4363
|
-
* await sdk.
|
|
4900
|
+
* const result = await sdk.flushCacheByAddress('eth|abc123...');
|
|
4901
|
+
* console.log(`Flushed ${result.flushedCount} cache entries in ${result.duration}ms`);
|
|
4364
4902
|
* ```
|
|
4365
4903
|
*/
|
|
4366
|
-
|
|
4904
|
+
flushCacheByAddress(address: string): Promise<FlushResult>;
|
|
4367
4905
|
/**
|
|
4368
|
-
*
|
|
4906
|
+
* Flush all cache entries for a token.
|
|
4369
4907
|
*
|
|
4370
|
-
*
|
|
4371
|
-
* -
|
|
4372
|
-
* -
|
|
4373
|
-
* -
|
|
4374
|
-
* -
|
|
4375
|
-
* -
|
|
4908
|
+
* Clears cached data associated with the specified token including:
|
|
4909
|
+
* - Stream chat messages and pinned messages
|
|
4910
|
+
* - Recordings list
|
|
4911
|
+
* - Holders data and rankings
|
|
4912
|
+
* - Token ban status
|
|
4913
|
+
* - Price data (GALA and USD)
|
|
4376
4914
|
*
|
|
4377
|
-
* Requires
|
|
4915
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4378
4916
|
*
|
|
4379
|
-
* @param
|
|
4380
|
-
* @returns
|
|
4381
|
-
* @throws ValidationError if token name is invalid
|
|
4917
|
+
* @param tokenName - Token name to flush cache for
|
|
4918
|
+
* @returns Flush result with count and duration
|
|
4382
4919
|
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4383
|
-
* @throws Error if token is not banned (404 Not Found)
|
|
4384
4920
|
*
|
|
4385
|
-
* @since
|
|
4386
|
-
* @category
|
|
4921
|
+
* @since 8.x.0
|
|
4922
|
+
* @category Cache Management
|
|
4387
4923
|
*
|
|
4388
|
-
* @example
|
|
4924
|
+
* @example Flush cache for a token
|
|
4389
4925
|
* ```typescript
|
|
4390
|
-
* const result = await sdk.
|
|
4391
|
-
* console.log(
|
|
4392
|
-
* console.log('Token:', result.tokenName);
|
|
4926
|
+
* const result = await sdk.flushCacheByToken('MYTOKEN');
|
|
4927
|
+
* console.log(`Flushed ${result.flushedCount} cache entries in ${result.duration}ms`);
|
|
4393
4928
|
* ```
|
|
4394
4929
|
*/
|
|
4395
|
-
|
|
4930
|
+
flushCacheByToken(tokenName: string): Promise<FlushResult>;
|
|
4396
4931
|
/**
|
|
4397
|
-
*
|
|
4932
|
+
* Flush ALL Launchpad cache (Nuclear Option).
|
|
4398
4933
|
*
|
|
4399
|
-
*
|
|
4934
|
+
* Clears ALL cached data across the entire Launchpad platform including:
|
|
4935
|
+
* - All user profile data
|
|
4936
|
+
* - All token data (chat, recordings, holders, prices)
|
|
4937
|
+
* - All overseer/moderator access data
|
|
4938
|
+
* - All ban status data
|
|
4939
|
+
* - Site configuration cache
|
|
4400
4940
|
*
|
|
4401
|
-
*
|
|
4941
|
+
* **WARNING:** This will cause a temporary performance hit across the entire
|
|
4942
|
+
* platform as all data needs to be re-fetched from the database.
|
|
4402
4943
|
*
|
|
4403
|
-
*
|
|
4404
|
-
*
|
|
4405
|
-
*
|
|
4944
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4945
|
+
* **Safety feature:** Requires confirm=true to prevent accidental usage.
|
|
4946
|
+
*
|
|
4947
|
+
* @param confirm - Must be true to proceed (safety confirmation)
|
|
4948
|
+
* @returns Flush result with count and duration
|
|
4949
|
+
* @throws ValidationError if confirm is not true
|
|
4406
4950
|
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4407
4951
|
*
|
|
4408
|
-
* @since
|
|
4409
|
-
* @category
|
|
4952
|
+
* @since 8.x.0
|
|
4953
|
+
* @category Cache Management
|
|
4410
4954
|
*
|
|
4411
|
-
* @example
|
|
4955
|
+
* @example Flush all cache (dangerous!)
|
|
4412
4956
|
* ```typescript
|
|
4413
|
-
* const result = await sdk.
|
|
4414
|
-
* console.log(`
|
|
4415
|
-
* for (const ban of result.items) {
|
|
4416
|
-
* console.log(`${ban.tokenName}: ${ban.reason || 'No reason'}`);
|
|
4417
|
-
* }
|
|
4957
|
+
* const result = await sdk.flushAllCache(true);
|
|
4958
|
+
* console.log(`Flushed ALL ${result.flushedCount} cache entries in ${result.duration}ms`);
|
|
4418
4959
|
* ```
|
|
4960
|
+
*/
|
|
4961
|
+
flushAllCache(confirm: true): Promise<FlushResult>;
|
|
4962
|
+
/**
|
|
4963
|
+
* Flush wallet-alias cache entries.
|
|
4419
4964
|
*
|
|
4420
|
-
*
|
|
4965
|
+
* Clears the cached eth| → client| alias resolution for the given address,
|
|
4966
|
+
* or ALL wallet-alias entries if no address is provided.
|
|
4967
|
+
*
|
|
4968
|
+
* Use this when a user's login returns a stale `eth|` address even though
|
|
4969
|
+
* they have a `client|` alias on GalaChain. After flushing, the next login
|
|
4970
|
+
* will re-resolve the alias from the GalaChain public-key contract.
|
|
4971
|
+
*
|
|
4972
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4973
|
+
*
|
|
4974
|
+
* @param address - Optional. Wallet address (eth| or 0x format) to flush.
|
|
4975
|
+
* If omitted, ALL wallet-alias entries are flushed.
|
|
4976
|
+
* @returns Flush result with count and duration
|
|
4977
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4978
|
+
*
|
|
4979
|
+
* @since 8.x.0
|
|
4980
|
+
* @category Cache Management
|
|
4981
|
+
*
|
|
4982
|
+
* @example Flush alias for a single address
|
|
4421
4983
|
* ```typescript
|
|
4422
|
-
* const result = await sdk.
|
|
4423
|
-
*
|
|
4424
|
-
* page: 1,
|
|
4425
|
-
* limit: 10
|
|
4426
|
-
* });
|
|
4984
|
+
* const result = await sdk.flushWalletAliasCache('eth|dc1783...');
|
|
4985
|
+
* console.log(`Flushed ${result.flushedCount} alias entries in ${result.duration}ms`);
|
|
4427
4986
|
* ```
|
|
4428
4987
|
*
|
|
4429
|
-
* @example
|
|
4988
|
+
* @example Flush all wallet alias entries
|
|
4430
4989
|
* ```typescript
|
|
4431
|
-
*
|
|
4432
|
-
*
|
|
4433
|
-
* while (hasMore) {
|
|
4434
|
-
* const result = await sdk.listTokenBans({ page, limit: 20 });
|
|
4435
|
-
* console.log('Bans:', result.items.map(b => b.tokenName));
|
|
4436
|
-
* hasMore = page < result.meta.totalPages;
|
|
4437
|
-
* page++;
|
|
4438
|
-
* }
|
|
4990
|
+
* const result = await sdk.flushWalletAliasCache();
|
|
4991
|
+
* console.log(`Flushed ${result.flushedCount} alias entries in ${result.duration}ms`);
|
|
4439
4992
|
* ```
|
|
4440
4993
|
*/
|
|
4441
|
-
|
|
4994
|
+
flushWalletAliasCache(address?: string): Promise<FlushResult>;
|
|
4442
4995
|
/**
|
|
4443
|
-
*
|
|
4444
|
-
*
|
|
4445
|
-
* Returns ban data if banned, or indicates not banned.
|
|
4446
|
-
* Use this to get full ban details including reason and who banned it.
|
|
4996
|
+
* Emit a trade execution event to token subscribers (admin/overseer only)
|
|
4447
4997
|
*
|
|
4448
|
-
*
|
|
4998
|
+
* Notifies all users subscribed to a token that a trade has executed.
|
|
4449
4999
|
*
|
|
4450
|
-
* @param
|
|
4451
|
-
* @
|
|
4452
|
-
* @throws ValidationError if token name is invalid
|
|
5000
|
+
* @param tokenName - Token being traded
|
|
5001
|
+
* @param payload - Trade details (tradeType, inputAmount, outputAmount)
|
|
4453
5002
|
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4454
5003
|
*
|
|
4455
|
-
* @since
|
|
4456
|
-
* @category
|
|
4457
|
-
|
|
4458
|
-
|
|
5004
|
+
* @since 5.15.0
|
|
5005
|
+
* @category WebSocket
|
|
5006
|
+
*/
|
|
5007
|
+
emitTradeExecuted(tokenName: string, payload: TradeExecutedPayload): Promise<void>;
|
|
5008
|
+
/**
|
|
5009
|
+
* Emit a balance update to a specific user (admin/overseer only)
|
|
5010
|
+
*/
|
|
5011
|
+
emitBalanceUpdated(userAddress: string, tokenName: string, payload: BalanceUpdatedPayload): Promise<void>;
|
|
5012
|
+
/**
|
|
5013
|
+
* Emit stream status change event (admin/overseer only)
|
|
5014
|
+
*/
|
|
5015
|
+
emitStreamStatus(tokenName: string, payload: StreamStatusPayload): Promise<void>;
|
|
5016
|
+
/**
|
|
5017
|
+
* Emit viewer count update event (admin/overseer only)
|
|
5018
|
+
*/
|
|
5019
|
+
emitViewerCount(tokenName: string, payload: ViewerCountPayload): Promise<void>;
|
|
5020
|
+
/**
|
|
5021
|
+
* Emit stream countdown event (admin/overseer only)
|
|
5022
|
+
*/
|
|
5023
|
+
emitStreamCountdown(tokenName: string, payload: StreamCountdownPayload): Promise<void>;
|
|
5024
|
+
/**
|
|
5025
|
+
* Emit chat message event (admin/overseer only)
|
|
5026
|
+
*/
|
|
5027
|
+
emitChatMessage(tokenName: string, payload: ChatMessagePayload): Promise<void>;
|
|
5028
|
+
/**
|
|
5029
|
+
* Emit chat status event (admin/overseer only)
|
|
5030
|
+
*/
|
|
5031
|
+
emitChatStatus(tokenName: string, payload: ChatStatusPayload): Promise<void>;
|
|
5032
|
+
/**
|
|
5033
|
+
* Emit typing indicator event (admin/overseer only)
|
|
5034
|
+
*/
|
|
5035
|
+
emitTypingIndicator(tokenName: string, payload: TypingIndicatorPayload): Promise<void>;
|
|
5036
|
+
/**
|
|
5037
|
+
* Emit token banned event (admin/overseer only)
|
|
5038
|
+
*/
|
|
5039
|
+
emitTokenBanned(tokenName: string, payload: TokenBannedPayload): Promise<void>;
|
|
5040
|
+
/**
|
|
5041
|
+
* Emit token unbanned event (admin/overseer only)
|
|
5042
|
+
*/
|
|
5043
|
+
emitTokenUnbanned(tokenName: string, payload: TokenUnbannedPayload): Promise<void>;
|
|
5044
|
+
/**
|
|
5045
|
+
* Emit moderator added event (admin/overseer only)
|
|
5046
|
+
*/
|
|
5047
|
+
emitModeratorAdded(tokenName: string, payload: ModeratorAddedPayload): Promise<void>;
|
|
5048
|
+
/**
|
|
5049
|
+
* Emit moderator removed event (admin/overseer only)
|
|
5050
|
+
*/
|
|
5051
|
+
emitModeratorRemoved(tokenName: string, payload: ModeratorRemovedPayload): Promise<void>;
|
|
5052
|
+
/**
|
|
5053
|
+
* Emit user profile updated event (admin/overseer only)
|
|
5054
|
+
*/
|
|
5055
|
+
emitUserProfileUpdated(userAddress: string, payload: UserProfileUpdatedPayload): Promise<void>;
|
|
5056
|
+
/**
|
|
5057
|
+
* Emit site configuration changed event (admin/overseer only)
|
|
5058
|
+
*/
|
|
5059
|
+
emitSiteConfigChanged(payload: SiteConfigChangedPayload): Promise<void>;
|
|
5060
|
+
/**
|
|
5061
|
+
* Emit feature status changed event (admin/overseer only)
|
|
5062
|
+
*/
|
|
5063
|
+
emitFeatureStatus(payload: FeatureStatusPayload): Promise<void>;
|
|
5064
|
+
/**
|
|
5065
|
+
* Emit recording status change event (admin/overseer only)
|
|
5066
|
+
*
|
|
5067
|
+
* Notifies token subscribers that a Mux recording has changed status (CREATED, READY, or DELETED).
|
|
5068
|
+
*
|
|
5069
|
+
* @since 9.1.0
|
|
5070
|
+
* @category WebSocket
|
|
5071
|
+
*/
|
|
5072
|
+
emitRecordingStatus(tokenName: string, payload: RecordingStatusPayload): Promise<void>;
|
|
5073
|
+
/**
|
|
5074
|
+
* Emit recordings count updated event (admin/overseer only)
|
|
5075
|
+
*
|
|
5076
|
+
* Notifies token subscribers that the number of available recordings has changed.
|
|
5077
|
+
*
|
|
5078
|
+
* @since 9.1.0
|
|
5079
|
+
* @category WebSocket
|
|
5080
|
+
*/
|
|
5081
|
+
emitRecordingsCountUpdated(tokenName: string, payload: RecordingsCountUpdatedPayload): Promise<void>;
|
|
5082
|
+
/**
|
|
5083
|
+
* Emit download ready event (admin/overseer only)
|
|
5084
|
+
*
|
|
5085
|
+
* Notifies token subscribers that a recording download is ready for consumption.
|
|
5086
|
+
*
|
|
5087
|
+
* @since 9.1.0
|
|
5088
|
+
* @category WebSocket
|
|
5089
|
+
*/
|
|
5090
|
+
emitDownloadReady(tokenName: string, payload: DownloadReadyPayload): Promise<void>;
|
|
5091
|
+
/**
|
|
5092
|
+
* Get list of currently connected WebSocket clients (admin/overseer only)
|
|
5093
|
+
*/
|
|
5094
|
+
getConnectedClients(options?: GetConnectedClientsOptions): Promise<ConnectedClientsResponse>;
|
|
5095
|
+
/**
|
|
5096
|
+
* Check if a specific user is currently online
|
|
5097
|
+
*
|
|
5098
|
+
* @param userAddress - User's wallet address (required, non-empty)
|
|
5099
|
+
* @returns Online status with socket ID and rooms if connected
|
|
5100
|
+
* @throws ConfigurationError if userAddress is empty
|
|
5101
|
+
* @throws NetworkError if API request fails
|
|
5102
|
+
*/
|
|
5103
|
+
isUserOnline(userAddress: string): Promise<{
|
|
5104
|
+
online: boolean;
|
|
5105
|
+
socketId?: string;
|
|
5106
|
+
rooms?: string[];
|
|
5107
|
+
connectedAt?: string;
|
|
5108
|
+
}>;
|
|
5109
|
+
/**
|
|
5110
|
+
* Batch check which users from a list are currently online
|
|
5111
|
+
*
|
|
5112
|
+
* @param userAddresses - Array of user wallet addresses (required, non-empty)
|
|
5113
|
+
* @returns Object with online/offline arrays and client details
|
|
5114
|
+
* @throws ConfigurationError if userAddresses is empty or invalid
|
|
5115
|
+
* @throws NetworkError if API request fails
|
|
5116
|
+
*/
|
|
5117
|
+
getOnlineUsers(userAddresses: string[]): Promise<{
|
|
5118
|
+
online: string[];
|
|
5119
|
+
offline: string[];
|
|
5120
|
+
clients: Array<{
|
|
5121
|
+
address?: string;
|
|
5122
|
+
socketId: string;
|
|
5123
|
+
rooms: string[];
|
|
5124
|
+
}>;
|
|
5125
|
+
}>;
|
|
5126
|
+
/**
|
|
5127
|
+
* Get list of users currently viewing a specific token
|
|
5128
|
+
*
|
|
5129
|
+
* @param tokenName - Token name
|
|
5130
|
+
* @param options - Optional filtering options
|
|
5131
|
+
*/
|
|
5132
|
+
getTokenViewers(tokenName: string, options?: {
|
|
5133
|
+
authenticated?: boolean;
|
|
5134
|
+
limit?: number;
|
|
5135
|
+
}): Promise<{
|
|
5136
|
+
clients: ConnectedClient[];
|
|
5137
|
+
count: number;
|
|
5138
|
+
authenticatedCount: number;
|
|
5139
|
+
}>;
|
|
5140
|
+
/**
|
|
5141
|
+
* Get list of currently online overseers/admins
|
|
5142
|
+
*/
|
|
5143
|
+
getOnlineOverseers(): Promise<{
|
|
5144
|
+
clients: ConnectedClient[];
|
|
5145
|
+
count: number;
|
|
5146
|
+
}>;
|
|
5147
|
+
/**
|
|
5148
|
+
* Ban a token from the platform (overseer only).
|
|
5149
|
+
*
|
|
5150
|
+
* When a token is banned:
|
|
5151
|
+
* - Hidden from ALL pool listings (including creator's profile)
|
|
5152
|
+
* - Comments blocked on banned tokens
|
|
5153
|
+
* - Live streaming blocked on banned tokens
|
|
5154
|
+
* - Chat messages blocked on banned tokens
|
|
5155
|
+
* - Trading NOT blocked (GalaChain handles trading independently)
|
|
5156
|
+
*
|
|
5157
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5158
|
+
*
|
|
5159
|
+
* @param options - Ban options including tokenName and optional reason
|
|
5160
|
+
* @returns Created ban data with token name
|
|
5161
|
+
* @throws ValidationError if parameters are invalid
|
|
5162
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5163
|
+
* @throws Error if token is already banned (409 Conflict)
|
|
5164
|
+
*
|
|
5165
|
+
* @since 6.x.0
|
|
5166
|
+
* @category TokenBan
|
|
5167
|
+
*
|
|
5168
|
+
* @example Ban a token with reason
|
|
5169
|
+
* ```typescript
|
|
5170
|
+
* const result = await sdk.banToken({
|
|
5171
|
+
* tokenName: 'scamtoken',
|
|
5172
|
+
* reason: 'Fraudulent project - reported by multiple users'
|
|
5173
|
+
* });
|
|
5174
|
+
* console.log('Banned token:', result.tokenName);
|
|
5175
|
+
* console.log('Ban ID:', result.ban.id);
|
|
5176
|
+
* console.log('Banned by:', result.ban.bannedBy);
|
|
5177
|
+
* ```
|
|
5178
|
+
*
|
|
5179
|
+
* @example Ban without reason
|
|
5180
|
+
* ```typescript
|
|
5181
|
+
* await sdk.banToken({ tokenName: 'problematictoken' });
|
|
5182
|
+
* ```
|
|
5183
|
+
*/
|
|
5184
|
+
banToken(options: BanTokenOptions): Promise<BanTokenResult>;
|
|
5185
|
+
/**
|
|
5186
|
+
* Remove a ban from a token (overseer only).
|
|
5187
|
+
*
|
|
5188
|
+
* When a token is unbanned:
|
|
5189
|
+
* - Restored to all pool listings
|
|
5190
|
+
* - Visible on creator's profile again
|
|
5191
|
+
* - Comments re-enabled
|
|
5192
|
+
* - Live streaming re-enabled
|
|
5193
|
+
* - Chat re-enabled
|
|
5194
|
+
*
|
|
5195
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5196
|
+
*
|
|
5197
|
+
* @param options - Unban options including tokenName
|
|
5198
|
+
* @returns Removal confirmation with token name
|
|
5199
|
+
* @throws ValidationError if token name is invalid
|
|
5200
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5201
|
+
* @throws Error if token is not banned (404 Not Found)
|
|
5202
|
+
*
|
|
5203
|
+
* @since 6.x.0
|
|
5204
|
+
* @category TokenBan
|
|
5205
|
+
*
|
|
5206
|
+
* @example
|
|
5207
|
+
* ```typescript
|
|
5208
|
+
* const result = await sdk.unbanToken({ tokenName: 'scamtoken' });
|
|
5209
|
+
* console.log('Removed ban:', result.removed); // true
|
|
5210
|
+
* console.log('Token:', result.tokenName);
|
|
5211
|
+
* ```
|
|
5212
|
+
*/
|
|
5213
|
+
unbanToken(options: UnbanTokenOptions): Promise<UnbanTokenResult>;
|
|
5214
|
+
/**
|
|
5215
|
+
* List all banned tokens (overseer only).
|
|
5216
|
+
*
|
|
5217
|
+
* Returns paginated list of banned tokens with full details.
|
|
5218
|
+
*
|
|
5219
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5220
|
+
*
|
|
5221
|
+
* @param options - Optional pagination and search parameters
|
|
5222
|
+
* @returns Paginated list of banned tokens
|
|
5223
|
+
* @throws ValidationError if pagination parameters are invalid
|
|
5224
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5225
|
+
*
|
|
5226
|
+
* @since 6.x.0
|
|
5227
|
+
* @category TokenBan
|
|
5228
|
+
*
|
|
5229
|
+
* @example List all banned tokens
|
|
5230
|
+
* ```typescript
|
|
5231
|
+
* const result = await sdk.listTokenBans();
|
|
5232
|
+
* console.log(`Total banned: ${result.pageInfo.totalCount}`);
|
|
5233
|
+
* for (const ban of result.items) {
|
|
5234
|
+
* console.log(`${ban.tokenName}: ${ban.reason || 'No reason'}`);
|
|
5235
|
+
* }
|
|
5236
|
+
* ```
|
|
5237
|
+
*
|
|
5238
|
+
* @example Search for specific tokens
|
|
5239
|
+
* ```typescript
|
|
5240
|
+
* const result = await sdk.listTokenBans({
|
|
5241
|
+
* search: 'scam',
|
|
5242
|
+
* pageSize: 10
|
|
5243
|
+
* });
|
|
5244
|
+
* ```
|
|
5245
|
+
*
|
|
5246
|
+
* @example Paginate through all bans (cursor-based)
|
|
5247
|
+
* ```typescript
|
|
5248
|
+
* let cursor: string | undefined;
|
|
5249
|
+
* let hasMore = true;
|
|
5250
|
+
* while (hasMore) {
|
|
5251
|
+
* const result = await sdk.listTokenBans({ cursor, pageSize: 20 });
|
|
5252
|
+
* console.log('Bans:', result.items.map(b => b.tokenName));
|
|
5253
|
+
* hasMore = result.pageInfo.hasNextPage;
|
|
5254
|
+
* cursor = result.pageInfo.nextCursor;
|
|
5255
|
+
* }
|
|
5256
|
+
* ```
|
|
5257
|
+
*/
|
|
5258
|
+
listTokenBans(options?: ListTokenBansOptions): Promise<TokenBanListResult>;
|
|
5259
|
+
/**
|
|
5260
|
+
* Get ban details for a specific token (overseer only).
|
|
5261
|
+
*
|
|
5262
|
+
* Returns ban data if banned, or indicates not banned.
|
|
5263
|
+
* Use this to get full ban details including reason and who banned it.
|
|
5264
|
+
*
|
|
5265
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5266
|
+
*
|
|
5267
|
+
* @param options - Options including tokenName
|
|
5268
|
+
* @returns Ban status with full details if banned
|
|
5269
|
+
* @throws ValidationError if token name is invalid
|
|
5270
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5271
|
+
*
|
|
5272
|
+
* @since 6.x.0
|
|
5273
|
+
* @category TokenBan
|
|
5274
|
+
*
|
|
5275
|
+
* @example
|
|
5276
|
+
* ```typescript
|
|
5277
|
+
* const status = await sdk.getTokenBan({ tokenName: 'sometoken' });
|
|
5278
|
+
* if (status.banned) {
|
|
5279
|
+
* console.log('Token is banned');
|
|
5280
|
+
* console.log('Reason:', status.ban?.reason);
|
|
5281
|
+
* console.log('Banned by:', status.ban?.bannedBy);
|
|
5282
|
+
* console.log('Banned at:', status.ban?.createdAt);
|
|
5283
|
+
* } else {
|
|
5284
|
+
* console.log('Token is not banned');
|
|
5285
|
+
* }
|
|
5286
|
+
* ```
|
|
5287
|
+
*/
|
|
5288
|
+
getTokenBan(options: GetTokenBanOptions): Promise<TokenBanStatusResult>;
|
|
5289
|
+
/**
|
|
5290
|
+
* Check if a token is banned (overseer only).
|
|
5291
|
+
*
|
|
5292
|
+
* Convenience alias for getTokenBan() - provided for semantic clarity.
|
|
5293
|
+
* Use when you just need to check if a token is banned.
|
|
5294
|
+
*
|
|
5295
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5296
|
+
*
|
|
5297
|
+
* @param options - Options including tokenName
|
|
5298
|
+
* @returns Ban status with full details if banned
|
|
5299
|
+
* @throws ValidationError if token name is invalid
|
|
5300
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5301
|
+
*
|
|
5302
|
+
* @since 6.x.0
|
|
5303
|
+
* @category TokenBan
|
|
5304
|
+
*
|
|
5305
|
+
* @example
|
|
5306
|
+
* ```typescript
|
|
5307
|
+
* const status = await sdk.isTokenBanned({ tokenName: 'sometoken' });
|
|
5308
|
+
* if (status.banned) {
|
|
5309
|
+
* console.log('Token is banned:', status.ban?.reason);
|
|
5310
|
+
* }
|
|
5311
|
+
* ```
|
|
5312
|
+
*/
|
|
5313
|
+
isTokenBanned(options: GetTokenBanOptions): Promise<TokenBanStatusResult>;
|
|
5314
|
+
/**
|
|
5315
|
+
* Get current AI moderation settings (overseer only).
|
|
5316
|
+
*
|
|
5317
|
+
* Returns configuration for AI-powered content moderation including:
|
|
5318
|
+
* - Whether AI moderation is enabled
|
|
5319
|
+
* - Moderation mode (DISABLED, ADVISORY)
|
|
5320
|
+
* - Provider configuration
|
|
5321
|
+
* - Tiered analysis settings (frames, resolution, escalation threshold)
|
|
5322
|
+
*
|
|
5323
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5324
|
+
*
|
|
5325
|
+
* @returns AI moderation settings
|
|
5326
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5327
|
+
*
|
|
5328
|
+
* @since 6.15.0
|
|
5329
|
+
* @category AIModeration
|
|
5330
|
+
*
|
|
5331
|
+
* @example
|
|
5332
|
+
* ```typescript
|
|
5333
|
+
* const { settings } = await sdk.getAIModerationSettings();
|
|
5334
|
+
* console.log('AI enabled:', settings.enabled);
|
|
5335
|
+
* console.log('Mode:', settings.mode);
|
|
5336
|
+
* console.log('Tiered analysis:', settings.tieredAnalysisEnabled);
|
|
5337
|
+
* console.log('Quick scan frames:', settings.quickScanFrames);
|
|
5338
|
+
* ```
|
|
5339
|
+
*/
|
|
5340
|
+
getAIModerationSettings(): Promise<GetAIModerationSettingsResult>;
|
|
5341
|
+
/**
|
|
5342
|
+
* Update AI moderation settings (overseer only).
|
|
5343
|
+
*
|
|
5344
|
+
* Configure AI-powered content moderation behavior.
|
|
5345
|
+
* Only provided fields will be updated.
|
|
5346
|
+
*
|
|
5347
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5348
|
+
*
|
|
5349
|
+
* @param options - Settings to update
|
|
5350
|
+
* @returns Updated AI moderation settings
|
|
5351
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5352
|
+
*
|
|
5353
|
+
* @since 6.15.0
|
|
5354
|
+
* @category AIModeration
|
|
5355
|
+
*
|
|
5356
|
+
* @example Enable AI moderation in advisory mode
|
|
5357
|
+
* ```typescript
|
|
5358
|
+
* const { settings } = await sdk.updateAIModerationSettings({
|
|
5359
|
+
* enabled: true,
|
|
5360
|
+
* mode: 'ADVISORY'
|
|
5361
|
+
* });
|
|
5362
|
+
* ```
|
|
5363
|
+
*
|
|
5364
|
+
* @example Change provider
|
|
5365
|
+
* ```typescript
|
|
5366
|
+
* const { settings } = await sdk.updateAIModerationSettings({
|
|
5367
|
+
* provider: 'claude'
|
|
5368
|
+
* });
|
|
5369
|
+
* ```
|
|
5370
|
+
*/
|
|
5371
|
+
updateAIModerationSettings(options: UpdateAIModerationSettingsOptions): Promise<UpdateAIModerationSettingsResult>;
|
|
5372
|
+
/**
|
|
5373
|
+
* Get AI moderation for a specific content flag (overseer only).
|
|
5374
|
+
*
|
|
5375
|
+
* Retrieves the AI moderation results for flagged content, including:
|
|
5376
|
+
* - Recommendation (NO_ACTION, REVIEW_REQUIRED, DELETE_CONTENT, BAN_USER)
|
|
5377
|
+
* - Confidence score (0-1)
|
|
5378
|
+
* - Detected categories with individual confidence scores
|
|
5379
|
+
* - Summary and reasoning for the recommendation
|
|
5380
|
+
* - Tiered analysis metadata (tier used, escalation info, token usage)
|
|
5381
|
+
*
|
|
5382
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5383
|
+
*
|
|
5384
|
+
* @param options - Options including flagId
|
|
5385
|
+
* @returns AI moderation data
|
|
5386
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5387
|
+
* @throws Error if moderation not found (404)
|
|
5388
|
+
*
|
|
5389
|
+
* @since 6.15.0
|
|
5390
|
+
* @category AIModeration
|
|
5391
|
+
*
|
|
5392
|
+
* @example
|
|
5393
|
+
* ```typescript
|
|
5394
|
+
* const { moderation } = await sdk.getAIModeration({ flagId: 123 });
|
|
5395
|
+
*
|
|
5396
|
+
* console.log('Status:', moderation.status);
|
|
5397
|
+
* console.log('Recommendation:', moderation.recommendation);
|
|
5398
|
+
* console.log('Confidence:', moderation.confidence);
|
|
5399
|
+
*
|
|
5400
|
+
* // Tiered analysis info
|
|
5401
|
+
* if (moderation.analysisTier) {
|
|
5402
|
+
* console.log('Tier used:', moderation.analysisTier);
|
|
5403
|
+
* console.log('Escalated:', moderation.escalatedFromQuick);
|
|
5404
|
+
* }
|
|
5405
|
+
* ```
|
|
5406
|
+
*/
|
|
5407
|
+
getAIModeration(options: GetAIModerationOptions): Promise<GetAIModerationResult>;
|
|
5408
|
+
/**
|
|
5409
|
+
* Trigger AI moderation for a content flag (overseer only).
|
|
5410
|
+
*
|
|
5411
|
+
* Queues flagged content for AI moderation. Moderation runs asynchronously -
|
|
5412
|
+
* use getAIModeration() to poll for results or listen for the
|
|
5413
|
+
* AI_MODERATION_COMPLETE WebSocket event.
|
|
5414
|
+
*
|
|
5415
|
+
* For video content with tiered analysis enabled:
|
|
5416
|
+
* - Quick scan runs first (5 frames at 480px)
|
|
5417
|
+
* - If concerns found, detailed scan runs (20 frames at 640px)
|
|
5418
|
+
*
|
|
5419
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5420
|
+
*
|
|
5421
|
+
* @param options - Options including flagId
|
|
5422
|
+
* @returns Queued status and message
|
|
5423
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5424
|
+
* @throws Error if flag not found (404) or moderation already exists (400)
|
|
5425
|
+
*
|
|
5426
|
+
* @since 6.15.0
|
|
5427
|
+
* @category AIModeration
|
|
5428
|
+
*
|
|
5429
|
+
* @example
|
|
5430
|
+
* ```typescript
|
|
5431
|
+
* const result = await sdk.triggerAIModeration({ flagId: 123 });
|
|
5432
|
+
* console.log('Queued:', result.queued);
|
|
5433
|
+
*
|
|
5434
|
+
* // Poll for results
|
|
5435
|
+
* let moderation;
|
|
5436
|
+
* while (!moderation || moderation.status === 'PROCESSING') {
|
|
5437
|
+
* await new Promise(r => setTimeout(r, 1000));
|
|
5438
|
+
* const result = await sdk.getAIModeration({ flagId: 123 });
|
|
5439
|
+
* moderation = result.moderation;
|
|
5440
|
+
* }
|
|
5441
|
+
* console.log('Done:', moderation.recommendation);
|
|
5442
|
+
* ```
|
|
5443
|
+
*/
|
|
5444
|
+
triggerAIModeration(options: TriggerAIModerationOptions): Promise<TriggerAIModerationResult>;
|
|
5445
|
+
/**
|
|
5446
|
+
* Get AI system status (overseer only).
|
|
5447
|
+
*
|
|
5448
|
+
* Returns the current status of the AI moderation system:
|
|
5449
|
+
* - Whether AI is enabled globally
|
|
5450
|
+
* - Current mode (DISABLED, ADVISORY)
|
|
5451
|
+
* - Provider availability (e.g., Claude API accessible)
|
|
5452
|
+
*
|
|
5453
|
+
* Useful for checking if AI moderation is operational before
|
|
5454
|
+
* triggering moderation for flagged content.
|
|
5455
|
+
*
|
|
5456
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5457
|
+
*
|
|
5458
|
+
* @returns AI system status
|
|
5459
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5460
|
+
*
|
|
5461
|
+
* @since 6.15.0
|
|
5462
|
+
* @category AIModeration
|
|
5463
|
+
*
|
|
5464
|
+
* @example
|
|
5465
|
+
* ```typescript
|
|
5466
|
+
* const { status } = await sdk.getAIModerationStatus();
|
|
5467
|
+
*
|
|
5468
|
+
* console.log('AI enabled:', status.enabled);
|
|
5469
|
+
* console.log('Provider available:', status.providerAvailable);
|
|
5470
|
+
*
|
|
5471
|
+
* // Only trigger moderation if system is operational
|
|
5472
|
+
* if (status.enabled && status.providerAvailable) {
|
|
5473
|
+
* await sdk.triggerAIModeration({ flagId: 123 });
|
|
5474
|
+
* }
|
|
5475
|
+
* ```
|
|
5476
|
+
*/
|
|
5477
|
+
getAIModerationStatus(): Promise<GetAIModerationStatusResult>;
|
|
5478
|
+
/**
|
|
5479
|
+
* Get the weekly challenge leaderboard.
|
|
5480
|
+
*
|
|
5481
|
+
* Returns tokens ranked by market cap increase for the current challenge week.
|
|
5482
|
+
* The challenge week runs Saturday to Friday, with Saturday being the baseline.
|
|
5483
|
+
*
|
|
5484
|
+
* **Public endpoint** - no authentication required.
|
|
5485
|
+
*
|
|
5486
|
+
* @param options - Options including limit (1-50, default 10)
|
|
5487
|
+
* @returns Leaderboard with ranked tokens, week dates, and snapshot info
|
|
5488
|
+
* @throws ValidationError if limit is out of range
|
|
5489
|
+
*
|
|
5490
|
+
* @since 9.0.0
|
|
5491
|
+
* @category WeeklyChallenge
|
|
5492
|
+
*
|
|
5493
|
+
* @example Get top 10 tokens in weekly challenge
|
|
5494
|
+
* ```typescript
|
|
5495
|
+
* const { leaderboard } = await sdk.getWeeklyChallengeLeaderboard({ limit: 10 });
|
|
5496
|
+
*
|
|
5497
|
+
* console.log(`Week: ${leaderboard.weekStart} to ${leaderboard.weekEnd}`);
|
|
5498
|
+
* console.log(`Total tokens: ${leaderboard.count}`);
|
|
5499
|
+
*
|
|
5500
|
+
* for (const token of leaderboard.tokens) {
|
|
5501
|
+
* console.log(`#${token.rank} ${token.symbol}: +${token.marketCapIncreaseGala} GALA`);
|
|
5502
|
+
* }
|
|
5503
|
+
* ```
|
|
5504
|
+
*/
|
|
5505
|
+
getWeeklyChallengeLeaderboard(options?: GetWeeklyChallengeOptions): Promise<GetWeeklyChallengeResult>;
|
|
5506
|
+
/**
|
|
5507
|
+
* Get weekly snapshot history for a specific token.
|
|
5508
|
+
*
|
|
5509
|
+
* Returns the last 4 weeks of snapshot data for tracking performance over time.
|
|
5510
|
+
*
|
|
5511
|
+
* **Public endpoint** - no authentication required.
|
|
5512
|
+
*
|
|
5513
|
+
* @param options - Options with vaultAddress
|
|
5514
|
+
* @returns Array of weekly snapshots with market cap and price data
|
|
5515
|
+
* @throws ValidationError if vaultAddress is missing or invalid
|
|
5516
|
+
*
|
|
5517
|
+
* @since 9.0.0
|
|
5518
|
+
* @category WeeklyChallenge
|
|
5519
|
+
*
|
|
5520
|
+
* @example Get token weekly history
|
|
5521
|
+
* ```typescript
|
|
5522
|
+
* const { snapshots } = await sdk.getTokenWeeklyHistory({
|
|
5523
|
+
* vaultAddress: 'eth|0xabc123...'
|
|
5524
|
+
* });
|
|
5525
|
+
*
|
|
5526
|
+
* for (const snap of snapshots) {
|
|
5527
|
+
* const date = new Date(snap.snapshotDate).toLocaleDateString();
|
|
5528
|
+
* console.log(`${date}: ${snap.marketCapGala} GALA`);
|
|
5529
|
+
* }
|
|
5530
|
+
*
|
|
5531
|
+
* // Calculate week-over-week change
|
|
5532
|
+
* if (snapshots.length >= 2) {
|
|
5533
|
+
* const current = parseFloat(snapshots[0].marketCapGala);
|
|
5534
|
+
* const previous = parseFloat(snapshots[1].marketCapGala);
|
|
5535
|
+
* const change = ((current - previous) / previous * 100).toFixed(2);
|
|
5536
|
+
* console.log(`Week-over-week change: ${change}%`);
|
|
5537
|
+
* }
|
|
5538
|
+
* ```
|
|
5539
|
+
*/
|
|
5540
|
+
getTokenWeeklyHistory(options: GetTokenWeeklyHistoryOptions): Promise<GetTokenWeeklyHistoryResult>;
|
|
5541
|
+
/**
|
|
5542
|
+
* Get oEmbed metadata for the home page.
|
|
5543
|
+
*
|
|
5544
|
+
* Returns oEmbed JSON data featuring the top/live token for social media previews.
|
|
5545
|
+
*
|
|
5546
|
+
* **Public endpoint** - no authentication required.
|
|
5547
|
+
*
|
|
5548
|
+
* @param options - Optional parameters
|
|
5549
|
+
* @returns oEmbed data with featured token info
|
|
5550
|
+
*
|
|
5551
|
+
* @since 9.0.0
|
|
5552
|
+
* @category OEmbed
|
|
5553
|
+
*
|
|
5554
|
+
* @example Get home page oEmbed
|
|
5555
|
+
* ```typescript
|
|
5556
|
+
* const { oembed } = await sdk.getHomeOEmbed();
|
|
5557
|
+
* console.log('Site:', oembed.provider_name);
|
|
5558
|
+
* console.log('Featured:', oembed.featuredToken);
|
|
5559
|
+
* ```
|
|
5560
|
+
*/
|
|
5561
|
+
getHomeOEmbed(options?: GetHomeOEmbedOptions): Promise<GetHomeOEmbedJsonResult>;
|
|
5562
|
+
/**
|
|
5563
|
+
* Get oEmbed metadata for a pool/token page.
|
|
5564
|
+
*
|
|
5565
|
+
* Returns oEmbed JSON data for a token's buy/sell page, including
|
|
5566
|
+
* live stream status if applicable.
|
|
5567
|
+
*
|
|
5568
|
+
* **Public endpoint** - no authentication required.
|
|
5569
|
+
*
|
|
5570
|
+
* @param options - Options with tokenName
|
|
5571
|
+
* @returns oEmbed data with token info and live status
|
|
5572
|
+
* @throws ValidationError if tokenName is missing or invalid
|
|
5573
|
+
*
|
|
5574
|
+
* @since 9.0.0
|
|
5575
|
+
* @category OEmbed
|
|
5576
|
+
*
|
|
5577
|
+
* @example Get pool oEmbed
|
|
5578
|
+
* ```typescript
|
|
5579
|
+
* const { oembed } = await sdk.getPoolOEmbed({ tokenName: 'anime' });
|
|
5580
|
+
* console.log('Token:', oembed.tokenName);
|
|
5581
|
+
* console.log('Symbol:', oembed.symbol);
|
|
5582
|
+
* console.log('Live:', oembed.isLive);
|
|
5583
|
+
* ```
|
|
5584
|
+
*/
|
|
5585
|
+
getPoolOEmbed(options: GetPoolOEmbedOptions): Promise<GetPoolOEmbedJsonResult>;
|
|
5586
|
+
/**
|
|
5587
|
+
* Get oEmbed metadata for a user profile page.
|
|
5588
|
+
*
|
|
5589
|
+
* Returns oEmbed JSON data for a user's profile including stats.
|
|
5590
|
+
*
|
|
5591
|
+
* **Public endpoint** - no authentication required.
|
|
5592
|
+
*
|
|
5593
|
+
* @param options - Options with address
|
|
5594
|
+
* @returns oEmbed data with user stats
|
|
5595
|
+
* @throws ValidationError if address is missing or invalid
|
|
5596
|
+
*
|
|
5597
|
+
* @since 9.0.0
|
|
5598
|
+
* @category OEmbed
|
|
5599
|
+
*
|
|
5600
|
+
* @example Get profile oEmbed
|
|
5601
|
+
* ```typescript
|
|
5602
|
+
* const { oembed } = await sdk.getProfileOEmbed({ address: 'eth|0x123...' });
|
|
5603
|
+
* console.log('User:', oembed.displayName);
|
|
5604
|
+
* console.log('Tokens created:', oembed.tokensCreated);
|
|
5605
|
+
* console.log('Volume:', oembed.totalVolumeGala);
|
|
5606
|
+
* ```
|
|
5607
|
+
*/
|
|
5608
|
+
getProfileOEmbed(options: GetProfileOEmbedOptions): Promise<GetProfileOEmbedJsonResult>;
|
|
5609
|
+
/**
|
|
5610
|
+
* Get platform-wide statistics.
|
|
5611
|
+
*
|
|
5612
|
+
* Returns aggregated platform metrics including:
|
|
5613
|
+
* - GALA trading volume over 1h, 24h, 7d
|
|
5614
|
+
* - Total number of tokens on the platform
|
|
5615
|
+
*
|
|
5616
|
+
* **Caching:** Backend caches stats for 3 minutes.
|
|
5617
|
+
*
|
|
5618
|
+
* **Public endpoint** - no authentication required.
|
|
5619
|
+
*
|
|
5620
|
+
* @returns Platform statistics
|
|
5621
|
+
*
|
|
5622
|
+
* @since 9.0.0
|
|
5623
|
+
* @category PlatformStats
|
|
5624
|
+
*
|
|
5625
|
+
* @example Get platform stats
|
|
5626
|
+
* ```typescript
|
|
5627
|
+
* const { stats } = await sdk.getPlatformStats();
|
|
5628
|
+
*
|
|
5629
|
+
* // Display volume in millions
|
|
5630
|
+
* const vol24h = parseFloat(stats.galaVolume24h);
|
|
5631
|
+
* console.log(`24h Volume: ${(vol24h / 1_000_000).toFixed(2)}M GALA`);
|
|
5632
|
+
*
|
|
5633
|
+
* // Display token count
|
|
5634
|
+
* console.log(`${stats.totalTokens} tokens on platform`);
|
|
5635
|
+
*
|
|
5636
|
+
* // Display timestamp
|
|
5637
|
+
* const updated = new Date(stats.timestamp);
|
|
5638
|
+
* console.log(`Last updated: ${updated.toLocaleString()}`);
|
|
5639
|
+
* ```
|
|
5640
|
+
*/
|
|
5641
|
+
getPlatformStats(): Promise<GetPlatformStatsResult>;
|
|
5642
|
+
/**
|
|
5643
|
+
* Register a push notification device token.
|
|
5644
|
+
*
|
|
5645
|
+
* Associates a push token (FCM or APNs) with the authenticated user.
|
|
5646
|
+
* If the token already exists, it updates the associated device info.
|
|
5647
|
+
*
|
|
5648
|
+
* Authentication: Requires JWT auth (call sdk.login() first).
|
|
5649
|
+
*
|
|
5650
|
+
* @param params - Registration parameters (token, platform, optional deviceId)
|
|
5651
|
+
* @returns Registration result
|
|
5652
|
+
*
|
|
5653
|
+
* @example
|
|
5654
|
+
* ```typescript
|
|
5655
|
+
* const result = await sdk.registerPushToken({
|
|
5656
|
+
* token: 'fcm-device-token-abc123',
|
|
5657
|
+
* platform: 'android',
|
|
5658
|
+
* deviceId: 'pixel-7-main',
|
|
5659
|
+
* });
|
|
5660
|
+
* console.log('Registered:', result.registered);
|
|
5661
|
+
* ```
|
|
5662
|
+
*/
|
|
5663
|
+
registerPushToken(params: RegisterPushTokenParams): Promise<RegisterPushTokenResult>;
|
|
5664
|
+
/**
|
|
5665
|
+
* Unregister a push notification device token.
|
|
5666
|
+
*
|
|
5667
|
+
* Deactivates a push token so the device no longer receives notifications.
|
|
5668
|
+
*
|
|
5669
|
+
* Authentication: Requires JWT auth (call sdk.login() first).
|
|
5670
|
+
*
|
|
5671
|
+
* @param token - The push token to unregister
|
|
5672
|
+
* @returns Unregistration result
|
|
5673
|
+
*
|
|
5674
|
+
* @example
|
|
5675
|
+
* ```typescript
|
|
5676
|
+
* const result = await sdk.unregisterPushToken('fcm-device-token-abc123');
|
|
5677
|
+
* console.log('Unregistered:', result.unregistered);
|
|
5678
|
+
* ```
|
|
5679
|
+
*/
|
|
5680
|
+
unregisterPushToken(token: string): Promise<UnregisterPushTokenResult>;
|
|
5681
|
+
/**
|
|
5682
|
+
* Get notification preferences for the authenticated user.
|
|
5683
|
+
*
|
|
5684
|
+
* Returns the current push notification preference settings.
|
|
5685
|
+
*
|
|
5686
|
+
* Authentication: Requires JWT auth (call sdk.login() first).
|
|
5687
|
+
*
|
|
5688
|
+
* @returns Current notification preferences
|
|
5689
|
+
*
|
|
5690
|
+
* @example
|
|
4459
5691
|
* ```typescript
|
|
4460
|
-
* const
|
|
4461
|
-
*
|
|
4462
|
-
*
|
|
4463
|
-
*
|
|
4464
|
-
*
|
|
4465
|
-
* console.log('Banned at:', status.ban?.createdAt);
|
|
4466
|
-
* } else {
|
|
4467
|
-
* console.log('Token is not banned');
|
|
4468
|
-
* }
|
|
5692
|
+
* const { preferences } = await sdk.fetchNotificationPreferences();
|
|
5693
|
+
* console.log('Trades:', preferences.tradesEnabled);
|
|
5694
|
+
* console.log('Streams:', preferences.streamsEnabled);
|
|
5695
|
+
* console.log('Chat:', preferences.chatEnabled);
|
|
5696
|
+
* console.log('System:', preferences.systemEnabled);
|
|
4469
5697
|
* ```
|
|
4470
5698
|
*/
|
|
4471
|
-
|
|
5699
|
+
fetchNotificationPreferences(): Promise<GetNotificationPreferencesResult>;
|
|
4472
5700
|
/**
|
|
4473
|
-
*
|
|
5701
|
+
* Update notification preferences for the authenticated user.
|
|
4474
5702
|
*
|
|
4475
|
-
*
|
|
4476
|
-
* Use when you just need to check if a token is banned.
|
|
5703
|
+
* Partial update - only provided fields are modified, others remain unchanged.
|
|
4477
5704
|
*
|
|
4478
|
-
* Requires
|
|
5705
|
+
* Authentication: Requires JWT auth (call sdk.login() first).
|
|
4479
5706
|
*
|
|
4480
|
-
* @param
|
|
4481
|
-
* @returns
|
|
4482
|
-
* @throws ValidationError if token name is invalid
|
|
4483
|
-
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5707
|
+
* @param params - Preference fields to update
|
|
5708
|
+
* @returns Updated notification preferences
|
|
4484
5709
|
*
|
|
4485
|
-
* @
|
|
4486
|
-
*
|
|
5710
|
+
* @example
|
|
5711
|
+
* ```typescript
|
|
5712
|
+
* // Disable chat notifications only
|
|
5713
|
+
* const { preferences } = await sdk.updateNotificationPreferences({
|
|
5714
|
+
* chatEnabled: false,
|
|
5715
|
+
* });
|
|
5716
|
+
* console.log('Chat now:', preferences.chatEnabled); // false
|
|
5717
|
+
* ```
|
|
5718
|
+
*/
|
|
5719
|
+
updateNotificationPreferences(params: UpdateNotificationPreferencesParams): Promise<UpdateNotificationPreferencesResult>;
|
|
5720
|
+
/**
|
|
5721
|
+
* Get client feature flags.
|
|
5722
|
+
*
|
|
5723
|
+
* Returns feature flag overrides for the native mobile app.
|
|
5724
|
+
* No authentication required (public endpoint).
|
|
5725
|
+
*
|
|
5726
|
+
* @returns Client feature flags
|
|
4487
5727
|
*
|
|
4488
5728
|
* @example
|
|
4489
5729
|
* ```typescript
|
|
4490
|
-
* const
|
|
4491
|
-
*
|
|
4492
|
-
*
|
|
4493
|
-
*
|
|
5730
|
+
* const { flags } = await sdk.fetchClientFlags();
|
|
5731
|
+
* console.log('Push notifications:', flags.PUSH_NOTIFICATIONS);
|
|
5732
|
+
* console.log('Dark mode:', flags.DARK_MODE);
|
|
5733
|
+
* console.log('DEX trading:', flags.DEX_TRADING);
|
|
4494
5734
|
* ```
|
|
4495
5735
|
*/
|
|
4496
|
-
|
|
5736
|
+
fetchClientFlags(): Promise<GetClientFlagsResult>;
|
|
4497
5737
|
/**
|
|
4498
5738
|
* Add a reaction to a pool message (chat or comment).
|
|
4499
5739
|
*
|
|
@@ -4655,8 +5895,7 @@ export declare class LaunchpadSDK {
|
|
|
4655
5895
|
* ```typescript
|
|
4656
5896
|
* const result = await sdk.getComments({
|
|
4657
5897
|
* userAddress: 'eth|0x123...',
|
|
4658
|
-
*
|
|
4659
|
-
* limit: 20
|
|
5898
|
+
* pageSize: 20
|
|
4660
5899
|
* });
|
|
4661
5900
|
* ```
|
|
4662
5901
|
*/
|
|
@@ -4754,8 +5993,7 @@ export declare class LaunchpadSDK {
|
|
|
4754
5993
|
* ```typescript
|
|
4755
5994
|
* const result = await sdk.getChatMessages({
|
|
4756
5995
|
* userAddress: 'eth|0x123...',
|
|
4757
|
-
*
|
|
4758
|
-
* limit: 50
|
|
5996
|
+
* pageSize: 50
|
|
4759
5997
|
* });
|
|
4760
5998
|
* ```
|
|
4761
5999
|
*/
|
|
@@ -4782,51 +6020,425 @@ export declare class LaunchpadSDK {
|
|
|
4782
6020
|
* console.log('Message sent:', result.message.id);
|
|
4783
6021
|
* ```
|
|
4784
6022
|
*/
|
|
4785
|
-
sendChatMessage(options: CreateChatMessageOptions): Promise<CreateChatMessageResult>;
|
|
6023
|
+
sendChatMessage(options: CreateChatMessageOptions): Promise<CreateChatMessageResult>;
|
|
6024
|
+
/**
|
|
6025
|
+
* Update a chat message.
|
|
6026
|
+
*
|
|
6027
|
+
* Requires JWT authentication. Only the message author can update.
|
|
6028
|
+
*
|
|
6029
|
+
* @param id Message ID to update (format: chat-{timestamp}-{uuid})
|
|
6030
|
+
* @param options Update options including new content
|
|
6031
|
+
* @returns The updated chat message
|
|
6032
|
+
* @throws ValidationError if ID or content is invalid
|
|
6033
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6034
|
+
*
|
|
6035
|
+
* @since 6.2.0
|
|
6036
|
+
* @category Chat
|
|
6037
|
+
*
|
|
6038
|
+
* @example Update a chat message
|
|
6039
|
+
* ```typescript
|
|
6040
|
+
* const result = await sdk.updateChatMessage(
|
|
6041
|
+
* 'chat-1734445623456-550e8400-e29b-41d4-a716-446655440000',
|
|
6042
|
+
* { content: 'Updated message' }
|
|
6043
|
+
* );
|
|
6044
|
+
* console.log('Updated:', result.message.updatedAt);
|
|
6045
|
+
* ```
|
|
6046
|
+
*/
|
|
6047
|
+
updateChatMessage(id: string, options: UpdateChatMessageOptions): Promise<UpdateChatMessageResult>;
|
|
6048
|
+
/**
|
|
6049
|
+
* Delete a chat message.
|
|
6050
|
+
*
|
|
6051
|
+
* Supports both JWT and API key authentication.
|
|
6052
|
+
* Authorization: message author, pool owner, or MANAGE_CHAT permission.
|
|
6053
|
+
*
|
|
6054
|
+
* @param id Message ID to delete (format: chat-{timestamp}-{uuid})
|
|
6055
|
+
* @throws ValidationError if ID format is invalid
|
|
6056
|
+
* @throws ConfigurationError if neither JWT nor API key is configured
|
|
6057
|
+
*
|
|
6058
|
+
* @since 6.2.0
|
|
6059
|
+
* @category Chat
|
|
6060
|
+
*
|
|
6061
|
+
* @example Delete a chat message
|
|
6062
|
+
* ```typescript
|
|
6063
|
+
* await sdk.deleteChatMessage('chat-1734445623456-550e8400-e29b-41d4-a716-446655440000');
|
|
6064
|
+
* console.log('Message deleted');
|
|
6065
|
+
* ```
|
|
6066
|
+
*/
|
|
6067
|
+
deleteChatMessage(id: string): Promise<void>;
|
|
6068
|
+
/**
|
|
6069
|
+
* Fetch messages with optional filtering by type, token, or user.
|
|
6070
|
+
*
|
|
6071
|
+
* Unified endpoint for all message types (CHAT and COMMENT).
|
|
6072
|
+
* Public endpoint - no authentication required.
|
|
6073
|
+
* At least one of type, tokenName, or userAddress must be provided.
|
|
6074
|
+
*
|
|
6075
|
+
* @param options Query options including type/tokenName/userAddress and pagination
|
|
6076
|
+
* @returns Paginated list of messages
|
|
6077
|
+
* @throws ValidationError if no filter is provided or options are invalid
|
|
6078
|
+
*
|
|
6079
|
+
* @since 7.0.0
|
|
6080
|
+
* @category Messages
|
|
6081
|
+
*
|
|
6082
|
+
* @example Get chat messages for a token
|
|
6083
|
+
* ```typescript
|
|
6084
|
+
* const { messages, pageInfo } = await sdk.fetchMessages({
|
|
6085
|
+
* type: 'CHAT',
|
|
6086
|
+
* tokenName: 'anime'
|
|
6087
|
+
* });
|
|
6088
|
+
* console.log(`Found ${pageInfo.totalCount} chat messages`);
|
|
6089
|
+
* ```
|
|
6090
|
+
*
|
|
6091
|
+
* @example Get comments for a token
|
|
6092
|
+
* ```typescript
|
|
6093
|
+
* const { messages, pageInfo } = await sdk.fetchMessages({
|
|
6094
|
+
* type: 'COMMENT',
|
|
6095
|
+
* tokenName: 'anime'
|
|
6096
|
+
* });
|
|
6097
|
+
* ```
|
|
6098
|
+
*
|
|
6099
|
+
* @example Get all messages from a user with pagination
|
|
6100
|
+
* ```typescript
|
|
6101
|
+
* const result = await sdk.fetchMessages({
|
|
6102
|
+
* userAddress: 'eth|0x123...',
|
|
6103
|
+
* pageSize: 20,
|
|
6104
|
+
* cursor: 'next_cursor'
|
|
6105
|
+
* });
|
|
6106
|
+
* ```
|
|
6107
|
+
*/
|
|
6108
|
+
fetchMessages(options: FetchMessagesOptions): Promise<FetchMessagesResult>;
|
|
6109
|
+
/**
|
|
6110
|
+
* Create a new message (chat or comment).
|
|
6111
|
+
*
|
|
6112
|
+
* Requires JWT authentication.
|
|
6113
|
+
*
|
|
6114
|
+
* @param options Create options including type, tokenName, and content
|
|
6115
|
+
* @returns The created message
|
|
6116
|
+
* @throws ValidationError if options are invalid
|
|
6117
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6118
|
+
*
|
|
6119
|
+
* @since 7.0.0
|
|
6120
|
+
* @category Messages
|
|
6121
|
+
*
|
|
6122
|
+
* @example Create a chat message
|
|
6123
|
+
* ```typescript
|
|
6124
|
+
* const result = await sdk.createMessage({
|
|
6125
|
+
* type: 'CHAT',
|
|
6126
|
+
* tokenName: 'anime',
|
|
6127
|
+
* content: 'Hello world!'
|
|
6128
|
+
* });
|
|
6129
|
+
* console.log('Created message ID:', result.message.id);
|
|
6130
|
+
* ```
|
|
6131
|
+
*
|
|
6132
|
+
* @example Create a comment
|
|
6133
|
+
* ```typescript
|
|
6134
|
+
* const result = await sdk.createMessage({
|
|
6135
|
+
* type: 'COMMENT',
|
|
6136
|
+
* tokenName: 'anime',
|
|
6137
|
+
* content: 'Great project!'
|
|
6138
|
+
* });
|
|
6139
|
+
* ```
|
|
6140
|
+
*/
|
|
6141
|
+
createMessage(options: CreateMessageOptions): Promise<CreateMessageResult>;
|
|
6142
|
+
/**
|
|
6143
|
+
* Update a message's content.
|
|
6144
|
+
*
|
|
6145
|
+
* Requires JWT authentication. Only the message author can update.
|
|
6146
|
+
*
|
|
6147
|
+
* @param id Message ID to update
|
|
6148
|
+
* @param options Update options including new content
|
|
6149
|
+
* @returns The updated message
|
|
6150
|
+
* @throws ValidationError if ID or content is invalid
|
|
6151
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6152
|
+
*
|
|
6153
|
+
* @since 7.0.0
|
|
6154
|
+
* @category Messages
|
|
6155
|
+
*
|
|
6156
|
+
* @example Update a message
|
|
6157
|
+
* ```typescript
|
|
6158
|
+
* const result = await sdk.updateMessage('msg-1234567890123-abc...', {
|
|
6159
|
+
* content: 'Updated message content'
|
|
6160
|
+
* });
|
|
6161
|
+
* console.log('Updated at:', result.message.updatedAt);
|
|
6162
|
+
* ```
|
|
6163
|
+
*/
|
|
6164
|
+
updateMessage(id: string, options: UpdateMessageOptions): Promise<UpdateMessageResult>;
|
|
6165
|
+
/**
|
|
6166
|
+
* Delete a message.
|
|
6167
|
+
*
|
|
6168
|
+
* Requires authentication (JWT or API key).
|
|
6169
|
+
* Authorization: message author, token owner, moderator, or admin.
|
|
6170
|
+
*
|
|
6171
|
+
* @param id Message ID to delete
|
|
6172
|
+
* @returns Success indicator
|
|
6173
|
+
* @throws ValidationError if ID is invalid
|
|
6174
|
+
* @throws ConfigurationError if neither JWT nor API key is configured
|
|
6175
|
+
*
|
|
6176
|
+
* @since 7.0.0
|
|
6177
|
+
* @category Messages
|
|
6178
|
+
*
|
|
6179
|
+
* @example Delete a message
|
|
6180
|
+
* ```typescript
|
|
6181
|
+
* await sdk.deleteMessage('msg-1234567890123-abc...');
|
|
6182
|
+
* console.log('Message deleted');
|
|
6183
|
+
* ```
|
|
6184
|
+
*/
|
|
6185
|
+
deleteMessage(id: string): Promise<DeleteMessageResult>;
|
|
6186
|
+
/**
|
|
6187
|
+
* Get the currently pinned message for a token.
|
|
6188
|
+
*
|
|
6189
|
+
* Public endpoint - no authentication required.
|
|
6190
|
+
*
|
|
6191
|
+
* @param tokenName Token name to get pinned message for
|
|
6192
|
+
* @returns The pinned message or null if none
|
|
6193
|
+
*
|
|
6194
|
+
* @since 7.0.0
|
|
6195
|
+
* @category Messages
|
|
6196
|
+
*
|
|
6197
|
+
* @example Get pinned message
|
|
6198
|
+
* ```typescript
|
|
6199
|
+
* const result = await sdk.getPinnedMessage('anime');
|
|
6200
|
+
* if (result.message) {
|
|
6201
|
+
* console.log('Pinned:', result.message.content);
|
|
6202
|
+
* } else {
|
|
6203
|
+
* console.log('No message pinned');
|
|
6204
|
+
* }
|
|
6205
|
+
* ```
|
|
6206
|
+
*/
|
|
6207
|
+
getPinnedMessage(tokenName: string): Promise<GetPinnedMessageResult>;
|
|
6208
|
+
/**
|
|
6209
|
+
* Pin a message.
|
|
6210
|
+
*
|
|
6211
|
+
* Requires JWT authentication with owner or moderator role.
|
|
6212
|
+
* Only one message can be pinned per token at a time.
|
|
6213
|
+
*
|
|
6214
|
+
* @param id Message ID to pin
|
|
6215
|
+
* @returns Success indicator
|
|
6216
|
+
* @throws ValidationError if ID is invalid
|
|
6217
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6218
|
+
*
|
|
6219
|
+
* @since 7.0.0
|
|
6220
|
+
* @category Messages
|
|
6221
|
+
*
|
|
6222
|
+
* @example Pin a message
|
|
6223
|
+
* ```typescript
|
|
6224
|
+
* await sdk.pinMessage('msg-1234567890123-abc...');
|
|
6225
|
+
* console.log('Message pinned');
|
|
6226
|
+
* ```
|
|
6227
|
+
*/
|
|
6228
|
+
pinMessage(id: string): Promise<PinMessageResult>;
|
|
6229
|
+
/**
|
|
6230
|
+
* Unpin a message.
|
|
6231
|
+
*
|
|
6232
|
+
* Requires JWT authentication with owner or moderator role.
|
|
6233
|
+
*
|
|
6234
|
+
* @param id Message ID to unpin
|
|
6235
|
+
* @returns Success indicator
|
|
6236
|
+
* @throws ValidationError if ID is invalid
|
|
6237
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6238
|
+
*
|
|
6239
|
+
* @since 7.0.0
|
|
6240
|
+
* @category Messages
|
|
6241
|
+
*
|
|
6242
|
+
* @example Unpin a message
|
|
6243
|
+
* ```typescript
|
|
6244
|
+
* await sdk.unpinMessage('msg-1234567890123-abc...');
|
|
6245
|
+
* console.log('Message unpinned');
|
|
6246
|
+
* ```
|
|
6247
|
+
*/
|
|
6248
|
+
unpinMessage(id: string): Promise<PinMessageResult>;
|
|
6249
|
+
/**
|
|
6250
|
+
* Get platform-wide message statistics.
|
|
6251
|
+
*
|
|
6252
|
+
* Requires admin API key or overseer JWT (AdminOrOverseerGuard).
|
|
6253
|
+
*
|
|
6254
|
+
* Returns aggregated message metrics including:
|
|
6255
|
+
* - Total message count
|
|
6256
|
+
* - Today's message count
|
|
6257
|
+
* - Unique users and tokens
|
|
6258
|
+
* - Message counts by type (CHAT_MESSAGE, COMMENT)
|
|
6259
|
+
*
|
|
6260
|
+
* @returns Platform-wide message statistics
|
|
6261
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
6262
|
+
*
|
|
6263
|
+
* @since 9.1.0
|
|
6264
|
+
* @category Messages
|
|
6265
|
+
*
|
|
6266
|
+
* @example Get message statistics
|
|
6267
|
+
* ```typescript
|
|
6268
|
+
* const stats = await sdk.getMessageStats();
|
|
6269
|
+
* console.log('Total messages:', stats.totalMessages);
|
|
6270
|
+
* console.log('Today:', stats.todayMessages);
|
|
6271
|
+
* console.log('Unique users:', stats.uniqueUsers);
|
|
6272
|
+
* console.log('Unique tokens:', stats.uniqueTokens);
|
|
6273
|
+
* console.log('By type:', stats.messagesByType);
|
|
6274
|
+
* ```
|
|
6275
|
+
*/
|
|
6276
|
+
getMessageStats(): Promise<MessageStats>;
|
|
6277
|
+
/**
|
|
6278
|
+
* Get current platform configuration.
|
|
6279
|
+
*
|
|
6280
|
+
* Public endpoint - no authentication required.
|
|
6281
|
+
*
|
|
6282
|
+
* Returns global platform settings affecting all tokens and streams:
|
|
6283
|
+
* - Whether streaming is enabled globally
|
|
6284
|
+
* - Whether chat is enabled globally
|
|
6285
|
+
* - Whether comments are enabled globally
|
|
6286
|
+
* - Whether webhooks are enabled globally
|
|
6287
|
+
*
|
|
6288
|
+
* @returns Current platform configuration
|
|
6289
|
+
*
|
|
6290
|
+
* @since 7.3.0
|
|
6291
|
+
* @category Configuration
|
|
6292
|
+
*
|
|
6293
|
+
* @example Get platform configuration
|
|
6294
|
+
* ```typescript
|
|
6295
|
+
* const config = await sdk.getPlatformConfig();
|
|
6296
|
+
*
|
|
6297
|
+
* if (!config.streamingEnabled) {
|
|
6298
|
+
* console.log('Platform streaming is disabled');
|
|
6299
|
+
* }
|
|
6300
|
+
*
|
|
6301
|
+
* if (!config.chatEnabled) {
|
|
6302
|
+
* console.log('Platform chat is disabled');
|
|
6303
|
+
* }
|
|
6304
|
+
* ```
|
|
6305
|
+
*/
|
|
6306
|
+
getPlatformConfig(): Promise<PlatformConfig>;
|
|
6307
|
+
/**
|
|
6308
|
+
* Update platform configuration.
|
|
6309
|
+
*
|
|
6310
|
+
* Requires JWT authentication with admin or overseer role.
|
|
6311
|
+
*
|
|
6312
|
+
* Performs a partial update - only provide fields to change.
|
|
6313
|
+
* Other fields remain unchanged.
|
|
6314
|
+
*
|
|
6315
|
+
* @param options - Configuration fields to update
|
|
6316
|
+
* @returns Updated platform configuration
|
|
6317
|
+
* @throws ValidationError if options are invalid or missing
|
|
6318
|
+
* @throws ConfigurationError if JWT auth is not configured
|
|
6319
|
+
* @throws Error if user is not authorized (not admin or overseer)
|
|
6320
|
+
*
|
|
6321
|
+
* @since 7.3.0
|
|
6322
|
+
* @category Configuration
|
|
6323
|
+
*
|
|
6324
|
+
* @example Disable streaming platform-wide
|
|
6325
|
+
* ```typescript
|
|
6326
|
+
* const updated = await sdk.updatePlatformConfig({
|
|
6327
|
+
* streamingEnabled: false
|
|
6328
|
+
* });
|
|
6329
|
+
* console.log('Streaming disabled globally');
|
|
6330
|
+
* ```
|
|
6331
|
+
*
|
|
6332
|
+
* @example Disable multiple features
|
|
6333
|
+
* ```typescript
|
|
6334
|
+
* const updated = await sdk.updatePlatformConfig({
|
|
6335
|
+
* streamingEnabled: false,
|
|
6336
|
+
* chatEnabled: false,
|
|
6337
|
+
* commentsEnabled: false
|
|
6338
|
+
* });
|
|
6339
|
+
* ```
|
|
6340
|
+
*/
|
|
6341
|
+
updatePlatformConfig(options: UpdatePlatformConfigOptions): Promise<PlatformConfig>;
|
|
6342
|
+
/**
|
|
6343
|
+
* Get the restricted token names content (Overseer only).
|
|
6344
|
+
*
|
|
6345
|
+
* Returns a newline-separated list of restricted words that cannot be used in token names.
|
|
6346
|
+
*
|
|
6347
|
+
* Requires JWT authentication with overseer role.
|
|
6348
|
+
*
|
|
6349
|
+
* @returns Promise<GetRestrictedNamesResult> Success/error with content
|
|
6350
|
+
*
|
|
6351
|
+
* @since 7.0.0
|
|
6352
|
+
* @category Configuration
|
|
6353
|
+
*
|
|
6354
|
+
* @example
|
|
6355
|
+
* ```typescript
|
|
6356
|
+
* const result = await sdk.getRestrictedNames();
|
|
6357
|
+
* if (result.success) {
|
|
6358
|
+
* const words = result.data.content.split('\n').filter(w => w.trim());
|
|
6359
|
+
* console.log('Restricted words:', words);
|
|
6360
|
+
* }
|
|
6361
|
+
* ```
|
|
6362
|
+
*/
|
|
6363
|
+
getRestrictedNames(): Promise<GetRestrictedNamesResult>;
|
|
6364
|
+
/**
|
|
6365
|
+
* Update the restricted token names content (Overseer only).
|
|
6366
|
+
*
|
|
6367
|
+
* Replaces the entire list with newline-separated words.
|
|
6368
|
+
* Contains offensive words - not exposed publicly.
|
|
6369
|
+
*
|
|
6370
|
+
* Requires JWT authentication with overseer role.
|
|
6371
|
+
*
|
|
6372
|
+
* @param request Request containing newline-separated content
|
|
6373
|
+
* @returns Promise<UpdateRestrictedNamesResult> Success or error
|
|
6374
|
+
* @throws {ValidationError} If content is not provided
|
|
6375
|
+
*
|
|
6376
|
+
* @since 7.0.0
|
|
6377
|
+
* @category Configuration
|
|
6378
|
+
*
|
|
6379
|
+
* @example
|
|
6380
|
+
* ```typescript
|
|
6381
|
+
* const result = await sdk.updateRestrictedNames({
|
|
6382
|
+
* content: 'scam\nrug\nfake\nfraud\n...'
|
|
6383
|
+
* });
|
|
6384
|
+
* if (result.success) {
|
|
6385
|
+
* console.log('Restricted names updated');
|
|
6386
|
+
* }
|
|
6387
|
+
* ```
|
|
6388
|
+
*/
|
|
6389
|
+
updateRestrictedNames(request: UpdateRestrictedNamesRequest): Promise<UpdateRestrictedNamesResult>;
|
|
4786
6390
|
/**
|
|
4787
|
-
* Update
|
|
6391
|
+
* Update token configuration (chat/comments enabled status).
|
|
4788
6392
|
*
|
|
4789
|
-
* Requires JWT authentication
|
|
6393
|
+
* Requires JWT authentication with owner or admin role.
|
|
4790
6394
|
*
|
|
4791
|
-
* @param
|
|
4792
|
-
* @param
|
|
4793
|
-
* @returns
|
|
4794
|
-
* @throws ValidationError if
|
|
6395
|
+
* @param tokenName Token name to configure
|
|
6396
|
+
* @param config Configuration options
|
|
6397
|
+
* @returns Promise<void>
|
|
6398
|
+
* @throws ValidationError if options are invalid
|
|
4795
6399
|
* @throws ConfigurationError if JWT is not configured
|
|
4796
6400
|
*
|
|
4797
|
-
* @since
|
|
4798
|
-
* @category
|
|
6401
|
+
* @since 7.0.0
|
|
6402
|
+
* @category Pools
|
|
4799
6403
|
*
|
|
4800
|
-
* @example
|
|
6404
|
+
* @example Disable chat for a token
|
|
4801
6405
|
* ```typescript
|
|
4802
|
-
*
|
|
4803
|
-
* 'chat-1734445623456-550e8400-e29b-41d4-a716-446655440000',
|
|
4804
|
-
* { content: 'Updated message' }
|
|
4805
|
-
* );
|
|
4806
|
-
* console.log('Updated:', result.message.updatedAt);
|
|
6406
|
+
* await sdk.updateTokenConfig('anime', { messagesEnabled: false });
|
|
4807
6407
|
* ```
|
|
4808
|
-
*/
|
|
4809
|
-
updateChatMessage(id: string, options: UpdateChatMessageOptions): Promise<UpdateChatMessageResult>;
|
|
4810
|
-
/**
|
|
4811
|
-
* Delete a chat message.
|
|
4812
6408
|
*
|
|
4813
|
-
*
|
|
4814
|
-
*
|
|
6409
|
+
* @example Enable comments for a token
|
|
6410
|
+
* ```typescript
|
|
6411
|
+
* await sdk.updateTokenConfig('anime', { commentsEnabled: true });
|
|
6412
|
+
* ```
|
|
4815
6413
|
*
|
|
4816
|
-
* @
|
|
4817
|
-
*
|
|
4818
|
-
*
|
|
6414
|
+
* @example Update messaging and comments
|
|
6415
|
+
* ```typescript
|
|
6416
|
+
* await sdk.updateTokenConfig('anime', {
|
|
6417
|
+
* messagesEnabled: true,
|
|
6418
|
+
* commentsEnabled: false
|
|
6419
|
+
* });
|
|
6420
|
+
* ```
|
|
4819
6421
|
*
|
|
4820
|
-
* @
|
|
4821
|
-
*
|
|
6422
|
+
* @example Update social links
|
|
6423
|
+
* ```typescript
|
|
6424
|
+
* await sdk.updateTokenConfig('anime', {
|
|
6425
|
+
* websiteUrl: 'https://anime.example.com',
|
|
6426
|
+
* twitterUrl: 'https://twitter.com/animeproject',
|
|
6427
|
+
* telegramUrl: 'https://t.me/animegroup',
|
|
6428
|
+
* discordUrl: 'https://discord.gg/anime'
|
|
6429
|
+
* });
|
|
6430
|
+
* ```
|
|
4822
6431
|
*
|
|
4823
|
-
* @example
|
|
6432
|
+
* @example Update streaming configuration
|
|
4824
6433
|
* ```typescript
|
|
4825
|
-
* await sdk.
|
|
4826
|
-
*
|
|
6434
|
+
* await sdk.updateTokenConfig('anime', {
|
|
6435
|
+
* streamingEnabled: true,
|
|
6436
|
+
* streamLanguage: 'en',
|
|
6437
|
+
* nextLiveStreamAt: '2026-02-01T18:00:00Z'
|
|
6438
|
+
* });
|
|
4827
6439
|
* ```
|
|
4828
6440
|
*/
|
|
4829
|
-
|
|
6441
|
+
updateTokenConfig(tokenName: string, config: UpdateTokenConfigOptions): Promise<void>;
|
|
4830
6442
|
/**
|
|
4831
6443
|
* Get trades with flexible filtering.
|
|
4832
6444
|
*
|
|
@@ -4867,13 +6479,124 @@ export declare class LaunchpadSDK {
|
|
|
4867
6479
|
* const { trades, meta } = await sdk.getTrades({
|
|
4868
6480
|
* tokenName: 'anime',
|
|
4869
6481
|
* userAddress: 'eth|1234567890abcdef...',
|
|
4870
|
-
*
|
|
4871
|
-
* limit: 20
|
|
6482
|
+
* pageSize: 20
|
|
4872
6483
|
* });
|
|
4873
6484
|
* console.log(`Page ${meta.currentPage} of ${meta.totalPages}`);
|
|
4874
6485
|
* ```
|
|
4875
6486
|
*/
|
|
4876
6487
|
getTrades(options: GetTradesOptions): Promise<TradesQueryResult>;
|
|
6488
|
+
/**
|
|
6489
|
+
* Get the most recently executed trades with optional filtering
|
|
6490
|
+
*
|
|
6491
|
+
* Convenience wrapper around `getTrades()` for quick access to recent market
|
|
6492
|
+
* activity. Returns trades sorted by newest first.
|
|
6493
|
+
*
|
|
6494
|
+
* @param tokenName - Filter by token name (optional)
|
|
6495
|
+
* @param limit - Number of recent trades to return (default: 50, max: 500)
|
|
6496
|
+
* @returns Paginated list of recent trades
|
|
6497
|
+
* @throws {NetworkError} If API request fails
|
|
6498
|
+
* @since 9.2.0
|
|
6499
|
+
* @category Trades
|
|
6500
|
+
*
|
|
6501
|
+
* @example Get recent trades across all tokens
|
|
6502
|
+
* ```typescript
|
|
6503
|
+
* const { trades } = await sdk.getRecentTrades();
|
|
6504
|
+
* trades.forEach(t => console.log(`${t.tokenName} ${t.txnType}: ${t.inputAmount} → ${t.outputAmount}`));
|
|
6505
|
+
* ```
|
|
6506
|
+
*
|
|
6507
|
+
* @example Get recent trades for a specific token
|
|
6508
|
+
* ```typescript
|
|
6509
|
+
* const { trades } = await sdk.getRecentTrades('anime', 10);
|
|
6510
|
+
* console.log(`Last 10 anime trades`);
|
|
6511
|
+
* ```
|
|
6512
|
+
*/
|
|
6513
|
+
getRecentTrades(tokenName?: string, limit?: number): Promise<TradesQueryResult>;
|
|
6514
|
+
/**
|
|
6515
|
+
* Fetch the current launchpad fee via backend proxy (cached 1 hour).
|
|
6516
|
+
*
|
|
6517
|
+
* **Faster alternative to `GalaChainService.fetchLaunchTokenFee()`** — no chain call.
|
|
6518
|
+
*
|
|
6519
|
+
* @returns Promise resolving to the fee amount in GALA (number)
|
|
6520
|
+
*
|
|
6521
|
+
* @category Main SDK
|
|
6522
|
+
* @since 9.1.0
|
|
6523
|
+
*
|
|
6524
|
+
* @example
|
|
6525
|
+
* ```typescript
|
|
6526
|
+
* const fee = await sdk.fetchLaunchpadFee();
|
|
6527
|
+
* console.log(`Current launchpad fee: ${fee} GALA`);
|
|
6528
|
+
* ```
|
|
6529
|
+
*/
|
|
6530
|
+
fetchLaunchpadFee(): Promise<number>;
|
|
6531
|
+
/**
|
|
6532
|
+
* Fetch sale details (supply, status) for a token via backend proxy (cached 10 seconds).
|
|
6533
|
+
*
|
|
6534
|
+
* **Simpler alternative to `GalaChainService.fetchPoolDetails()`** — uses tokenName instead
|
|
6535
|
+
* of vaultAddress. The backend resolves the vaultAddress internally.
|
|
6536
|
+
*
|
|
6537
|
+
* @param tokenName Token name (e.g. 'anime')
|
|
6538
|
+
* @returns Promise resolving to sale details including supply, quantities, and status
|
|
6539
|
+
*
|
|
6540
|
+
* @category Main SDK
|
|
6541
|
+
* @since 9.1.0
|
|
6542
|
+
*
|
|
6543
|
+
* @example
|
|
6544
|
+
* ```typescript
|
|
6545
|
+
* const details = await sdk.fetchSaleDetails('anime');
|
|
6546
|
+
* console.log(`Supply: ${details.sellingTokenQuantity} / ${details.maxSupply}`);
|
|
6547
|
+
* console.log(`Status: ${details.saleStatus}`);
|
|
6548
|
+
* ```
|
|
6549
|
+
*/
|
|
6550
|
+
fetchSaleDetails(tokenName: string): Promise<SaleDetailsResult>;
|
|
6551
|
+
/**
|
|
6552
|
+
* Calculate a trade quote via the backend using local bonding curve math (no chain call).
|
|
6553
|
+
*
|
|
6554
|
+
* **Instant alternative to `calculateBuyAmountExternal()` / `calculateSellAmountExternal()`**.
|
|
6555
|
+
* The backend uses its local bonding curve math — no GalaChain network request.
|
|
6556
|
+
*
|
|
6557
|
+
* @param params Quote parameters
|
|
6558
|
+
* @param params.tokenName Token name (e.g. 'anime')
|
|
6559
|
+
* @param params.amount Amount as a decimal string
|
|
6560
|
+
* @param params.type 'MEME' (launchpad token) or 'NATIVE' (GALA)
|
|
6561
|
+
* @param params.method 'IN' (spend this amount) or 'OUT' (receive this amount)
|
|
6562
|
+
* @returns Promise resolving to amount calculation result with fees
|
|
6563
|
+
*
|
|
6564
|
+
* @category Main SDK
|
|
6565
|
+
* @since 9.1.0
|
|
6566
|
+
*
|
|
6567
|
+
* @example Buy: how many tokens for 100 GALA?
|
|
6568
|
+
* ```typescript
|
|
6569
|
+
* const quote = await sdk.getTradeQuote({
|
|
6570
|
+
* tokenName: 'anime',
|
|
6571
|
+
* amount: '100',
|
|
6572
|
+
* type: 'NATIVE',
|
|
6573
|
+
* method: 'IN',
|
|
6574
|
+
* });
|
|
6575
|
+
* console.log(`You will receive: ${quote.amount} tokens`);
|
|
6576
|
+
* console.log(`Fee: ${quote.reverseBondingCurveFee} GALA`);
|
|
6577
|
+
* ```
|
|
6578
|
+
*/
|
|
6579
|
+
getTradeQuote(params: TradeQuoteParams): Promise<AmountCalculationResult>;
|
|
6580
|
+
/**
|
|
6581
|
+
* Calculate a pre-mint token output for a given GALA amount (supply = 0 assumed).
|
|
6582
|
+
*
|
|
6583
|
+
* Used during the token creation flow. The backend assumes supply = 0 and computes
|
|
6584
|
+
* via local bonding curve math — no chain call required.
|
|
6585
|
+
*
|
|
6586
|
+
* @param amount GALA amount to spend (as a decimal string, e.g. '100')
|
|
6587
|
+
* @returns Promise resolving to amount calculation result with fees
|
|
6588
|
+
*
|
|
6589
|
+
* @category Main SDK
|
|
6590
|
+
* @since 9.1.0
|
|
6591
|
+
*
|
|
6592
|
+
* @example
|
|
6593
|
+
* ```typescript
|
|
6594
|
+
* const quote = await sdk.getPremintQuote('500');
|
|
6595
|
+
* console.log(`Initial purchase will yield: ${quote.amount} tokens`);
|
|
6596
|
+
* console.log(`Transaction fee: ${quote.transactionFee} GALA`);
|
|
6597
|
+
* ```
|
|
6598
|
+
*/
|
|
6599
|
+
getPremintQuote(amount: string): Promise<AmountCalculationResult>;
|
|
4877
6600
|
/**
|
|
4878
6601
|
* Connect to the stream WebSocket server.
|
|
4879
6602
|
*
|
|
@@ -4946,7 +6669,7 @@ export declare class LaunchpadSDK {
|
|
|
4946
6669
|
* // Events will now fire for 'mytoken'
|
|
4947
6670
|
* ```
|
|
4948
6671
|
*/
|
|
4949
|
-
subscribeToStream(tokenName: string): Promise<StreamSubscribedEvent>;
|
|
6672
|
+
subscribeToStream(tokenName: string, callbacks?: StreamEventCallbacks): Promise<StreamSubscribedEvent>;
|
|
4950
6673
|
/**
|
|
4951
6674
|
* Unsubscribe from a stream's events.
|
|
4952
6675
|
*
|
|
@@ -4959,7 +6682,7 @@ export declare class LaunchpadSDK {
|
|
|
4959
6682
|
* @since 5.1.0
|
|
4960
6683
|
* @category WebSocket
|
|
4961
6684
|
*/
|
|
4962
|
-
unsubscribeFromStream(tokenName: string):
|
|
6685
|
+
unsubscribeFromStream(tokenName: string): void;
|
|
4963
6686
|
/**
|
|
4964
6687
|
* Send a chat message via WebSocket.
|
|
4965
6688
|
*
|
|
@@ -4982,7 +6705,7 @@ export declare class LaunchpadSDK {
|
|
|
4982
6705
|
* await sdk.sendStreamChatViaWebSocket('mytoken', 'Hello!');
|
|
4983
6706
|
* ```
|
|
4984
6707
|
*/
|
|
4985
|
-
sendStreamChatViaWebSocket(tokenName: string, content: string):
|
|
6708
|
+
sendStreamChatViaWebSocket(tokenName: string, content: string): void;
|
|
4986
6709
|
/**
|
|
4987
6710
|
* Send an ephemeral emoji reaction to a live stream.
|
|
4988
6711
|
*
|
|
@@ -5008,10 +6731,10 @@ export declare class LaunchpadSDK {
|
|
|
5008
6731
|
*
|
|
5009
6732
|
* // Send a heart reaction at current stream position
|
|
5010
6733
|
* const currentTime = player.getCurrentTime(); // from MuxPlayer
|
|
5011
|
-
*
|
|
6734
|
+
* sdk.sendStreamReaction('mytoken', '❤️', currentTime);
|
|
5012
6735
|
* ```
|
|
5013
6736
|
*/
|
|
5014
|
-
sendStreamReaction(tokenName: string, emoji: string, streamTime?: number):
|
|
6737
|
+
sendStreamReaction(tokenName: string, emoji: string, streamTime?: number): void;
|
|
5015
6738
|
/**
|
|
5016
6739
|
* Send a typing indicator start event to a stream chat.
|
|
5017
6740
|
*
|
|
@@ -5252,6 +6975,16 @@ export declare class LaunchpadSDK {
|
|
|
5252
6975
|
* @category WebSocket
|
|
5253
6976
|
*/
|
|
5254
6977
|
onDownloadReady(callback: (event: DownloadReadyEvent) => void | Promise<void>): () => void;
|
|
6978
|
+
/**
|
|
6979
|
+
* Subscribe to recordings count updates
|
|
6980
|
+
*
|
|
6981
|
+
* @param callback - Handler for recordings count updated events
|
|
6982
|
+
* @returns Unsubscribe function
|
|
6983
|
+
*
|
|
6984
|
+
* @since 9.0.0
|
|
6985
|
+
* @category WebSocket
|
|
6986
|
+
*/
|
|
6987
|
+
onRecordingsCountUpdated(callback: (event: RecordingsCountUpdatedEvent) => void | Promise<void>): () => void;
|
|
5255
6988
|
/**
|
|
5256
6989
|
* Subscribe to user typing indicators
|
|
5257
6990
|
*
|
|
@@ -5382,6 +7115,28 @@ export declare class LaunchpadSDK {
|
|
|
5382
7115
|
* @category WebSocket
|
|
5383
7116
|
*/
|
|
5384
7117
|
onRoomLeft(callback: (event: RoomLeftEvent) => void | Promise<void>): () => void;
|
|
7118
|
+
/**
|
|
7119
|
+
* Subscribe to engagement stats update events
|
|
7120
|
+
*
|
|
7121
|
+
* Fires after the chat flush job processes messages for a stream, containing
|
|
7122
|
+
* updated chat message counts and comment counts for the token.
|
|
7123
|
+
* Broadcast to the token room every ~15 seconds when chat activity occurs.
|
|
7124
|
+
*
|
|
7125
|
+
* @param callback - Handler for engagement stats updated events
|
|
7126
|
+
* @returns Unsubscribe function
|
|
7127
|
+
*
|
|
7128
|
+
* @since 8.5.0
|
|
7129
|
+
* @category WebSocket
|
|
7130
|
+
*
|
|
7131
|
+
* @example
|
|
7132
|
+
* ```typescript
|
|
7133
|
+
* const unsubscribe = sdk.onEngagementStatsUpdated((event) => {
|
|
7134
|
+
* console.log(`${event.tokenName}: ${event.chat.messageCount} chat messages`);
|
|
7135
|
+
* console.log(`Comments: ${event.comments.count} from ${event.comments.uniqueCommenters} users`);
|
|
7136
|
+
* });
|
|
7137
|
+
* ```
|
|
7138
|
+
*/
|
|
7139
|
+
onEngagementStatsUpdated(callback: (event: EngagementStatsUpdatedEvent) => void): () => void;
|
|
5385
7140
|
/**
|
|
5386
7141
|
* Estimate bridge fees for a cross-chain transfer.
|
|
5387
7142
|
*
|
|
@@ -5550,14 +7305,7 @@ export declare class LaunchpadSDK {
|
|
|
5550
7305
|
* });
|
|
5551
7306
|
* ```
|
|
5552
7307
|
*/
|
|
5553
|
-
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<TokenBalanceResult |
|
|
5554
|
-
quantity: unknown;
|
|
5555
|
-
collection: string;
|
|
5556
|
-
category: string;
|
|
5557
|
-
tokenId: string;
|
|
5558
|
-
symbol: string;
|
|
5559
|
-
name: string;
|
|
5560
|
-
} | null>;
|
|
7308
|
+
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<TokenBalanceResult | null>;
|
|
5561
7309
|
/**
|
|
5562
7310
|
* Fetch only locked balance for a token
|
|
5563
7311
|
*
|
|
@@ -5671,7 +7419,7 @@ export declare class LaunchpadSDK {
|
|
|
5671
7419
|
* });
|
|
5672
7420
|
* ```
|
|
5673
7421
|
*/
|
|
5674
|
-
calculateBuyAmount(options: CalculateBuyAmountOptions): Promise<
|
|
7422
|
+
calculateBuyAmount(options: CalculateBuyAmountOptions): Promise<AmountCalculationResult>;
|
|
5675
7423
|
/**
|
|
5676
7424
|
* Calculate sell amount for a token sale with automatic mode selection
|
|
5677
7425
|
*
|
|
@@ -5737,7 +7485,7 @@ export declare class LaunchpadSDK {
|
|
|
5737
7485
|
* // Instant local calculation - no network calls
|
|
5738
7486
|
* ```
|
|
5739
7487
|
*/
|
|
5740
|
-
calculateSellAmount(options: CalculateSellAmountOptions): Promise<
|
|
7488
|
+
calculateSellAmount(options: CalculateSellAmountOptions): Promise<AmountCalculationResult>;
|
|
5741
7489
|
/**
|
|
5742
7490
|
* Calculate buy amount locally using bonding curve formula
|
|
5743
7491
|
*
|
|
@@ -5778,7 +7526,7 @@ export declare class LaunchpadSDK {
|
|
|
5778
7526
|
* console.log('Tokens received:', result.amount);
|
|
5779
7527
|
* ```
|
|
5780
7528
|
*/
|
|
5781
|
-
calculateBuyAmountLocal(options: CalculateBuyAmountLocalOptions): Promise<
|
|
7529
|
+
calculateBuyAmountLocal(options: CalculateBuyAmountLocalOptions): Promise<AmountCalculationResult>;
|
|
5782
7530
|
/**
|
|
5783
7531
|
* Calculate sell amount locally using bonding curve formula
|
|
5784
7532
|
*
|
|
@@ -5820,7 +7568,7 @@ export declare class LaunchpadSDK {
|
|
|
5820
7568
|
* console.log('Tokens to sell:', result.amount);
|
|
5821
7569
|
* ```
|
|
5822
7570
|
*/
|
|
5823
|
-
calculateSellAmountLocal(options: CalculateSellAmountLocalOptions): Promise<
|
|
7571
|
+
calculateSellAmountLocal(options: CalculateSellAmountLocalOptions): Promise<AmountCalculationResult>;
|
|
5824
7572
|
/**
|
|
5825
7573
|
* Calculate buy amount using external GalaChain call
|
|
5826
7574
|
*
|
|
@@ -5828,6 +7576,10 @@ export declare class LaunchpadSDK {
|
|
|
5828
7576
|
* Always returns fresh calculations based on current blockchain state.
|
|
5829
7577
|
* Use when you want guaranteed accuracy but don't mind network latency.
|
|
5830
7578
|
*
|
|
7579
|
+
* @deprecated Use `getTradeQuote()` instead — it uses the backend-proxy for instant
|
|
7580
|
+
* calculations without a direct GalaChain call. The defi-backend has removed direct
|
|
7581
|
+
* chain quote endpoints in favour of the backend-proxy approach.
|
|
7582
|
+
*
|
|
5831
7583
|
* @param options Buy amount calculation options
|
|
5832
7584
|
* @returns Promise<AmountCalculationResult> Calculated amount and fees from GalaChain
|
|
5833
7585
|
* @throws NetworkError if API request fails
|
|
@@ -5838,7 +7590,7 @@ export declare class LaunchpadSDK {
|
|
|
5838
7590
|
tokenName: string;
|
|
5839
7591
|
amount: string;
|
|
5840
7592
|
type: 'native' | 'exact';
|
|
5841
|
-
}): Promise<
|
|
7593
|
+
}): Promise<AmountCalculationResult>;
|
|
5842
7594
|
/**
|
|
5843
7595
|
* Calculate sell amount using external GalaChain call
|
|
5844
7596
|
*
|
|
@@ -5846,6 +7598,10 @@ export declare class LaunchpadSDK {
|
|
|
5846
7598
|
* Always returns fresh calculations based on current blockchain state.
|
|
5847
7599
|
* Use when you want guaranteed accuracy but don't mind network latency.
|
|
5848
7600
|
*
|
|
7601
|
+
* @deprecated Use `getTradeQuote()` instead — it uses the backend-proxy for instant
|
|
7602
|
+
* calculations without a direct GalaChain call. The defi-backend has removed direct
|
|
7603
|
+
* chain quote endpoints in favour of the backend-proxy approach.
|
|
7604
|
+
*
|
|
5849
7605
|
* @param options Sell amount calculation options
|
|
5850
7606
|
* @returns Promise<AmountCalculationResult> Calculated amount and fees from GalaChain
|
|
5851
7607
|
* @throws NetworkError if API request fails
|
|
@@ -5856,7 +7612,7 @@ export declare class LaunchpadSDK {
|
|
|
5856
7612
|
tokenName: string;
|
|
5857
7613
|
amount: string;
|
|
5858
7614
|
type: 'native' | 'exact';
|
|
5859
|
-
}): Promise<
|
|
7615
|
+
}): Promise<AmountCalculationResult>;
|
|
5860
7616
|
/**
|
|
5861
7617
|
* Calculate buy amount needed to graduate a token pool
|
|
5862
7618
|
*
|
|
@@ -5889,7 +7645,7 @@ export declare class LaunchpadSDK {
|
|
|
5889
7645
|
* });
|
|
5890
7646
|
* ```
|
|
5891
7647
|
*/
|
|
5892
|
-
calculateBuyAmountForGraduation(tokenNameOrOptions: string | CalculateBuyAmountForGraduationOptions): Promise<
|
|
7648
|
+
calculateBuyAmountForGraduation(tokenNameOrOptions: string | CalculateBuyAmountForGraduationOptions): Promise<GraduationCalculationResult>;
|
|
5893
7649
|
/**
|
|
5894
7650
|
* Graduate a token pool by buying all remaining tokens
|
|
5895
7651
|
*
|
|
@@ -5968,13 +7724,28 @@ export declare class LaunchpadSDK {
|
|
|
5968
7724
|
* });
|
|
5969
7725
|
* ```
|
|
5970
7726
|
*/
|
|
5971
|
-
calculateInitialBuyAmount(nativeTokenQuantity: string): Promise<
|
|
7727
|
+
calculateInitialBuyAmount(nativeTokenQuantity: string): Promise<AmountCalculationResult>;
|
|
5972
7728
|
/**
|
|
5973
7729
|
* Buy tokens with blockchain confirmation and WebSocket monitoring
|
|
5974
7730
|
*
|
|
5975
7731
|
* Executes a buy order on the bonding curve and waits for GalaChain confirmation via WebSocket,
|
|
5976
7732
|
* returning complete trade details including actual amounts traded, fees paid, and transaction metadata.
|
|
5977
7733
|
*
|
|
7734
|
+
* ## Token Format
|
|
7735
|
+
*
|
|
7736
|
+
* **Use simple `tokenName`** (e.g., `"anime"`), NOT full TokenClassKey format.
|
|
7737
|
+
*
|
|
7738
|
+
* This method is for **bonding curve tokens only** (pre-graduation). For DEX trading
|
|
7739
|
+
* of graduated tokens, use {@link executeSwap} with full TokenClassKey format.
|
|
7740
|
+
*
|
|
7741
|
+
* ```typescript
|
|
7742
|
+
* // ✅ CORRECT - Simple token name
|
|
7743
|
+
* await sdk.buy({ tokenName: 'anime', amount: '100', type: 'native', ... });
|
|
7744
|
+
*
|
|
7745
|
+
* // ❌ WRONG - Do NOT use TokenClassKey format
|
|
7746
|
+
* await sdk.buy({ tokenName: 'Token|Unit|ANIME|client:gala-launchpad', ... }); // Error!
|
|
7747
|
+
* ```
|
|
7748
|
+
*
|
|
5978
7749
|
* **Slippage Protection:**
|
|
5979
7750
|
* - Uses `expectedAmount` to protect against price changes during execution
|
|
5980
7751
|
* - `slippageToleranceFactor` allows variance (e.g., 0.01 = 1% tolerance)
|
|
@@ -6078,8 +7849,23 @@ export declare class LaunchpadSDK {
|
|
|
6078
7849
|
/**
|
|
6079
7850
|
* Sell tokens with confirmation
|
|
6080
7851
|
*
|
|
6081
|
-
* Executes a sell order and waits for blockchain confirmation,
|
|
6082
|
-
* complete trade details including actual amounts traded and fees paid.
|
|
7852
|
+
* Executes a sell order on the bonding curve and waits for blockchain confirmation,
|
|
7853
|
+
* returning complete trade details including actual amounts traded and fees paid.
|
|
7854
|
+
*
|
|
7855
|
+
* ## Token Format
|
|
7856
|
+
*
|
|
7857
|
+
* **Use simple `tokenName`** (e.g., `"anime"`), NOT full TokenClassKey format.
|
|
7858
|
+
*
|
|
7859
|
+
* This method is for **bonding curve tokens only** (pre-graduation). For DEX trading
|
|
7860
|
+
* of graduated tokens, use {@link executeSwap} with full TokenClassKey format.
|
|
7861
|
+
*
|
|
7862
|
+
* ```typescript
|
|
7863
|
+
* // ✅ CORRECT - Simple token name
|
|
7864
|
+
* await sdk.sell({ tokenName: 'anime', amount: '100', type: 'tokens', ... });
|
|
7865
|
+
*
|
|
7866
|
+
* // ❌ WRONG - Do NOT use TokenClassKey format
|
|
7867
|
+
* await sdk.sell({ tokenName: 'Token|Unit|ANIME|...' }); // Error!
|
|
7868
|
+
* ```
|
|
6083
7869
|
*
|
|
6084
7870
|
* @param options Sell options with required tokenName and expectedAmount
|
|
6085
7871
|
* @returns Promise<TradeResult> Complete trade result with amounts and fees
|
|
@@ -6122,7 +7908,7 @@ export declare class LaunchpadSDK {
|
|
|
6122
7908
|
* console.log('Method:', result.data.method); // "SellExactToken", "BuyWithNative", etc.
|
|
6123
7909
|
* ```
|
|
6124
7910
|
*/
|
|
6125
|
-
getBundlerTransactionResult(transactionId: string): Promise<
|
|
7911
|
+
getBundlerTransactionResult(transactionId: string): Promise<ApiResponse>;
|
|
6126
7912
|
/**
|
|
6127
7913
|
* Launch a new token with bonding curve trading
|
|
6128
7914
|
*
|
|
@@ -6276,32 +8062,6 @@ export declare class LaunchpadSDK {
|
|
|
6276
8062
|
* ```
|
|
6277
8063
|
*/
|
|
6278
8064
|
uploadTokenImage(options: UploadImageByTokenNameOptions): Promise<string>;
|
|
6279
|
-
/**
|
|
6280
|
-
* Updates token social media links (v6.x.0+)
|
|
6281
|
-
*
|
|
6282
|
-
* Requires JWT authentication (pool owner only).
|
|
6283
|
-
* Updates the social media URLs for a token pool.
|
|
6284
|
-
*
|
|
6285
|
-
* @category Token Management
|
|
6286
|
-
* @param options Update options containing tokenName and social URLs
|
|
6287
|
-
* @returns Updated token metadata with social links
|
|
6288
|
-
* @throws {ValidationError} If token name is invalid
|
|
6289
|
-
* @throws {ConfigurationError} If JWT auth is not configured
|
|
6290
|
-
* @throws {Error} If user is not authorized to update this token
|
|
6291
|
-
* @since 6.x.0
|
|
6292
|
-
*
|
|
6293
|
-
* @example Update token socials
|
|
6294
|
-
* ```typescript
|
|
6295
|
-
* const result = await sdk.updateTokenSocials({
|
|
6296
|
-
* tokenName: 'mytoken',
|
|
6297
|
-
* websiteUrl: 'https://example.com',
|
|
6298
|
-
* twitterUrl: 'https://twitter.com/example',
|
|
6299
|
-
* telegramUrl: 'https://t.me/example',
|
|
6300
|
-
* });
|
|
6301
|
-
* console.log('Updated socials:', result);
|
|
6302
|
-
* ```
|
|
6303
|
-
*/
|
|
6304
|
-
updateTokenSocials(options: UpdateSocialLinksDto): Promise<UpdateSocialLinksResponse>;
|
|
6305
8065
|
/**
|
|
6306
8066
|
* Checks if a pool exists (v6.x.0+)
|
|
6307
8067
|
*
|
|
@@ -6378,6 +8138,117 @@ export declare class LaunchpadSDK {
|
|
|
6378
8138
|
* ```
|
|
6379
8139
|
*/
|
|
6380
8140
|
isTokenSymbolAvailable(symbol: string): Promise<boolean>;
|
|
8141
|
+
/**
|
|
8142
|
+
* Fetch full token pool data by token name
|
|
8143
|
+
* Returns complete PoolData including streaming fields
|
|
8144
|
+
*
|
|
8145
|
+
* @param tokenName - The token name to fetch (e.g., 'anime')
|
|
8146
|
+
* @returns The full PoolData object with all fields including streaming data
|
|
8147
|
+
* @throws Error if token not found or request fails
|
|
8148
|
+
*
|
|
8149
|
+
* @category Token Lookup
|
|
8150
|
+
* @since 6.0.0
|
|
8151
|
+
*
|
|
8152
|
+
* @example
|
|
8153
|
+
* ```typescript
|
|
8154
|
+
* const pool = await sdk.fetchToken('anime');
|
|
8155
|
+
* console.log(pool.tokenName, pool.playbackId, pool.muxStreamStatus);
|
|
8156
|
+
* ```
|
|
8157
|
+
*/
|
|
8158
|
+
fetchToken(tokenName: string): Promise<PoolData>;
|
|
8159
|
+
/**
|
|
8160
|
+
* Validate if token name and/or symbol are available
|
|
8161
|
+
* Useful for token creation forms to check availability before submission
|
|
8162
|
+
*
|
|
8163
|
+
* @param options - Object containing optional tokenName and/or symbol to validate
|
|
8164
|
+
* @returns Validation result with availability flags and errors
|
|
8165
|
+
*
|
|
8166
|
+
* @category Token Validation
|
|
8167
|
+
* @since 6.0.0
|
|
8168
|
+
*
|
|
8169
|
+
* @example
|
|
8170
|
+
* ```typescript
|
|
8171
|
+
* const result = await sdk.validateToken({ tokenName: 'mytoken', symbol: 'MYTKN' });
|
|
8172
|
+
* if (result.nameAvailable && result.symbolAvailable) {
|
|
8173
|
+
* console.log('Names are available!');
|
|
8174
|
+
* } else {
|
|
8175
|
+
* console.log('Errors:', result.errors);
|
|
8176
|
+
* }
|
|
8177
|
+
* ```
|
|
8178
|
+
*/
|
|
8179
|
+
validateToken(options: {
|
|
8180
|
+
tokenName?: string;
|
|
8181
|
+
symbol?: string;
|
|
8182
|
+
}): Promise<ValidateTokenResponse>;
|
|
8183
|
+
/**
|
|
8184
|
+
* Fetch engagement statistics for a token (v7.1.0+)
|
|
8185
|
+
*
|
|
8186
|
+
* Returns metrics for chat activity, comments, and overall engagement on a token.
|
|
8187
|
+
* Useful for token detail pages and engagement analytics.
|
|
8188
|
+
*
|
|
8189
|
+
* @param tokenName Token name to fetch stats for
|
|
8190
|
+
* @returns Engagement statistics result
|
|
8191
|
+
* @throws ValidationError if tokenName is invalid
|
|
8192
|
+
*
|
|
8193
|
+
* @category Token Lookup
|
|
8194
|
+
* @since 7.1.0
|
|
8195
|
+
*
|
|
8196
|
+
* @example
|
|
8197
|
+
* ```typescript
|
|
8198
|
+
* const stats = await sdk.fetchTokenStats('anime');
|
|
8199
|
+
* console.log(`Chat messages: ${stats.data.chatMessageCount}`);
|
|
8200
|
+
* console.log(`Comments: ${stats.data.commentCount}`);
|
|
8201
|
+
* ```
|
|
8202
|
+
*/
|
|
8203
|
+
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>;
|
|
6381
8252
|
/**
|
|
6382
8253
|
* Fetch user profile information by wallet address
|
|
6383
8254
|
*
|
|
@@ -6459,8 +8330,7 @@ export declare class LaunchpadSDK {
|
|
|
6459
8330
|
* @category Main SDK
|
|
6460
8331
|
* @param options - Optional fetch parameters
|
|
6461
8332
|
* @param options.address - Wallet address to fetch referrals for (defaults to SDK wallet)
|
|
6462
|
-
* @param options.
|
|
6463
|
-
* @param options.limit - Results per page (default: 10, max: 100)
|
|
8333
|
+
* @param options.pageSize - Results per page (default: 10, max: 100)
|
|
6464
8334
|
* @param options.sortBy - Sort field (default: 'joined')
|
|
6465
8335
|
* @param options.sortDir - Sort direction: 'asc' or 'desc' (default: 'desc')
|
|
6466
8336
|
* @returns Promise<ReferralsResult> Paginated referral data
|
|
@@ -6479,7 +8349,7 @@ export declare class LaunchpadSDK {
|
|
|
6479
8349
|
*
|
|
6480
8350
|
* @example Fetch with pagination
|
|
6481
8351
|
* ```typescript
|
|
6482
|
-
* const page2 = await sdk.fetchReferrals({
|
|
8352
|
+
* const page2 = await sdk.fetchReferrals({ pageSize: 20 });
|
|
6483
8353
|
* if (page2.hasMore) {
|
|
6484
8354
|
* console.log('More pages available');
|
|
6485
8355
|
* }
|
|
@@ -6569,48 +8439,6 @@ export declare class LaunchpadSDK {
|
|
|
6569
8439
|
* ```
|
|
6570
8440
|
*/
|
|
6571
8441
|
fetchReferralsSummary(options?: FetchReferralsSummaryOptions): Promise<ReferralsSummaryResult>;
|
|
6572
|
-
/**
|
|
6573
|
-
* Register an account for trading on Gala
|
|
6574
|
-
*
|
|
6575
|
-
* Ensures a wallet is registered with the DEX API platform before trading operations.
|
|
6576
|
-
* Should be called before the first purchase to ensure the account is ready.
|
|
6577
|
-
* This is idempotent - calling it multiple times is safe.
|
|
6578
|
-
*
|
|
6579
|
-
* **Return value behavior:**
|
|
6580
|
-
* - `exists: true` - Account was already registered (walletAlias from API)
|
|
6581
|
-
* - `exists: false` - Account was just created by this call (walletAlias is the input address)
|
|
6582
|
-
*
|
|
6583
|
-
* **Wallet requirement**: If no address is provided, uses the SDK wallet address.
|
|
6584
|
-
* You can optionally pass any wallet address to register.
|
|
6585
|
-
*
|
|
6586
|
-
* @category Main SDK
|
|
6587
|
-
* @param options - Optional registration parameters
|
|
6588
|
-
* @param options.address - Wallet address to register (defaults to SDK wallet)
|
|
6589
|
-
* @returns Promise<RegisterAccountResult> Registration status and wallet alias
|
|
6590
|
-
* @throws {ValidationError} If wallet not configured and no address provided
|
|
6591
|
-
* @throws {ValidationError} If address format is invalid
|
|
6592
|
-
* @throws {NetworkError} If DEX API request fails or returns unexpected format
|
|
6593
|
-
* @since 4.0.24
|
|
6594
|
-
*
|
|
6595
|
-
* @example Register current wallet
|
|
6596
|
-
* ```typescript
|
|
6597
|
-
* const result = await sdk.registerAccount();
|
|
6598
|
-
* if (result.exists) {
|
|
6599
|
-
* console.log('Account already registered');
|
|
6600
|
-
* } else {
|
|
6601
|
-
* console.log('Account newly registered');
|
|
6602
|
-
* }
|
|
6603
|
-
* console.log(`Wallet alias: ${result.walletAlias}`);
|
|
6604
|
-
* ```
|
|
6605
|
-
*
|
|
6606
|
-
* @example Register a specific address
|
|
6607
|
-
* ```typescript
|
|
6608
|
-
* const result = await sdk.registerAccount({
|
|
6609
|
-
* address: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb1'
|
|
6610
|
-
* });
|
|
6611
|
-
* ```
|
|
6612
|
-
*/
|
|
6613
|
-
registerAccount(options?: RegisterAccountOptions): Promise<RegisterAccountResult>;
|
|
6614
8442
|
/**
|
|
6615
8443
|
* Update user profile information for a wallet address
|
|
6616
8444
|
*
|
|
@@ -6720,7 +8548,7 @@ export declare class LaunchpadSDK {
|
|
|
6720
8548
|
*
|
|
6721
8549
|
* @param options - Token list options with filtering support
|
|
6722
8550
|
* @param options.page - Page number (1-based), defaults to 1
|
|
6723
|
-
* @param options.
|
|
8551
|
+
* @param options.pageSize - Items per page, defaults to 10
|
|
6724
8552
|
* @param options.tokenName - Exact match filter (case-sensitive, strict equality). Backend filtering reduces payload by ~99% for single-token lookups.
|
|
6725
8553
|
* @param options.search - Fuzzy search filter (case-insensitive, partial matching). Use for discovery and exploration.
|
|
6726
8554
|
* @returns Promise<UserTokenListResult> User's token holdings with pagination metadata
|
|
@@ -6728,13 +8556,13 @@ export declare class LaunchpadSDK {
|
|
|
6728
8556
|
* @example
|
|
6729
8557
|
* ```typescript
|
|
6730
8558
|
* // Fetch all tokens with pagination
|
|
6731
|
-
* const allTokens = await sdk.fetchTokensHeld({
|
|
8559
|
+
* const allTokens = await sdk.fetchTokensHeld({ pageSize: 20 });
|
|
6732
8560
|
*
|
|
6733
8561
|
* // Exact match for a specific token (most efficient)
|
|
6734
|
-
* const anime = await sdk.fetchTokensHeld({ tokenName: 'anime',
|
|
8562
|
+
* const anime = await sdk.fetchTokensHeld({ tokenName: 'anime', pageSize: 1 });
|
|
6735
8563
|
*
|
|
6736
8564
|
* // Fuzzy search for exploration
|
|
6737
|
-
* const dragons = await sdk.fetchTokensHeld({ search: 'dragon',
|
|
8565
|
+
* const dragons = await sdk.fetchTokensHeld({ search: 'dragon', pageSize: 10 });
|
|
6738
8566
|
* ```
|
|
6739
8567
|
*
|
|
6740
8568
|
* @remarks
|
|
@@ -6743,7 +8571,7 @@ export declare class LaunchpadSDK {
|
|
|
6743
8571
|
* - Both parameters use backend filtering for optimal performance
|
|
6744
8572
|
* - Passing both parameters together is discouraged (tokenName takes precedence)
|
|
6745
8573
|
*/
|
|
6746
|
-
fetchTokensHeld(options?: FetchTokensHeldOptions): Promise<
|
|
8574
|
+
fetchTokensHeld(options?: FetchTokensHeldOptions): Promise<UserTokenListResult>;
|
|
6747
8575
|
/**
|
|
6748
8576
|
* Fetch tokens created by the current user with optional filtering
|
|
6749
8577
|
*
|
|
@@ -6751,8 +8579,7 @@ export declare class LaunchpadSDK {
|
|
|
6751
8579
|
* Supports both exact matching (tokenName) and fuzzy search (search) for efficient filtering.
|
|
6752
8580
|
*
|
|
6753
8581
|
* @param options - Token list options with filtering support
|
|
6754
|
-
* @param options.
|
|
6755
|
-
* @param options.limit - Items per page, defaults to 10
|
|
8582
|
+
* @param options.pageSize - Items per page, defaults to 10
|
|
6756
8583
|
* @param options.tokenName - Exact match filter (case-sensitive, strict equality). Backend filtering reduces payload by ~99% for single-token lookups.
|
|
6757
8584
|
* @param options.search - Fuzzy search filter (case-insensitive, partial matching). Use for discovery and exploration.
|
|
6758
8585
|
* @returns Promise<UserTokenListResult> User's created tokens with pagination metadata
|
|
@@ -6760,13 +8587,13 @@ export declare class LaunchpadSDK {
|
|
|
6760
8587
|
* @example
|
|
6761
8588
|
* ```typescript
|
|
6762
8589
|
* // Fetch all created tokens with pagination
|
|
6763
|
-
* const myTokens = await sdk.fetchTokensCreated({
|
|
8590
|
+
* const myTokens = await sdk.fetchTokensCreated({ pageSize: 20 });
|
|
6764
8591
|
*
|
|
6765
8592
|
* // Exact match for a specific created token (most efficient)
|
|
6766
|
-
* const myToken = await sdk.fetchTokensCreated({ tokenName: 'mytoken',
|
|
8593
|
+
* const myToken = await sdk.fetchTokensCreated({ tokenName: 'mytoken', pageSize: 1 });
|
|
6767
8594
|
*
|
|
6768
8595
|
* // Fuzzy search through created tokens
|
|
6769
|
-
* const testTokens = await sdk.fetchTokensCreated({ search: 'test',
|
|
8596
|
+
* const testTokens = await sdk.fetchTokensCreated({ search: 'test', pageSize: 10 });
|
|
6770
8597
|
* ```
|
|
6771
8598
|
*
|
|
6772
8599
|
* @remarks
|
|
@@ -6775,7 +8602,7 @@ export declare class LaunchpadSDK {
|
|
|
6775
8602
|
* - Both parameters use backend filtering for optimal performance
|
|
6776
8603
|
* - Passing both parameters together is discouraged (tokenName takes precedence)
|
|
6777
8604
|
*/
|
|
6778
|
-
fetchTokensCreated(options?: FetchTokensCreatedOptions): Promise<
|
|
8605
|
+
fetchTokensCreated(options?: FetchTokensCreatedOptions): Promise<UserTokenListResult>;
|
|
6779
8606
|
/**
|
|
6780
8607
|
* Get all tokens the authenticated user can manage.
|
|
6781
8608
|
*
|
|
@@ -6790,7 +8617,7 @@ export declare class LaunchpadSDK {
|
|
|
6790
8617
|
*
|
|
6791
8618
|
* **Requires JWT authentication** - call sdk.login() before using this method.
|
|
6792
8619
|
*
|
|
6793
|
-
* @param options Optional pagination options (
|
|
8620
|
+
* @param options Optional pagination options (pageSize)
|
|
6794
8621
|
* @returns Promise resolving to managed tokens result
|
|
6795
8622
|
* @throws ConfigurationError if JWT auth is not configured
|
|
6796
8623
|
* @throws ValidationError if pagination parameters are invalid
|
|
@@ -6846,8 +8673,7 @@ export declare class LaunchpadSDK {
|
|
|
6846
8673
|
* },
|
|
6847
8674
|
* from: new Date('2024-01-01'),
|
|
6848
8675
|
* to: new Date('2024-01-31'),
|
|
6849
|
-
*
|
|
6850
|
-
* limit: 20
|
|
8676
|
+
* pageSize: 20
|
|
6851
8677
|
* });
|
|
6852
8678
|
*
|
|
6853
8679
|
* console.log(`Found ${history.snapshots.length} price snapshots`);
|
|
@@ -6864,7 +8690,7 @@ export declare class LaunchpadSDK {
|
|
|
6864
8690
|
*
|
|
6865
8691
|
* Only available for DEX tokens with price snapshot data on the DEX Backend API.
|
|
6866
8692
|
*
|
|
6867
|
-
* @param options Fetch options (
|
|
8693
|
+
* @param options Fetch options (pagination is handled automatically)
|
|
6868
8694
|
* @returns Promise<PriceHistoryResult> containing all price snapshots in combined result
|
|
6869
8695
|
*
|
|
6870
8696
|
* @throws NetworkError if API query fails
|
|
@@ -6972,6 +8798,40 @@ export declare class LaunchpadSDK {
|
|
|
6972
8798
|
* @throws {TransferError} When token name cannot be resolved
|
|
6973
8799
|
*/
|
|
6974
8800
|
resolveTokenClassKey(tokenName: string): Promise<TokenClassKey>;
|
|
8801
|
+
/**
|
|
8802
|
+
* Convert token name to TokenClassKey (explicit alias for resolveTokenClassKey)
|
|
8803
|
+
*
|
|
8804
|
+
* ## CRITICAL: TokenClassKey is NOT Derivable from TokenName!
|
|
8805
|
+
*
|
|
8806
|
+
* This is an explicit alias emphasizing that resolution is **REQUIRED** - never guess.
|
|
8807
|
+
*
|
|
8808
|
+
* The relationship between token name and TokenClassKey is **NOT PREDICTABLE**:
|
|
8809
|
+
* - `tokenName: "anime"` does NOT mean `type: "ANIME"` (could be "ANM", "ANIM", etc.)
|
|
8810
|
+
* - The `additionalKey` contains the creator's ETH address - **impossible to guess**
|
|
8811
|
+
*
|
|
8812
|
+
* **ALWAYS use this method. Never construct TokenClassKey manually from a token name.**
|
|
8813
|
+
*
|
|
8814
|
+
* @param tokenName Token name to convert (e.g., 'anime', 'dragon')
|
|
8815
|
+
* @returns Promise<TokenClassKey> The resolved token class key (cached on subsequent calls)
|
|
8816
|
+
*
|
|
8817
|
+
* @example
|
|
8818
|
+
* ```typescript
|
|
8819
|
+
* // ✅ CORRECT - Always use this method
|
|
8820
|
+
* const tokenClassKey = await sdk.convertTokenNameToTokenClassKey('anime');
|
|
8821
|
+
* // Returns: { collection: "Token", category: "Unit", type: "ANM", additionalKey: "eth:0x..." }
|
|
8822
|
+
*
|
|
8823
|
+
* // ❌ WRONG - Never do this!
|
|
8824
|
+
* const tokenClassKey = {
|
|
8825
|
+
* collection: "Token",
|
|
8826
|
+
* category: "Unit",
|
|
8827
|
+
* type: "ANIME", // WRONG! Might be "ANM" or anything
|
|
8828
|
+
* additionalKey: "???" // IMPOSSIBLE to guess!
|
|
8829
|
+
* };
|
|
8830
|
+
* ```
|
|
8831
|
+
*
|
|
8832
|
+
* @throws {TransferError} When token name cannot be resolved
|
|
8833
|
+
*/
|
|
8834
|
+
convertTokenNameToTokenClassKey(tokenName: string): Promise<TokenClassKey>;
|
|
6975
8835
|
/**
|
|
6976
8836
|
* Lock tokens on GalaChain (batch operation)
|
|
6977
8837
|
*
|
|
@@ -7231,9 +9091,20 @@ export declare class LaunchpadSDK {
|
|
|
7231
9091
|
* Queries GalaSwap DEX for a quote when swapping from one token to another,
|
|
7232
9092
|
* specifying the exact amount you want to spend.
|
|
7233
9093
|
*
|
|
9094
|
+
* ## Token Format (IMPORTANT)
|
|
9095
|
+
*
|
|
9096
|
+
* **Use full `tokenClassKey` format** (e.g., `"GALA|Unit|none|none"`), NOT simple names.
|
|
9097
|
+
*
|
|
9098
|
+
* ```typescript
|
|
9099
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9100
|
+
* await sdk.getSwapQuoteExactInput('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '100');
|
|
9101
|
+
*
|
|
9102
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9103
|
+
* await sdk.getSwapQuoteExactInput('GALA', 'GUSDC', '100'); // Error!
|
|
9104
|
+
* ```
|
|
9105
|
+
*
|
|
7234
9106
|
* Current Implementation (v3.32.0):
|
|
7235
9107
|
* - Delegates to GSwapService which uses GSwap SDK quoting engine
|
|
7236
|
-
* - Handles automatic token format conversion (symbols → TokenClassKey)
|
|
7237
9108
|
* - Returns quote with estimated output, fee tier, and price impact
|
|
7238
9109
|
* - Automatically selects optimal liquidity pool for best pricing
|
|
7239
9110
|
*
|
|
@@ -7253,17 +9124,28 @@ export declare class LaunchpadSDK {
|
|
|
7253
9124
|
* console.log(`Price impact: ${quote.priceImpact}%`);
|
|
7254
9125
|
* ```
|
|
7255
9126
|
*/
|
|
7256
|
-
getSwapQuoteExactInput(fromToken: string, toToken: string, amount: string): Promise<
|
|
9127
|
+
getSwapQuoteExactInput(fromToken: string, toToken: string, amount: string): Promise<SwapQuoteResult>;
|
|
7257
9128
|
/**
|
|
7258
9129
|
* Get a swap quote for exact output amount
|
|
7259
9130
|
*
|
|
7260
9131
|
* Queries GalaSwap DEX for a quote when swapping from one token to another,
|
|
7261
9132
|
* specifying the exact amount you want to receive.
|
|
7262
9133
|
*
|
|
9134
|
+
* ## Token Format (IMPORTANT)
|
|
9135
|
+
*
|
|
9136
|
+
* **Use full `tokenClassKey` format** (e.g., `"GALA|Unit|none|none"`), NOT simple names.
|
|
9137
|
+
*
|
|
9138
|
+
* ```typescript
|
|
9139
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9140
|
+
* await sdk.getSwapQuoteExactOutput('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '50');
|
|
9141
|
+
*
|
|
9142
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9143
|
+
* await sdk.getSwapQuoteExactOutput('GALA', 'GUSDC', '50'); // Error!
|
|
9144
|
+
* ```
|
|
9145
|
+
*
|
|
7263
9146
|
* Current Implementation (v3.32.0):
|
|
7264
9147
|
* - Delegates to GSwapService which uses GSwap SDK quoting engine
|
|
7265
9148
|
* - Calculates required input amount for exact output target
|
|
7266
|
-
* - Handles automatic token format conversion (symbols → TokenClassKey)
|
|
7267
9149
|
* - Returns quote with required input, fee tier, and price impact
|
|
7268
9150
|
* - Ensures amount constraints are satisfied with slippage buffer
|
|
7269
9151
|
*
|
|
@@ -7283,13 +9165,36 @@ export declare class LaunchpadSDK {
|
|
|
7283
9165
|
* console.log(`Price impact: ${quote.priceImpact}%`);
|
|
7284
9166
|
* ```
|
|
7285
9167
|
*/
|
|
7286
|
-
getSwapQuoteExactOutput(fromToken: string, toToken: string, amount: string): Promise<
|
|
9168
|
+
getSwapQuoteExactOutput(fromToken: string, toToken: string, amount: string): Promise<SwapQuoteResult>;
|
|
7287
9169
|
/**
|
|
7288
9170
|
* Execute a token swap on GalaSwap DEX
|
|
7289
9171
|
*
|
|
7290
9172
|
* Executes a swap transaction with slippage protection. Requires a signer wallet.
|
|
7291
9173
|
* Use quote methods first to get expected output amounts.
|
|
7292
9174
|
*
|
|
9175
|
+
* ## Token Format (IMPORTANT)
|
|
9176
|
+
*
|
|
9177
|
+
* **Use full `tokenClassKey` format** (e.g., `"GALA|Unit|none|none"`), NOT simple names.
|
|
9178
|
+
*
|
|
9179
|
+
* This method is for **DEX trading only** (graduated tokens, GALA, GUSDC, etc.).
|
|
9180
|
+
* For bonding curve tokens (pre-graduation), use {@link buy} or {@link sell} with simple tokenName.
|
|
9181
|
+
*
|
|
9182
|
+
* ```typescript
|
|
9183
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9184
|
+
* await sdk.executeSwap('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '100', output, fee);
|
|
9185
|
+
*
|
|
9186
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9187
|
+
* await sdk.executeSwap('GALA', 'GUSDC', '100', output, fee); // Error!
|
|
9188
|
+
*
|
|
9189
|
+
* // ❌ WRONG - Simple token names don't work here
|
|
9190
|
+
* await sdk.executeSwap('anime', 'GALA|Unit|none|none', ...); // Error!
|
|
9191
|
+
* ```
|
|
9192
|
+
*
|
|
9193
|
+
* **Common TokenClassKeys:**
|
|
9194
|
+
* - GALA: `'GALA|Unit|none|none'`
|
|
9195
|
+
* - GUSDC: `'GUSDC|Unit|none|eth:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'`
|
|
9196
|
+
* - Graduated token: Get from pool's `tokenClassKey` field
|
|
9197
|
+
*
|
|
7293
9198
|
* @category DEX Trading
|
|
7294
9199
|
* @param fromToken Source token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
7295
9200
|
* @param toToken Destination token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
@@ -7320,7 +9225,7 @@ export declare class LaunchpadSDK {
|
|
|
7320
9225
|
* console.log(`Transaction: ${result.transactionId}`);
|
|
7321
9226
|
* ```
|
|
7322
9227
|
*/
|
|
7323
|
-
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<
|
|
9228
|
+
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<ExecuteSwapResult>;
|
|
7324
9229
|
/**
|
|
7325
9230
|
* Get user's token assets/balances from GalaSwap
|
|
7326
9231
|
*
|
|
@@ -7339,7 +9244,7 @@ export declare class LaunchpadSDK {
|
|
|
7339
9244
|
* });
|
|
7340
9245
|
* ```
|
|
7341
9246
|
*/
|
|
7342
|
-
getSwapUserAssets(walletAddress: string): Promise<
|
|
9247
|
+
getSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
7343
9248
|
/**
|
|
7344
9249
|
* Get all user assets across all pages (auto-paginated)
|
|
7345
9250
|
*
|
|
@@ -7352,7 +9257,7 @@ export declare class LaunchpadSDK {
|
|
|
7352
9257
|
* @since 3.23.0
|
|
7353
9258
|
* @since 4.1.0 Now returns rich metadata (image, name, description, verified)
|
|
7354
9259
|
*/
|
|
7355
|
-
getAllSwapUserAssets(walletAddress: string): Promise<
|
|
9260
|
+
getAllSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
7356
9261
|
/**
|
|
7357
9262
|
* Fetch available DEX tokens (token discovery)
|
|
7358
9263
|
*
|
|
@@ -7360,13 +9265,13 @@ export declare class LaunchpadSDK {
|
|
|
7360
9265
|
* Use for token discovery, listings, and market analysis.
|
|
7361
9266
|
*
|
|
7362
9267
|
* @category DEX Trading
|
|
7363
|
-
* @param options Fetch options (search,
|
|
9268
|
+
* @param options Fetch options (search, limit, page)
|
|
7364
9269
|
* @returns Promise<AvailableDexTokensResult> Paginated result with token metadata
|
|
7365
9270
|
* @since 4.1.0
|
|
7366
9271
|
*
|
|
7367
9272
|
* @example Fetch first page of available tokens
|
|
7368
9273
|
* ```typescript
|
|
7369
|
-
* const result = await sdk.fetchAvailableDexTokens({ limit: 20 });
|
|
9274
|
+
* const result = await sdk.fetchAvailableDexTokens({ limit: 20, page: 1 });
|
|
7370
9275
|
* console.log(`Found ${result.count} tokens on DEX`);
|
|
7371
9276
|
* result.tokens.forEach(token => {
|
|
7372
9277
|
* console.log(`${token.symbol}: ${token.name} (${token.image})`);
|
|
@@ -7375,7 +9280,7 @@ export declare class LaunchpadSDK {
|
|
|
7375
9280
|
*
|
|
7376
9281
|
* @example Search for tokens
|
|
7377
9282
|
* ```typescript
|
|
7378
|
-
* const result = await sdk.fetchAvailableDexTokens({ search: 'GALA', limit: 10 });
|
|
9283
|
+
* const result = await sdk.fetchAvailableDexTokens({ search: 'GALA', limit: 10, page: 1 });
|
|
7379
9284
|
* console.log(`Found ${result.count} tokens matching 'GALA'`);
|
|
7380
9285
|
* ```
|
|
7381
9286
|
*/
|
|
@@ -7428,7 +9333,7 @@ export declare class LaunchpadSDK {
|
|
|
7428
9333
|
* console.log(`Active swaps: ${poolInfo.swapCount}`);
|
|
7429
9334
|
* ```
|
|
7430
9335
|
*/
|
|
7431
|
-
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<
|
|
9336
|
+
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<PoolInfo>;
|
|
7432
9337
|
/**
|
|
7433
9338
|
* Get current market price for a DEX pool
|
|
7434
9339
|
*
|
|
@@ -7472,7 +9377,7 @@ export declare class LaunchpadSDK {
|
|
|
7472
9377
|
* @since 3.25.0
|
|
7473
9378
|
*
|
|
7474
9379
|
* @param ownerAddress - Wallet address (eth|0x... format or standard 0x...)
|
|
7475
|
-
* @param
|
|
9380
|
+
* @param pageSize - Optional page size for positions to return
|
|
7476
9381
|
* @param bookmarkOrOptions - Optional pagination bookmark (deprecated) or options object
|
|
7477
9382
|
* @param options - Optional options object with pricing configuration
|
|
7478
9383
|
* @returns Object with items array (liquidity positions), optional nextBookmark for pagination, and optional prices map
|
|
@@ -7593,7 +9498,7 @@ export declare class LaunchpadSDK {
|
|
|
7593
9498
|
fee: number;
|
|
7594
9499
|
tickLower: number;
|
|
7595
9500
|
tickUpper: number;
|
|
7596
|
-
}): Promise<
|
|
9501
|
+
}): Promise<GSwapPosition>;
|
|
7597
9502
|
/**
|
|
7598
9503
|
* Get liquidity position by position ID
|
|
7599
9504
|
*
|
|
@@ -7625,7 +9530,7 @@ export declare class LaunchpadSDK {
|
|
|
7625
9530
|
* );
|
|
7626
9531
|
* ```
|
|
7627
9532
|
*/
|
|
7628
|
-
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string,
|
|
9533
|
+
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string, unknown>, token1?: string | Record<string, unknown>, feeTier?: number, tickLower?: number, tickUpper?: number): Promise<GSwapPosition>;
|
|
7629
9534
|
/**
|
|
7630
9535
|
* Fetch a single liquidity position using ONLY the compound key (most efficient)
|
|
7631
9536
|
*
|
|
@@ -7713,7 +9618,7 @@ export declare class LaunchpadSDK {
|
|
|
7713
9618
|
tickLower: number;
|
|
7714
9619
|
tickUpper: number;
|
|
7715
9620
|
owner: string;
|
|
7716
|
-
}): Promise<
|
|
9621
|
+
}): Promise<GSwapEstimateRemoveLiquidityResult>;
|
|
7717
9622
|
/**
|
|
7718
9623
|
* Add liquidity using price range
|
|
7719
9624
|
*
|
|
@@ -7721,6 +9626,18 @@ export declare class LaunchpadSDK {
|
|
|
7721
9626
|
* The SDK automatically calculates the appropriate tick boundaries.
|
|
7722
9627
|
* Recommended for most users.
|
|
7723
9628
|
*
|
|
9629
|
+
* ## Token Format (IMPORTANT)
|
|
9630
|
+
*
|
|
9631
|
+
* **Use full `tokenClassKey` format** for token0 and token1.
|
|
9632
|
+
*
|
|
9633
|
+
* ```typescript
|
|
9634
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9635
|
+
* { token0: 'GALA|Unit|none|none', token1: 'GUSDC|Unit|none|eth:0xa0b...' }
|
|
9636
|
+
*
|
|
9637
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9638
|
+
* { token0: 'GALA', token1: 'GUSDC' } // Error!
|
|
9639
|
+
* ```
|
|
9640
|
+
*
|
|
7724
9641
|
* @category DEX Liquidity Management
|
|
7725
9642
|
* @since 3.25.0
|
|
7726
9643
|
*
|
|
@@ -7750,7 +9667,7 @@ export declare class LaunchpadSDK {
|
|
|
7750
9667
|
* console.log(`Position created: ${result.positionId}`);
|
|
7751
9668
|
* ```
|
|
7752
9669
|
*/
|
|
7753
|
-
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<
|
|
9670
|
+
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<GSwapAddLiquidityResult & {
|
|
7754
9671
|
timestamp?: Date;
|
|
7755
9672
|
wait?: (timeoutMs?: number) => Promise<void>;
|
|
7756
9673
|
}>;
|
|
@@ -7787,7 +9704,7 @@ export declare class LaunchpadSDK {
|
|
|
7787
9704
|
* console.log(`Position created: ${result.positionId}`);
|
|
7788
9705
|
* ```
|
|
7789
9706
|
*/
|
|
7790
|
-
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<
|
|
9707
|
+
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<GSwapAddLiquidityResult & {
|
|
7791
9708
|
timestamp?: Date;
|
|
7792
9709
|
wait?: (timeoutMs?: number) => Promise<void>;
|
|
7793
9710
|
}>;
|
|
@@ -7842,7 +9759,7 @@ export declare class LaunchpadSDK {
|
|
|
7842
9759
|
* });
|
|
7843
9760
|
* ```
|
|
7844
9761
|
*/
|
|
7845
|
-
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<
|
|
9762
|
+
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<GSwapAddLiquidityResult>;
|
|
7846
9763
|
/**
|
|
7847
9764
|
* Collect accumulated position fees
|
|
7848
9765
|
*
|
|
@@ -7866,7 +9783,7 @@ export declare class LaunchpadSDK {
|
|
|
7866
9783
|
* console.log(`Collected: ${result.amount0} token0, ${result.amount1} token1`);
|
|
7867
9784
|
* ```
|
|
7868
9785
|
*/
|
|
7869
|
-
collectSwapPositionFees(args: CollectFeesArgs): Promise<
|
|
9786
|
+
collectSwapPositionFees(args: CollectFeesArgs): Promise<GSwapAddLiquidityResult>;
|
|
7870
9787
|
/**
|
|
7871
9788
|
* Connect to WebSocket for real-time events
|
|
7872
9789
|
*
|