@gala-chain/launchpad-sdk 5.0.4-beta.6 → 5.0.4-beta.60
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 +163 -49
- package/README.md.bak +3174 -0
- package/dist/LaunchpadSDK.d.ts +10615 -0
- package/dist/LaunchpadSDK.d.ts.map +1 -0
- package/dist/ai-docs.json +5081 -1052
- 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 +49 -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 +776 -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/logger.d.ts +52 -0
- package/dist/examples/utils/logger.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 +147 -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/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/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/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 +115 -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 +68 -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/GalaChainGatewayClient.d.ts +227 -0
- package/dist/services/GalaChainGatewayClient.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/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/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/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 +2192 -404
- 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 +1 -1
- package/dist/src/config/environments.d.ts.map +1 -1
- package/dist/src/constants/endpoints.d.ts +522 -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 +147 -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/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/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/DexPoolService.d.ts +9 -11
- package/dist/src/services/DexPoolService.d.ts.map +1 -1
- package/dist/src/services/DexQuoteService.d.ts +5 -6
- 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 +4 -6
- package/dist/src/services/GSwapLiquidityMutationService.d.ts.map +1 -1
- package/dist/src/services/GSwapLiquidityQueryService.d.ts +2 -14
- 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 +2 -3
- package/dist/src/services/GSwapPoolQueryService.d.ts.map +1 -1
- package/dist/src/services/GSwapService.d.ts +11 -11
- package/dist/src/services/GSwapService.d.ts.map +1 -1
- package/dist/src/services/GSwapSwapService.d.ts +2 -2
- package/dist/src/services/GSwapSwapService.d.ts.map +1 -1
- package/dist/src/services/GalaChainBalanceService.d.ts +2 -2
- package/dist/src/services/GalaChainBalanceService.d.ts.map +1 -1
- package/dist/src/services/GalaChainGatewayClient.d.ts +3 -3
- package/dist/src/services/GalaChainGatewayClient.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/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/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/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 +14 -7
- 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/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 +115 -27
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/composite-pool.dto.d.ts +4 -4
- 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/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 +1 -1
- package/dist/src/utils/error-utils.d.ts.map +1 -1
- package/dist/src/utils/errors.d.ts +2 -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 +139 -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/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 +602 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/composite-pool.dto.d.ts +103 -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/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 +458 -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 +548 -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 +139 -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 +131 -33
- 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
|
@@ -1,42 +1,56 @@
|
|
|
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 type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type { CreateApiKeyOptions, UpdateApiKeyOptions, ListApiKeysOptions, CreateApiKeyResponse, ApiKeyData, ApiKeyListResponse } from './types/api-key.dto';
|
|
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 type { StreamEventCallbacks } from './services/StreamWebSocketService';
|
|
6
|
+
import type { GetAIModerationOptions, GetAIModerationResult, GetAIModerationSettingsResult, GetAIModerationStatusResult, TriggerAIModerationOptions, TriggerAIModerationResult, UpdateAIModerationSettingsOptions, UpdateAIModerationSettingsResult } from './types/ai-moderation.dto';
|
|
7
|
+
import type { ApiKeyData, ApiKeyListResponse, CreateApiKeyOptions, CreateApiKeyResponse, ListApiKeysOptions, UpdateApiKeyOptions } from './types/api-key.dto';
|
|
8
|
+
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
9
|
import type { BurnTokensData, BurnTokensResult } from './types/burn.dto';
|
|
10
|
+
import type { FlushResult } from './types/cache-management.dto';
|
|
11
|
+
import type { CreateChatMessageOptions, CreateChatMessageResult, GetChatMessagesOptions, GetChatMessagesResult, UpdateChatMessageOptions, UpdateChatMessageResult } from './types/chat-messages.dto';
|
|
12
|
+
import type { CommentsResult, CreateCommentOptions, CreateCommentResult, DeleteCommentResult, GetCommentsOptions, UpdateCommentOptions, UpdateCommentResult } from './types/comments.dto';
|
|
13
|
+
import type { AddressFormat, ApiResponse, SDKConfig, TokenClassKey, TokenId } from './types/common';
|
|
14
|
+
import type { ActionFlagOptions, ActionFlagResult, CreateFlagOptions, CreateFlagResult, DismissFlagOptions, DismissFlagResult, FlagListResult, ListFlagsOptions, ListGlobalFlagsOptions } from './types/content-flag.dto';
|
|
15
|
+
import type { AddContentReactionOptions, AddContentReactionResult, RemoveContentReactionOptions, RemoveContentReactionResult } from './types/content-reactions.dto';
|
|
16
|
+
import type { FetchTokenStatsResult } from './types/engagement-stats.dto';
|
|
17
|
+
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';
|
|
18
|
+
import type { LockTokensData, LockTokensResult, UnlockTokensData, UnlockTokensResult } from './types/lock.dto';
|
|
19
|
+
import type { CreateMessageOptions, CreateMessageResult, DeleteMessageResult, FetchMessagesOptions, FetchMessagesResult, GetPinnedMessageResult, MessageStats, PinMessageResult, UpdateMessageOptions, UpdateMessageResult, UpdateTokenConfigOptions } from './types/messages.dto';
|
|
20
|
+
import type { ClaimModeratorInviteOptions, ClaimModeratorInviteResult, CreateModeratorInviteOptions, CreateModeratorInviteResult, GetModeratedTokensOptions, ListModeratorInvitesOptions, ModeratedTokensResult, ModeratorInviteListResult, PublicInviteInfo, UpdateInviteRoleOptions, UpdateInviteRoleResult, UpdateModeratorInviteOptions, UpdateModeratorInviteResult } from './types/moderator.dto';
|
|
21
|
+
import type { ClaimCollectionParams, ClaimCollectionResult, CreateTokenClassParams, CreateTokenClassResult, EstimateMintFeeParams, EstimateNftFeesParams, FetchTokenClassesParams, MintNftParams, MintNftResult, NftBalance, NftCollectionAuthorization, NftFeeEstimate, NftTokenClassWithSupply } from './types/nft.dto';
|
|
22
|
+
import type { GetHomeOEmbedJsonResult, GetHomeOEmbedOptions, GetPoolOEmbedJsonResult, GetPoolOEmbedOptions, GetProfileOEmbedJsonResult, GetProfileOEmbedOptions } from './types/oembed.dto';
|
|
23
|
+
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';
|
|
24
|
+
import type { PlatformConfig, UpdatePlatformConfigOptions } from './types/platform-config.dto';
|
|
25
|
+
import type { GetPlatformStatsResult } from './types/platform-stats.dto';
|
|
26
|
+
import type { GetRestrictedNamesResult, UpdateRestrictedNamesRequest, UpdateRestrictedNamesResult } from './types/restricted-names.dto';
|
|
27
27
|
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 {
|
|
28
|
+
import type { LoginResponse, RefreshResponse, SessionInfo } from './types/session-auth.dto';
|
|
29
|
+
import type { EngagementStatsResult, GetEngagementStatsOptions, GlobalChatStatus } from './types/stream-chat.dto';
|
|
30
|
+
import type { AddSimulcastTargetOptions, AddSimulcastTargetResult, FetchRecordingsOptions, GetStreamRoleOptions, GetTokenAccessOptions, GlobalStreamingStatus, RecordingDownloadResult, RecordingsResult, ResetStreamKeyResult, SimulcastTargetsResult, StartStreamResult, StreamCredentialsResult, StreamRoleResponse, StreamSubscribedEvent, TokenAccessResult } from './types/streaming.dto';
|
|
31
|
+
import type { BanTokenOptions, BanTokenResult, GetTokenBanOptions, ListTokenBansOptions, TokenBanListResult, TokenBanStatusResult, UnbanTokenOptions, UnbanTokenResult } from './types/token-ban.dto';
|
|
32
|
+
import type { PoolDetailsData, TradesResult } from './types/trade.dto';
|
|
33
|
+
import type { GetTradesOptions, TradesQueryResult } from './types/trades-query.dto';
|
|
34
|
+
import type { TransferGalaData, TransferTokenData } from './types/transfer.dto';
|
|
35
|
+
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';
|
|
36
|
+
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';
|
|
37
|
+
import type { EngagementStatsUpdatedEvent } from './types/websocket-events.dto';
|
|
38
|
+
import type { GetTokenWeeklyHistoryOptions, GetTokenWeeklyHistoryResult, GetWeeklyChallengeOptions, GetWeeklyChallengeResult } from './types/weekly-challenge.dto';
|
|
39
|
+
import type { FetchWrappableTokensOptions, FetchWrappableTokensResult, IsTokenWrappableResult, UnwrapTokenOptions, WrappableToken, WrapTokenOptions, WrapUnwrapFeeEstimate, WrapUnwrapResult, WrapUnwrapStatusResult } from './types/wrappable-token.dto';
|
|
40
|
+
import { TransactionFailedError, WebSocketError, WebSocketTimeoutError } from './utils/websocket-errors';
|
|
41
|
+
import type { WalletProvider } from './wallet/types';
|
|
42
|
+
export { TransactionFailedError, WebSocketError, WebSocketTimeoutError, };
|
|
43
|
+
import type { CalculateDexPoolQuoteOptions, CompositePoolDataResult, DexPoolQuoteResult, FetchCompositePoolDataOptions } from './types/composite-pool.dto';
|
|
44
|
+
import type { DexPoolData, DexPoolsResult, FetchDexPoolsOptions } from './types/dex-pool.dto';
|
|
45
|
+
import type { AddLiquidityByPriceArgs, AddLiquidityByTicksArgs, AvailableDexTokensResult, CollectFeesArgs, DexToken, ExecuteSwapResult, FetchAvailableDexTokensOptions, GetLiquidityPositionsOptions, GetLiquidityPositionsResult, GSwapPosition, PoolInfo, PoolPriceData, RemoveLiquidityArgs, SwapQuoteResult, UserAsset } from './types/gswap.dto';
|
|
46
|
+
import type { GSwapAddLiquidityResult, GSwapEstimateRemoveLiquidityResult } from './types/gswap-responses.types';
|
|
36
47
|
import type { LiquidityChangedCallback, LiquidityCleanupFunction, SubscribeLiquidityOptions } from './types/liquidity-monitor.dto';
|
|
37
|
-
import type {
|
|
38
|
-
import type {
|
|
39
|
-
import type {
|
|
48
|
+
import type { BuyTokenOptions, CalculateBuyAmountForGraduationOptions, CalculateBuyAmountLocalOptions, CalculateBuyAmountOptions, CalculateSellAmountLocalOptions, CalculateSellAmountOptions, FetchTokensCreatedOptions, FetchTokensHeldOptions, FetchTokenSpotPriceParams, FetchTradesOptions, FetchVolumeDataOptions, GraduateTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions } from './types/options.dto';
|
|
49
|
+
import type { FetchPriceHistoryOptions, PriceHistoryResult } from './types/priceHistory.dto';
|
|
50
|
+
import type { GetPinnedMessageResult as LegacyGetPinnedMessageResult, PinMessageResult as LegacyPinMessageResult, UnpinMessageResult as LegacyUnpinMessageResult } from './types/stream-chat.dto';
|
|
51
|
+
import type { AvailableRolesResponse } from './types/streaming.dto';
|
|
52
|
+
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';
|
|
53
|
+
import type { CleanupFunction, SubscribeSwapOptions, SwapEventCallback, SwapMonitorConfig } from './types/swap-monitor.dto';
|
|
40
54
|
/**
|
|
41
55
|
* Configuration for initializing the Launchpad SDK
|
|
42
56
|
*
|
|
@@ -72,11 +86,19 @@ import type { StreamStatusChangedEvent, UserBannedEvent, UserUnbannedEvent, BanE
|
|
|
72
86
|
* Contains configuration values excluding sensitive wallet data
|
|
73
87
|
* @since 4.0.20
|
|
74
88
|
*/
|
|
75
|
-
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet'> & {
|
|
89
|
+
export type LaunchpadSDKConfigResponse = Omit<LaunchpadSDKConfig, 'wallet' | 'walletProvider' | 'streamAdminApiKey' | 'userApiKey' | 'accessToken' | 'headers'> & {
|
|
76
90
|
/** Current environment (STAGE or PROD) */
|
|
77
91
|
environment: 'STAGE' | 'PROD';
|
|
78
92
|
/** GalaChain gas fee in GALA (fixed at "1" GALA) */
|
|
79
93
|
gasFee: string;
|
|
94
|
+
/** Stream admin API key presence indicator — always '[REDACTED]' if configured */
|
|
95
|
+
streamAdminApiKey?: '[REDACTED]';
|
|
96
|
+
/** User API key presence indicator — always '[REDACTED]' if configured */
|
|
97
|
+
userApiKey?: '[REDACTED]';
|
|
98
|
+
/** Access token presence indicator — always '[REDACTED]' if configured */
|
|
99
|
+
accessToken?: '[REDACTED]';
|
|
100
|
+
/** Custom header keys with values always '[REDACTED]' */
|
|
101
|
+
headers?: Record<string, '[REDACTED]'>;
|
|
80
102
|
};
|
|
81
103
|
export interface LaunchpadSDKConfig extends SDKConfig {
|
|
82
104
|
/**
|
|
@@ -85,8 +107,45 @@ export interface LaunchpadSDKConfig extends SDKConfig {
|
|
|
85
107
|
* - Optional for: Pool queries, price fetches, balance checks, calculations, metadata retrieval
|
|
86
108
|
*
|
|
87
109
|
* If not provided, SDK operates in read-only mode. Call setWallet() later to enable signing operations.
|
|
110
|
+
*
|
|
111
|
+
* @deprecated Use `walletProvider` instead for browser wallet support
|
|
112
|
+
*/
|
|
113
|
+
wallet?: Wallet | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* A WalletProvider for authentication (optional)
|
|
116
|
+
*
|
|
117
|
+
* Supports both private key and browser extension wallets (MetaMask, Coinbase, etc.).
|
|
118
|
+
* - Required for: Trading (buy/sell), transfers, token creation, profile updates
|
|
119
|
+
* - Optional for: Pool queries, price fetches, balance checks, calculations, metadata retrieval
|
|
120
|
+
*
|
|
121
|
+
* If not provided, SDK operates in read-only mode.
|
|
122
|
+
*
|
|
123
|
+
* @example Using private key (Node.js/CLI)
|
|
124
|
+
* ```typescript
|
|
125
|
+
* import { PrivateKeyProvider } from '@gala-chain/launchpad-sdk/wallet';
|
|
126
|
+
*
|
|
127
|
+
* const provider = new PrivateKeyProvider('0x...');
|
|
128
|
+
* const sdk = new LaunchpadSDK({
|
|
129
|
+
* walletProvider: provider,
|
|
130
|
+
* env: 'PROD'
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* @example Using browser wallet (React/Vue)
|
|
135
|
+
* ```typescript
|
|
136
|
+
* import { ExternalWalletProvider, detectWallets } from '@gala-chain/launchpad-sdk/wallet';
|
|
137
|
+
*
|
|
138
|
+
* const { wallets } = await detectWallets();
|
|
139
|
+
* const provider = new ExternalWalletProvider(wallets[0].provider);
|
|
140
|
+
* await provider.connect();
|
|
141
|
+
*
|
|
142
|
+
* const sdk = new LaunchpadSDK({
|
|
143
|
+
* walletProvider: provider,
|
|
144
|
+
* env: 'PROD'
|
|
145
|
+
* });
|
|
146
|
+
* ```
|
|
88
147
|
*/
|
|
89
|
-
|
|
148
|
+
walletProvider?: WalletProvider;
|
|
90
149
|
/** Optional GalaChain gateway URL override - defaults based on main API environment */
|
|
91
150
|
galaChainBaseUrl?: string;
|
|
92
151
|
/** Optional Bundle service URL override - defaults based on main API environment */
|
|
@@ -321,16 +380,22 @@ export declare class LaunchpadSDK {
|
|
|
321
380
|
private _streamingEventService;
|
|
322
381
|
private _banService;
|
|
323
382
|
private _tokenBanService;
|
|
383
|
+
private _aiModerationService;
|
|
324
384
|
private _apiKeyService;
|
|
325
385
|
private _moderatorService;
|
|
326
386
|
private _flagService;
|
|
327
387
|
private _overseerService;
|
|
328
|
-
private
|
|
388
|
+
private _websocketAdminService;
|
|
329
389
|
private _contentReactionService;
|
|
330
|
-
private
|
|
331
|
-
private
|
|
332
|
-
private
|
|
390
|
+
private _messagesService;
|
|
391
|
+
private _restrictedNamesService;
|
|
392
|
+
private _platformConfigService;
|
|
393
|
+
private _eventsBatcherService;
|
|
394
|
+
private _weeklyChallengeService;
|
|
395
|
+
private _oembedService;
|
|
396
|
+
private _platformStatsService;
|
|
333
397
|
private readonly nftCollectionService;
|
|
398
|
+
private readonly tradingQuotesService;
|
|
334
399
|
private readonly launchpadAPI;
|
|
335
400
|
constructor(config: LaunchpadSDKConfig);
|
|
336
401
|
/**
|
|
@@ -367,8 +432,7 @@ export declare class LaunchpadSDK {
|
|
|
367
432
|
* const address = sdk.getAddress();
|
|
368
433
|
* const pools = await sdk.launchpad.fetchPools({
|
|
369
434
|
* creatorAddress: address,
|
|
370
|
-
*
|
|
371
|
-
* limit: 10
|
|
435
|
+
* pageSize: 10
|
|
372
436
|
* });
|
|
373
437
|
* ```
|
|
374
438
|
*
|
|
@@ -475,6 +539,30 @@ export declare class LaunchpadSDK {
|
|
|
475
539
|
* ```
|
|
476
540
|
*/
|
|
477
541
|
setWallet(wallet: Wallet): void;
|
|
542
|
+
/**
|
|
543
|
+
* Sets or updates the wallet provider for authentication
|
|
544
|
+
*
|
|
545
|
+
* Use this method to dynamically configure wallet authentication after SDK initialization.
|
|
546
|
+
* This is the preferred method for browser wallet integrations.
|
|
547
|
+
*
|
|
548
|
+
* @param provider The wallet provider to set (or undefined to clear)
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```typescript
|
|
552
|
+
* import { ExternalWalletProvider, detectWallets } from '@gala-chain/launchpad-sdk/wallet';
|
|
553
|
+
*
|
|
554
|
+
* // Detect available wallets
|
|
555
|
+
* const { wallets } = await detectWallets();
|
|
556
|
+
*
|
|
557
|
+
* // Create provider from detected wallet
|
|
558
|
+
* const provider = new ExternalWalletProvider(wallets[0].provider);
|
|
559
|
+
* await provider.connect();
|
|
560
|
+
*
|
|
561
|
+
* // Set on SDK
|
|
562
|
+
* sdk.setWalletProvider(provider);
|
|
563
|
+
* ```
|
|
564
|
+
*/
|
|
565
|
+
setWalletProvider(provider: WalletProvider | undefined): void;
|
|
478
566
|
/**
|
|
479
567
|
* Gets the currently configured wallet
|
|
480
568
|
*
|
|
@@ -509,6 +597,21 @@ export declare class LaunchpadSDK {
|
|
|
509
597
|
* ```
|
|
510
598
|
*/
|
|
511
599
|
getWallet(): Wallet | undefined;
|
|
600
|
+
/**
|
|
601
|
+
* Access the events tracking service for batching and flushing events
|
|
602
|
+
*
|
|
603
|
+
* Lazy-initialized on first access.
|
|
604
|
+
*
|
|
605
|
+
* @returns EventsBatcherService instance
|
|
606
|
+
* @since 8.2.0
|
|
607
|
+
*/
|
|
608
|
+
get events(): EventsBatcherService;
|
|
609
|
+
/**
|
|
610
|
+
* Returns the configured wallet provider (if any)
|
|
611
|
+
*
|
|
612
|
+
* @returns The wallet provider or undefined if not configured
|
|
613
|
+
*/
|
|
614
|
+
getWalletProvider(): WalletProvider | undefined;
|
|
512
615
|
/**
|
|
513
616
|
* Checks if a wallet is configured
|
|
514
617
|
*
|
|
@@ -657,7 +760,7 @@ export declare class LaunchpadSDK {
|
|
|
657
760
|
*
|
|
658
761
|
* @example Basic pool fetching
|
|
659
762
|
* ```typescript
|
|
660
|
-
* const result = await sdk.fetchPools({ type: 'recent',
|
|
763
|
+
* const result = await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
661
764
|
* console.log(`Fetched ${result.items.length} pools`);
|
|
662
765
|
* console.log(`Total pools: ${result.total}`);
|
|
663
766
|
* ```
|
|
@@ -669,7 +772,7 @@ export declare class LaunchpadSDK {
|
|
|
669
772
|
* console.log('Cached tokens:', cacheInfo.totalTokens); // 0
|
|
670
773
|
*
|
|
671
774
|
* // Fetch pools - automatically warms cache
|
|
672
|
-
* await sdk.fetchPools({
|
|
775
|
+
* await sdk.fetchPools({ pageSize: 20 });
|
|
673
776
|
*
|
|
674
777
|
* // After fetching - cache is warmed
|
|
675
778
|
* cacheInfo = sdk.getCacheInfo();
|
|
@@ -688,7 +791,7 @@ export declare class LaunchpadSDK {
|
|
|
688
791
|
* @example Performance optimization with cache
|
|
689
792
|
* ```typescript
|
|
690
793
|
* // Warm cache once
|
|
691
|
-
* await sdk.fetchPools({ type: 'popular',
|
|
794
|
+
* await sdk.fetchPools({ type: 'popular', pageSize: 50 });
|
|
692
795
|
*
|
|
693
796
|
* // All subsequent calculations for these tokens are instant
|
|
694
797
|
* const tokens = ['token1', 'token2', 'token3'];
|
|
@@ -710,7 +813,7 @@ export declare class LaunchpadSDK {
|
|
|
710
813
|
* Fetch all available pools with automatic pagination
|
|
711
814
|
*
|
|
712
815
|
* Convenience method that fetches all available pools by automatically
|
|
713
|
-
* handling pagination
|
|
816
|
+
* handling pagination through cursor-based iteration.
|
|
714
817
|
*
|
|
715
818
|
* **Cache Warming:** Maintains the same opportunistic cache warming as fetchPools(),
|
|
716
819
|
* caching immutable token metadata for all returned pools to enable instant local calculations.
|
|
@@ -781,8 +884,7 @@ export declare class LaunchpadSDK {
|
|
|
781
884
|
* const result = await sdk.fetchDexPools({
|
|
782
885
|
* sortBy: 'volume1d',
|
|
783
886
|
* sortOrder: 'desc',
|
|
784
|
-
*
|
|
785
|
-
* page: 1
|
|
887
|
+
* pageSize: 10
|
|
786
888
|
* });
|
|
787
889
|
*
|
|
788
890
|
* console.log(`Found ${result.total} total pools`);
|
|
@@ -797,7 +899,7 @@ export declare class LaunchpadSDK {
|
|
|
797
899
|
* ```typescript
|
|
798
900
|
* const galaPools = await sdk.fetchDexPools({
|
|
799
901
|
* search: 'GALA',
|
|
800
|
-
*
|
|
902
|
+
* pageSize: 20
|
|
801
903
|
* });
|
|
802
904
|
*
|
|
803
905
|
* console.log(`Found ${galaPools.items.length} GALA trading pairs`);
|
|
@@ -808,7 +910,7 @@ export declare class LaunchpadSDK {
|
|
|
808
910
|
* const topTvl = await sdk.fetchDexPools({
|
|
809
911
|
* sortBy: 'tvl',
|
|
810
912
|
* sortOrder: 'desc',
|
|
811
|
-
*
|
|
913
|
+
* pageSize: 5
|
|
812
914
|
* });
|
|
813
915
|
* ```
|
|
814
916
|
*/
|
|
@@ -1054,7 +1156,126 @@ export declare class LaunchpadSDK {
|
|
|
1054
1156
|
* console.log(`Found ${whales.length} whales with >5% ownership`);
|
|
1055
1157
|
* ```
|
|
1056
1158
|
*/
|
|
1057
|
-
fetchTokenDistribution(tokenName: string): Promise<
|
|
1159
|
+
fetchTokenDistribution(tokenName: string): Promise<TokenDistributionResult>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Get the top N token holders by balance
|
|
1162
|
+
*
|
|
1163
|
+
* Convenience wrapper around `fetchTokenDistribution()` that returns the top
|
|
1164
|
+
* holders sorted by balance descending, each enriched with their rank.
|
|
1165
|
+
*
|
|
1166
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1167
|
+
* @param limit - Number of top holders to return (default: 10, max: 100)
|
|
1168
|
+
* @returns Array of top holders with address, balance, percentage, and rank
|
|
1169
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1170
|
+
* @since 9.2.0
|
|
1171
|
+
* @category Token Information
|
|
1172
|
+
*
|
|
1173
|
+
* @example
|
|
1174
|
+
* ```typescript
|
|
1175
|
+
* const topHolders = await sdk.getTopHolders('anime', 5);
|
|
1176
|
+
* topHolders.forEach(h => console.log(`#${h.rank} ${h.address}: ${h.balance} (${h.percentage}%)`));
|
|
1177
|
+
* ```
|
|
1178
|
+
*/
|
|
1179
|
+
getTopHolders(tokenName: string, limit?: number): Promise<Array<TokenHolder & {
|
|
1180
|
+
rank: number;
|
|
1181
|
+
}>>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Get the total holder count and combined balance for a token
|
|
1184
|
+
*
|
|
1185
|
+
* Convenience wrapper around `fetchTokenDistribution()`.
|
|
1186
|
+
*
|
|
1187
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1188
|
+
* @returns Object with count (number of holders) and totalBalance (total supply across all holders)
|
|
1189
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1190
|
+
* @since 9.2.0
|
|
1191
|
+
* @category Token Information
|
|
1192
|
+
*
|
|
1193
|
+
* @example
|
|
1194
|
+
* ```typescript
|
|
1195
|
+
* const { count, totalBalance } = await sdk.getHolderCount('anime');
|
|
1196
|
+
* console.log(`${count} holders, total supply: ${totalBalance}`);
|
|
1197
|
+
* ```
|
|
1198
|
+
*/
|
|
1199
|
+
getHolderCount(tokenName: string): Promise<{
|
|
1200
|
+
count: number;
|
|
1201
|
+
totalBalance: string;
|
|
1202
|
+
}>;
|
|
1203
|
+
/**
|
|
1204
|
+
* Get a user's holder rank and balance for a token
|
|
1205
|
+
*
|
|
1206
|
+
* Returns the user's position in the holder distribution (rank 1 = largest holder),
|
|
1207
|
+
* their balance, and the total holder count. Returns null if the user holds no tokens.
|
|
1208
|
+
*
|
|
1209
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1210
|
+
* @param userAddress - User's wallet address (eth|... format)
|
|
1211
|
+
* @returns Rank info or null if user is not a holder
|
|
1212
|
+
* @throws {ValidationError} If tokenName or userAddress is invalid
|
|
1213
|
+
* @since 9.2.0
|
|
1214
|
+
* @category Token Information
|
|
1215
|
+
*
|
|
1216
|
+
* @example
|
|
1217
|
+
* ```typescript
|
|
1218
|
+
* const rank = await sdk.getHolderRank('anime', 'eth|0x1234...');
|
|
1219
|
+
* if (rank) {
|
|
1220
|
+
* console.log(`Rank #${rank.rank} of ${rank.holderCount} holders, balance: ${rank.balance}`);
|
|
1221
|
+
* }
|
|
1222
|
+
* ```
|
|
1223
|
+
*/
|
|
1224
|
+
getHolderRank(tokenName: string, userAddress: string): Promise<{
|
|
1225
|
+
rank: number;
|
|
1226
|
+
balance: string;
|
|
1227
|
+
holderCount: number;
|
|
1228
|
+
} | null>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Get holders within a specific balance range
|
|
1231
|
+
*
|
|
1232
|
+
* Convenience wrapper around `fetchTokenDistribution()` that filters holders
|
|
1233
|
+
* by balance and returns them enriched with their rank.
|
|
1234
|
+
*
|
|
1235
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1236
|
+
* @param options - Filter options
|
|
1237
|
+
* @param options.minBalance - Minimum balance (no floor if omitted)
|
|
1238
|
+
* @param options.maxBalance - Maximum balance (no ceiling if omitted)
|
|
1239
|
+
* @param options.limit - Maximum results to return (default: 100, max: 1000)
|
|
1240
|
+
* @returns Filtered holders with rank
|
|
1241
|
+
* @throws {ValidationError} If tokenName is invalid
|
|
1242
|
+
* @since 9.2.0
|
|
1243
|
+
* @category Token Information
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```typescript
|
|
1247
|
+
* const whales = await sdk.getHoldersByBalance('anime', { minBalance: 10000 });
|
|
1248
|
+
* console.log(`${whales.length} whales hold ≥10,000 tokens`);
|
|
1249
|
+
* ```
|
|
1250
|
+
*/
|
|
1251
|
+
getHoldersByBalance(tokenName: string, options?: {
|
|
1252
|
+
minBalance?: number;
|
|
1253
|
+
maxBalance?: number;
|
|
1254
|
+
limit?: number;
|
|
1255
|
+
}): Promise<Array<TokenHolder & {
|
|
1256
|
+
rank: number;
|
|
1257
|
+
}>>;
|
|
1258
|
+
/**
|
|
1259
|
+
* Get recent trade history for a specific holder
|
|
1260
|
+
*
|
|
1261
|
+
* Returns trades that affected a user's holdings for a token, delegating to
|
|
1262
|
+
* `getTrades()` with userAddress and tokenName filters.
|
|
1263
|
+
*
|
|
1264
|
+
* @param tokenName - Token name (e.g. 'anime')
|
|
1265
|
+
* @param userAddress - Holder's wallet address
|
|
1266
|
+
* @param limit - Number of recent trades to return (default: 20, max: 100)
|
|
1267
|
+
* @returns Paginated trade history result
|
|
1268
|
+
* @throws {ValidationError} If tokenName or userAddress is invalid
|
|
1269
|
+
* @since 9.2.0
|
|
1270
|
+
* @category Trades
|
|
1271
|
+
*
|
|
1272
|
+
* @example
|
|
1273
|
+
* ```typescript
|
|
1274
|
+
* const history = await sdk.getHolderHistory('anime', 'eth|0x1234...', 10);
|
|
1275
|
+
* history.trades.forEach(t => console.log(`${t.txnType}: ${t.inputAmount} → ${t.outputAmount}`));
|
|
1276
|
+
* ```
|
|
1277
|
+
*/
|
|
1278
|
+
getHolderHistory(tokenName: string, userAddress: string, limit?: number): Promise<TradesQueryResult>;
|
|
1058
1279
|
/**
|
|
1059
1280
|
* Fetch a user's holder context for a specific token
|
|
1060
1281
|
*
|
|
@@ -1081,7 +1302,7 @@ export declare class LaunchpadSDK {
|
|
|
1081
1302
|
* }
|
|
1082
1303
|
* ```
|
|
1083
1304
|
*/
|
|
1084
|
-
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<
|
|
1305
|
+
fetchUserHolderContext(tokenName: string, userAddress: string): Promise<UserHolderContext>;
|
|
1085
1306
|
/**
|
|
1086
1307
|
* Fetch token achievement badges and metadata
|
|
1087
1308
|
*
|
|
@@ -1105,7 +1326,7 @@ export declare class LaunchpadSDK {
|
|
|
1105
1326
|
* });
|
|
1106
1327
|
* ```
|
|
1107
1328
|
*/
|
|
1108
|
-
fetchTokenBadges(tokenName: string): Promise<
|
|
1329
|
+
fetchTokenBadges(tokenName: string): Promise<TokenBadgesResult>;
|
|
1109
1330
|
/**
|
|
1110
1331
|
* Fetch USD spot price for any token with smart routing
|
|
1111
1332
|
*
|
|
@@ -1566,7 +1787,7 @@ export declare class LaunchpadSDK {
|
|
|
1566
1787
|
* console.log(`January volume: ${volumeData.reduce((sum, p) => sum + p.volume, 0)}`);
|
|
1567
1788
|
* ```
|
|
1568
1789
|
*/
|
|
1569
|
-
fetchVolumeData(options: FetchVolumeDataOptions): Promise<
|
|
1790
|
+
fetchVolumeData(options: FetchVolumeDataOptions): Promise<GraphDataResult>;
|
|
1570
1791
|
/**
|
|
1571
1792
|
* Fetch trade history with optional filters and pagination
|
|
1572
1793
|
*
|
|
@@ -1577,8 +1798,7 @@ export declare class LaunchpadSDK {
|
|
|
1577
1798
|
* @category Trading Data
|
|
1578
1799
|
* @param options Trade fetching options with required tokenName
|
|
1579
1800
|
* @param options.tokenName - Token name to fetch trades for (required)
|
|
1580
|
-
* @param options.
|
|
1581
|
-
* @param options.limit - Items per page, defaults to 20
|
|
1801
|
+
* @param options.pageSize - Items per page, defaults to 20
|
|
1582
1802
|
* @param options.type - Filter by trade type: 'buy' or 'sell' (optional)
|
|
1583
1803
|
* @param options.address - Filter by wallet address (optional)
|
|
1584
1804
|
* @param options.startDate - Filter trades after this date (optional)
|
|
@@ -1592,8 +1812,7 @@ export declare class LaunchpadSDK {
|
|
|
1592
1812
|
* ```typescript
|
|
1593
1813
|
* const trades = await sdk.fetchTrades({
|
|
1594
1814
|
* tokenName: 'anime',
|
|
1595
|
-
*
|
|
1596
|
-
* limit: 50
|
|
1815
|
+
* pageSize: 50
|
|
1597
1816
|
* });
|
|
1598
1817
|
* console.log(`Found ${trades.total} trades`);
|
|
1599
1818
|
* trades.trades.forEach(trade => {
|
|
@@ -1606,7 +1825,7 @@ export declare class LaunchpadSDK {
|
|
|
1606
1825
|
* const buys = await sdk.fetchTrades({
|
|
1607
1826
|
* tokenName: 'anime',
|
|
1608
1827
|
* type: 'buy',
|
|
1609
|
-
*
|
|
1828
|
+
* pageSize: 20
|
|
1610
1829
|
* });
|
|
1611
1830
|
* console.log(`Recent buy trades: ${buys.trades.length}`);
|
|
1612
1831
|
* ```
|
|
@@ -1622,7 +1841,7 @@ export declare class LaunchpadSDK {
|
|
|
1622
1841
|
* console.log(`My January trades: ${myTrades.total}`);
|
|
1623
1842
|
* ```
|
|
1624
1843
|
*/
|
|
1625
|
-
fetchTrades(options: FetchTradesOptions): Promise<
|
|
1844
|
+
fetchTrades(options: FetchTradesOptions): Promise<TradesResult>;
|
|
1626
1845
|
/**
|
|
1627
1846
|
* Fetch GALA token balance for a wallet address
|
|
1628
1847
|
*
|
|
@@ -1777,6 +1996,55 @@ export declare class LaunchpadSDK {
|
|
|
1777
1996
|
* @since 6.x.0
|
|
1778
1997
|
*/
|
|
1779
1998
|
private getTokenBanService;
|
|
1999
|
+
/**
|
|
2000
|
+
* Get or create the AIModerationService instance.
|
|
2001
|
+
*
|
|
2002
|
+
* Lazily initializes the AIModerationService on first use.
|
|
2003
|
+
* The service handles REST API calls for AI-powered content moderation
|
|
2004
|
+
* (overseer-only).
|
|
2005
|
+
*
|
|
2006
|
+
* @returns Configured AIModerationService instance
|
|
2007
|
+
*
|
|
2008
|
+
* @internal This is a private helper method for AI moderation operations
|
|
2009
|
+
* @since 6.15.0
|
|
2010
|
+
*/
|
|
2011
|
+
private getAIModerationService;
|
|
2012
|
+
/**
|
|
2013
|
+
* Get or create the WeeklyChallengeService instance.
|
|
2014
|
+
*
|
|
2015
|
+
* Lazily initializes the WeeklyChallengeService on first use.
|
|
2016
|
+
* The service handles REST API calls for weekly challenge leaderboard data.
|
|
2017
|
+
*
|
|
2018
|
+
* @returns Configured WeeklyChallengeService instance
|
|
2019
|
+
*
|
|
2020
|
+
* @internal This is a private helper method for weekly challenge operations
|
|
2021
|
+
* @since 9.0.0
|
|
2022
|
+
*/
|
|
2023
|
+
private getWeeklyChallengeService;
|
|
2024
|
+
/**
|
|
2025
|
+
* Get or create the OEmbedService instance.
|
|
2026
|
+
*
|
|
2027
|
+
* Lazily initializes the OEmbedService on first use.
|
|
2028
|
+
* The service handles REST API calls for oEmbed metadata.
|
|
2029
|
+
*
|
|
2030
|
+
* @returns Configured OEmbedService instance
|
|
2031
|
+
*
|
|
2032
|
+
* @internal This is a private helper method for oEmbed operations
|
|
2033
|
+
* @since 9.0.0
|
|
2034
|
+
*/
|
|
2035
|
+
private getOEmbedService;
|
|
2036
|
+
/**
|
|
2037
|
+
* Get or create the PlatformStatsService instance.
|
|
2038
|
+
*
|
|
2039
|
+
* Lazily initializes the PlatformStatsService on first use.
|
|
2040
|
+
* The service handles REST API calls for platform statistics.
|
|
2041
|
+
*
|
|
2042
|
+
* @returns Configured PlatformStatsService instance
|
|
2043
|
+
*
|
|
2044
|
+
* @internal This is a private helper method for platform stats operations
|
|
2045
|
+
* @since 9.0.0
|
|
2046
|
+
*/
|
|
2047
|
+
private getPlatformStatsService;
|
|
1780
2048
|
/**
|
|
1781
2049
|
* Get or create the ApiKeyService instance.
|
|
1782
2050
|
*
|
|
@@ -1829,14 +2097,17 @@ export declare class LaunchpadSDK {
|
|
|
1829
2097
|
*/
|
|
1830
2098
|
private getOverseerService;
|
|
1831
2099
|
/**
|
|
1832
|
-
* Get or create the
|
|
2100
|
+
* Get or create the WebSocketAdminService instance.
|
|
1833
2101
|
*
|
|
1834
|
-
* Lazily initializes the
|
|
1835
|
-
*
|
|
2102
|
+
* Lazily initializes the WebSocketAdminService on first use.
|
|
2103
|
+
* The service handles WebSocket event emission and connected client management.
|
|
1836
2104
|
*
|
|
1837
|
-
* @
|
|
2105
|
+
* @returns Configured WebSocketAdminService instance
|
|
2106
|
+
*
|
|
2107
|
+
* @internal This is a private helper method for WebSocket admin operations
|
|
2108
|
+
* @since 5.15.0
|
|
1838
2109
|
*/
|
|
1839
|
-
private
|
|
2110
|
+
private getWebSocketAdminService;
|
|
1840
2111
|
/**
|
|
1841
2112
|
* Get or create the ContentReactionService instance.
|
|
1842
2113
|
*
|
|
@@ -1848,27 +2119,44 @@ export declare class LaunchpadSDK {
|
|
|
1848
2119
|
*/
|
|
1849
2120
|
private getContentReactionService;
|
|
1850
2121
|
/**
|
|
1851
|
-
* Get or create the
|
|
2122
|
+
* Get or create the MessagesService instance.
|
|
1852
2123
|
*
|
|
1853
|
-
* Lazily initializes the
|
|
1854
|
-
* Uses v1
|
|
2124
|
+
* Lazily initializes the MessagesService on first use.
|
|
2125
|
+
* Uses unified v1/messages endpoints for all message types (CHAT and COMMENT).
|
|
1855
2126
|
*
|
|
1856
|
-
* @returns Configured
|
|
2127
|
+
* @returns Configured MessagesService instance
|
|
1857
2128
|
* @internal
|
|
1858
|
-
* @since
|
|
2129
|
+
* @since 7.0.0
|
|
1859
2130
|
*/
|
|
1860
|
-
private
|
|
2131
|
+
private getMessagesService;
|
|
1861
2132
|
/**
|
|
1862
|
-
* Get or create the
|
|
2133
|
+
* Get or create the RestrictedNamesService instance.
|
|
1863
2134
|
*
|
|
1864
|
-
* Lazily initializes the
|
|
1865
|
-
*
|
|
2135
|
+
* Lazily initializes the RestrictedNamesService on first use.
|
|
2136
|
+
* Provides methods for managing restricted token names (overseer only).
|
|
1866
2137
|
*
|
|
1867
|
-
* @returns Configured
|
|
2138
|
+
* @returns Configured RestrictedNamesService instance
|
|
1868
2139
|
* @internal
|
|
1869
|
-
* @since
|
|
2140
|
+
* @since 7.0.0
|
|
2141
|
+
*/
|
|
2142
|
+
private getRestrictedNamesService;
|
|
2143
|
+
/**
|
|
2144
|
+
* Get or create the PlatformConfigService instance.
|
|
2145
|
+
*
|
|
2146
|
+
* Lazily initializes the PlatformConfigService on first use.
|
|
2147
|
+
* The service handles REST API calls for platform configuration operations
|
|
2148
|
+
* including streaming, chat, comments, and webhooks settings.
|
|
2149
|
+
*
|
|
2150
|
+
* @returns Configured PlatformConfigService instance
|
|
2151
|
+
*
|
|
2152
|
+
* @internal This is a private helper method for platform config operations
|
|
2153
|
+
* @since 7.3.0
|
|
2154
|
+
*/
|
|
2155
|
+
private getPlatformConfigService;
|
|
2156
|
+
/**
|
|
2157
|
+
* Lazy-initialize and return the events batcher service
|
|
1870
2158
|
*/
|
|
1871
|
-
private
|
|
2159
|
+
private getEventsBatcherService;
|
|
1872
2160
|
/**
|
|
1873
2161
|
* Get or create the StreamWebSocketService instance.
|
|
1874
2162
|
*
|
|
@@ -2150,7 +2438,7 @@ export declare class LaunchpadSDK {
|
|
|
2150
2438
|
* Queries the DEX API to discover which tokens can be bridged to the specified network.
|
|
2151
2439
|
* Results are cached permanently for the SDK lifetime (bridgeable tokens never change).
|
|
2152
2440
|
*
|
|
2153
|
-
* @param options Fetch options including network
|
|
2441
|
+
* @param options Fetch options including network and pagination
|
|
2154
2442
|
* @returns Promise resolving to paginated bridgeable tokens
|
|
2155
2443
|
* @throws NetworkError if DEX API is unavailable
|
|
2156
2444
|
*
|
|
@@ -2161,8 +2449,7 @@ export declare class LaunchpadSDK {
|
|
|
2161
2449
|
* ```typescript
|
|
2162
2450
|
* const result = await sdk.fetchBridgeableTokensByNetwork({
|
|
2163
2451
|
* network: 'ETHEREUM',
|
|
2164
|
-
*
|
|
2165
|
-
* limit: 100
|
|
2452
|
+
* pageSize: 100
|
|
2166
2453
|
* });
|
|
2167
2454
|
* console.log(`Found ${result.tokenCount} Ethereum-bridgeable tokens`);
|
|
2168
2455
|
* ```
|
|
@@ -2331,7 +2618,7 @@ export declare class LaunchpadSDK {
|
|
|
2331
2618
|
*
|
|
2332
2619
|
* For balance data, use {@link fetchWrappableTokenBalances} instead.
|
|
2333
2620
|
*
|
|
2334
|
-
* @param options Fetch options including
|
|
2621
|
+
* @param options Fetch options including pagination
|
|
2335
2622
|
* @returns Promise resolving to fetch result with tokens array
|
|
2336
2623
|
* @throws NetworkError if DEX API is unavailable
|
|
2337
2624
|
*
|
|
@@ -2341,8 +2628,7 @@ export declare class LaunchpadSDK {
|
|
|
2341
2628
|
* @example Paginated fetch
|
|
2342
2629
|
* ```typescript
|
|
2343
2630
|
* const result = await sdk.fetchWrappableTokens({
|
|
2344
|
-
*
|
|
2345
|
-
* limit: 100
|
|
2631
|
+
* pageSize: 100
|
|
2346
2632
|
* });
|
|
2347
2633
|
* console.log(`Found ${result.tokenCount} wrappable tokens`);
|
|
2348
2634
|
* ```
|
|
@@ -2576,21 +2862,21 @@ export declare class LaunchpadSDK {
|
|
|
2576
2862
|
* of a cross-channel wrap or unwrap operation.
|
|
2577
2863
|
*
|
|
2578
2864
|
* @param transactionId - Transaction ID from wrap/unwrap result
|
|
2579
|
-
* @returns
|
|
2865
|
+
* @returns Transaction status
|
|
2580
2866
|
*
|
|
2581
2867
|
* @since 4.0.18
|
|
2582
2868
|
* @category Wrap/Unwrap
|
|
2583
2869
|
*
|
|
2584
2870
|
* @example Check wrap status
|
|
2585
2871
|
* ```typescript
|
|
2586
|
-
* const status =
|
|
2872
|
+
* const status = sdk.getWrapStatus(result.transactionId);
|
|
2587
2873
|
* console.log(`Status: ${status.status}`);
|
|
2588
2874
|
* if (status.status === 'completed') {
|
|
2589
2875
|
* console.log(`Completed at: ${new Date(status.completedAt)}`);
|
|
2590
2876
|
* }
|
|
2591
2877
|
* ```
|
|
2592
2878
|
*/
|
|
2593
|
-
getWrapStatus(transactionId: string):
|
|
2879
|
+
getWrapStatus(transactionId: string): WrapUnwrapStatusResult;
|
|
2594
2880
|
/**
|
|
2595
2881
|
* Login with wallet signature to get JWT token.
|
|
2596
2882
|
*
|
|
@@ -2654,8 +2940,12 @@ export declare class LaunchpadSDK {
|
|
|
2654
2940
|
/**
|
|
2655
2941
|
* Logout and clear the JWT token.
|
|
2656
2942
|
*
|
|
2657
|
-
*
|
|
2658
|
-
* endpoints will fail until login() is called again.
|
|
2943
|
+
* Clears the client-side JWT and optionally revokes all active sessions on the server.
|
|
2944
|
+
* Future calls to JWT-protected endpoints will fail until login() is called again.
|
|
2945
|
+
*
|
|
2946
|
+
* @param options - Optional logout configuration
|
|
2947
|
+
* @param options.allDevices - If true, revokes all active sessions server-side (requires valid JWT)
|
|
2948
|
+
* @returns Promise that resolves when logout is complete
|
|
2659
2949
|
*
|
|
2660
2950
|
* @since 5.2.0
|
|
2661
2951
|
* @category Authentication
|
|
@@ -2663,11 +2953,19 @@ export declare class LaunchpadSDK {
|
|
|
2663
2953
|
* @example Clean logout
|
|
2664
2954
|
* ```typescript
|
|
2665
2955
|
* // ... do work ...
|
|
2666
|
-
* sdk.logout();
|
|
2956
|
+
* await sdk.logout();
|
|
2667
2957
|
* console.log('Logged out');
|
|
2668
2958
|
* ```
|
|
2959
|
+
*
|
|
2960
|
+
* @example Logout from all devices
|
|
2961
|
+
* ```typescript
|
|
2962
|
+
* await sdk.logout({ allDevices: true });
|
|
2963
|
+
* console.log('Logged out from all devices');
|
|
2964
|
+
* ```
|
|
2669
2965
|
*/
|
|
2670
|
-
logout(
|
|
2966
|
+
logout(options?: {
|
|
2967
|
+
allDevices?: boolean;
|
|
2968
|
+
}): Promise<void>;
|
|
2671
2969
|
/**
|
|
2672
2970
|
* Check if user is authenticated with valid JWT.
|
|
2673
2971
|
*
|
|
@@ -2829,28 +3127,6 @@ export declare class LaunchpadSDK {
|
|
|
2829
3127
|
* ```
|
|
2830
3128
|
*/
|
|
2831
3129
|
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
3130
|
/**
|
|
2855
3131
|
* Disable streaming for a specific token (Admin only).
|
|
2856
3132
|
*
|
|
@@ -2907,6 +3183,26 @@ export declare class LaunchpadSDK {
|
|
|
2907
3183
|
* ```
|
|
2908
3184
|
*/
|
|
2909
3185
|
resetStreamKey(tokenName: string): Promise<ResetStreamKeyResult>;
|
|
3186
|
+
/**
|
|
3187
|
+
* Get stream credentials (key and URL).
|
|
3188
|
+
*
|
|
3189
|
+
* Returns the current stream key and RTMP URL for streaming.
|
|
3190
|
+
*
|
|
3191
|
+
* @param tokenName - Token name (lowercase)
|
|
3192
|
+
* @returns Promise resolving to stream credentials
|
|
3193
|
+
*
|
|
3194
|
+
* @since 6.13.0
|
|
3195
|
+
* @category Streaming
|
|
3196
|
+
*
|
|
3197
|
+
* @example Get stream credentials
|
|
3198
|
+
* ```typescript
|
|
3199
|
+
* const creds = await sdk.getStreamCredentials('mytoken');
|
|
3200
|
+
* console.log(`Stream Key: ${creds.streamKey}`);
|
|
3201
|
+
* console.log(`RTMP URL: ${creds.rtmpUrl}`);
|
|
3202
|
+
* console.log(`Playback ID: ${creds.playbackId}`);
|
|
3203
|
+
* ```
|
|
3204
|
+
*/
|
|
3205
|
+
getStreamCredentials(tokenName: string): Promise<StreamCredentialsResult>;
|
|
2910
3206
|
/**
|
|
2911
3207
|
* Get recordings for a stream.
|
|
2912
3208
|
*
|
|
@@ -3050,7 +3346,6 @@ export declare class LaunchpadSDK {
|
|
|
3050
3346
|
*
|
|
3051
3347
|
* @param tokenName Token name (lowercase)
|
|
3052
3348
|
* @param nextLiveStreamAt Scheduled stream time (ISO 8601 string, Date, or null to clear)
|
|
3053
|
-
* @returns Updated stream settings
|
|
3054
3349
|
* @throws {ValidationError} If token name or date is invalid
|
|
3055
3350
|
*
|
|
3056
3351
|
* @since 6.x.0
|
|
@@ -3065,7 +3360,7 @@ export declare class LaunchpadSDK {
|
|
|
3065
3360
|
* await sdk.setNextLiveStreamCountdown('mytoken', null);
|
|
3066
3361
|
* ```
|
|
3067
3362
|
*/
|
|
3068
|
-
setNextLiveStreamCountdown(tokenName: string, nextLiveStreamAt: string | Date | null): Promise<
|
|
3363
|
+
setNextLiveStreamCountdown(tokenName: string, nextLiveStreamAt: string | Date | null): Promise<void>;
|
|
3069
3364
|
/**
|
|
3070
3365
|
* Enable or disable streaming globally (Admin only).
|
|
3071
3366
|
*
|
|
@@ -3202,25 +3497,8 @@ export declare class LaunchpadSDK {
|
|
|
3202
3497
|
* @since 5.1.0
|
|
3203
3498
|
* @category Chat
|
|
3204
3499
|
*
|
|
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
|
-
* ```
|
|
3500
|
+
* Deprecated: Chat status is now included in token details (GET /v1/tokens/:tokenName)
|
|
3222
3501
|
*/
|
|
3223
|
-
getChatStatus(tokenName: string): Promise<ChatStatusResponse>;
|
|
3224
3502
|
/**
|
|
3225
3503
|
* Get engagement statistics for a token.
|
|
3226
3504
|
*
|
|
@@ -3334,7 +3612,7 @@ export declare class LaunchpadSDK {
|
|
|
3334
3612
|
* }
|
|
3335
3613
|
* ```
|
|
3336
3614
|
*/
|
|
3337
|
-
getPinnedChatMessage(tokenName: string): Promise<
|
|
3615
|
+
getPinnedChatMessage(tokenName: string): Promise<LegacyGetPinnedMessageResult>;
|
|
3338
3616
|
/**
|
|
3339
3617
|
* Pin a chat message for a token (v6.x.0+)
|
|
3340
3618
|
*
|
|
@@ -3356,7 +3634,7 @@ export declare class LaunchpadSDK {
|
|
|
3356
3634
|
* console.log('Message pinned:', result.pinnedMessage.id);
|
|
3357
3635
|
* ```
|
|
3358
3636
|
*/
|
|
3359
|
-
pinChatMessage(tokenName: string, messageId: string): Promise<
|
|
3637
|
+
pinChatMessage(tokenName: string, messageId: string): Promise<LegacyPinMessageResult>;
|
|
3360
3638
|
/**
|
|
3361
3639
|
* Unpin the currently pinned chat message for a token (v6.x.0+)
|
|
3362
3640
|
*
|
|
@@ -3376,7 +3654,36 @@ export declare class LaunchpadSDK {
|
|
|
3376
3654
|
* console.log('Message unpinned');
|
|
3377
3655
|
* ```
|
|
3378
3656
|
*/
|
|
3379
|
-
unpinChatMessage(tokenName: string): Promise<
|
|
3657
|
+
unpinChatMessage(tokenName: string): Promise<LegacyUnpinMessageResult>;
|
|
3658
|
+
/**
|
|
3659
|
+
* Set slow mode interval for a token's chat (v8.x.0+)
|
|
3660
|
+
*
|
|
3661
|
+
* Throttles users to one message per N seconds.
|
|
3662
|
+
* Enforcement is server-side (Redis-backed).
|
|
3663
|
+
* Set to 0 to disable slow mode.
|
|
3664
|
+
*
|
|
3665
|
+
* @param tokenName Token name (lowercase)
|
|
3666
|
+
* @param slowModeSeconds Interval in seconds (0 = disabled, max 600)
|
|
3667
|
+
* @returns Updated slow mode setting
|
|
3668
|
+
* @throws {ValidationError} If token name is invalid or seconds out of range
|
|
3669
|
+
*
|
|
3670
|
+
* @since 8.x.0
|
|
3671
|
+
* @category Chat
|
|
3672
|
+
*
|
|
3673
|
+
* @example Set 30-second slow mode
|
|
3674
|
+
* ```typescript
|
|
3675
|
+
* await sdk.setSlowMode('mytoken', 30);
|
|
3676
|
+
* ```
|
|
3677
|
+
*
|
|
3678
|
+
* @example Disable slow mode
|
|
3679
|
+
* ```typescript
|
|
3680
|
+
* await sdk.setSlowMode('mytoken', 0);
|
|
3681
|
+
* ```
|
|
3682
|
+
*/
|
|
3683
|
+
setSlowMode(tokenName: string, slowModeSeconds: number): Promise<{
|
|
3684
|
+
tokenName: string;
|
|
3685
|
+
slowModeSeconds: number;
|
|
3686
|
+
}>;
|
|
3380
3687
|
/**
|
|
3381
3688
|
* Create a ban for a user on a token.
|
|
3382
3689
|
*
|
|
@@ -3463,7 +3770,7 @@ export declare class LaunchpadSDK {
|
|
|
3463
3770
|
* @example List all bans
|
|
3464
3771
|
* ```typescript
|
|
3465
3772
|
* const result = await sdk.listBans({ tokenName: 'mytoken' });
|
|
3466
|
-
* console.log(`Total bans: ${result.
|
|
3773
|
+
* console.log(`Total bans: ${result.pageInfo.totalCount}`);
|
|
3467
3774
|
* result.bans.forEach(ban => {
|
|
3468
3775
|
* console.log(`${ban.userAddress}: ${ban.reason}`);
|
|
3469
3776
|
* });
|
|
@@ -3474,8 +3781,7 @@ export declare class LaunchpadSDK {
|
|
|
3474
3781
|
* const result = await sdk.listBans({
|
|
3475
3782
|
* tokenName: 'mytoken',
|
|
3476
3783
|
* search: 'alice', // Search by address or name
|
|
3477
|
-
*
|
|
3478
|
-
* limit: 20,
|
|
3784
|
+
* pageSize: 20,
|
|
3479
3785
|
* });
|
|
3480
3786
|
* ```
|
|
3481
3787
|
*/
|
|
@@ -3551,6 +3857,127 @@ export declare class LaunchpadSDK {
|
|
|
3551
3857
|
* ```
|
|
3552
3858
|
*/
|
|
3553
3859
|
getActiveUsers(options: GetActiveUsersOptions): Promise<ActiveUsersResult>;
|
|
3860
|
+
/**
|
|
3861
|
+
* Create a global user ban (bans user from all tokens on the platform).
|
|
3862
|
+
*
|
|
3863
|
+
* Global bans prevent a user from accessing any token, participating in streams,
|
|
3864
|
+
* chat, or comments across the entire platform.
|
|
3865
|
+
*
|
|
3866
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3867
|
+
*
|
|
3868
|
+
* @param options - Global ban creation options
|
|
3869
|
+
* @returns Promise resolving to created ban data
|
|
3870
|
+
* @throws ValidationError if options are invalid
|
|
3871
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3872
|
+
*
|
|
3873
|
+
* @since 6.x.0
|
|
3874
|
+
* @category Moderation
|
|
3875
|
+
*
|
|
3876
|
+
* @example Permanent global ban
|
|
3877
|
+
* ```typescript
|
|
3878
|
+
* const result = await sdk.createGlobalBan({
|
|
3879
|
+
* userAddress: 'eth|0x123...',
|
|
3880
|
+
* reason: 'Serious platform violation'
|
|
3881
|
+
* });
|
|
3882
|
+
* console.log('User globally banned:', result.ban.userAddress);
|
|
3883
|
+
* ```
|
|
3884
|
+
*
|
|
3885
|
+
* @example Temporary global ban (7 days)
|
|
3886
|
+
* ```typescript
|
|
3887
|
+
* const result = await sdk.createGlobalBan({
|
|
3888
|
+
* userAddress: 'eth|0x123...',
|
|
3889
|
+
* reason: 'Spam across multiple streams',
|
|
3890
|
+
* durationSeconds: 604800 // 7 days
|
|
3891
|
+
* });
|
|
3892
|
+
* console.log('Ban expires:', result.ban.expiresAt);
|
|
3893
|
+
* ```
|
|
3894
|
+
*/
|
|
3895
|
+
createGlobalBan(options: CreateGlobalBanOptions): Promise<CreateGlobalBanResult>;
|
|
3896
|
+
/**
|
|
3897
|
+
* Remove a global user ban.
|
|
3898
|
+
*
|
|
3899
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3900
|
+
*
|
|
3901
|
+
* @param options - Global ban removal options
|
|
3902
|
+
* @returns Promise resolving to removal confirmation
|
|
3903
|
+
* @throws ValidationError if options are invalid
|
|
3904
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3905
|
+
* @throws Error if ban not found
|
|
3906
|
+
*
|
|
3907
|
+
* @since 6.x.0
|
|
3908
|
+
* @category Moderation
|
|
3909
|
+
*
|
|
3910
|
+
* @example
|
|
3911
|
+
* ```typescript
|
|
3912
|
+
* const result = await sdk.removeGlobalBan({
|
|
3913
|
+
* userAddress: 'eth|0x123...'
|
|
3914
|
+
* });
|
|
3915
|
+
* console.log('Global ban removed:', result.removed);
|
|
3916
|
+
* ```
|
|
3917
|
+
*/
|
|
3918
|
+
removeGlobalBan(options: RemoveGlobalBanOptions): Promise<RemoveGlobalBanResult>;
|
|
3919
|
+
/**
|
|
3920
|
+
* List all global user bans on the platform.
|
|
3921
|
+
*
|
|
3922
|
+
* Returns paginated results with user profile information. Supports filtering
|
|
3923
|
+
* by user address or name.
|
|
3924
|
+
*
|
|
3925
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3926
|
+
*
|
|
3927
|
+
* @param options - List options with optional pagination and filters
|
|
3928
|
+
* @returns Promise resolving to paginated list of global bans
|
|
3929
|
+
* @throws ValidationError if options are invalid
|
|
3930
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3931
|
+
*
|
|
3932
|
+
* @since 6.x.0
|
|
3933
|
+
* @category Moderation
|
|
3934
|
+
*
|
|
3935
|
+
* @example Get first page of global bans
|
|
3936
|
+
* ```typescript
|
|
3937
|
+
* const result = await sdk.listGlobalBans({
|
|
3938
|
+
* pageSize: 20
|
|
3939
|
+
* });
|
|
3940
|
+
* console.log('Total global bans:', result.pageInfo.totalCount);
|
|
3941
|
+
* result.items.forEach(ban => {
|
|
3942
|
+
* console.log(`${ban.userAddress}: ${ban.reason}`);
|
|
3943
|
+
* });
|
|
3944
|
+
* ```
|
|
3945
|
+
*
|
|
3946
|
+
* @example Search for banned user
|
|
3947
|
+
* ```typescript
|
|
3948
|
+
* const result = await sdk.listGlobalBans({
|
|
3949
|
+
* userAddress: 'eth|0x123...',
|
|
3950
|
+
* pageSize: 10
|
|
3951
|
+
* });
|
|
3952
|
+
* ```
|
|
3953
|
+
*/
|
|
3954
|
+
listGlobalBans(options?: ListGlobalBansOptions): Promise<GlobalBanListResult>;
|
|
3955
|
+
/**
|
|
3956
|
+
* Get global ban status for a specific user.
|
|
3957
|
+
*
|
|
3958
|
+
* Requires admin API key or Overseer JWT authentication.
|
|
3959
|
+
*
|
|
3960
|
+
* @param options - Global ban status options
|
|
3961
|
+
* @returns Promise resolving to ban status (banned or not) with ban data if applicable
|
|
3962
|
+
* @throws ValidationError if options are invalid
|
|
3963
|
+
* @throws ConfigurationError if admin API key or JWT is not configured
|
|
3964
|
+
*
|
|
3965
|
+
* @since 6.x.0
|
|
3966
|
+
* @category Moderation
|
|
3967
|
+
*
|
|
3968
|
+
* @example
|
|
3969
|
+
* ```typescript
|
|
3970
|
+
* const status = await sdk.getGlobalBan({
|
|
3971
|
+
* userAddress: 'eth|0x123...'
|
|
3972
|
+
* });
|
|
3973
|
+
* if (status.banned) {
|
|
3974
|
+
* console.log('User is globally banned');
|
|
3975
|
+
* console.log('Reason:', status.ban?.reason);
|
|
3976
|
+
* console.log('Expires:', status.ban?.expiresAt ?? 'permanent');
|
|
3977
|
+
* }
|
|
3978
|
+
* ```
|
|
3979
|
+
*/
|
|
3980
|
+
getGlobalBan(options: GetGlobalBanOptions): Promise<GlobalBanStatusResult>;
|
|
3554
3981
|
/**
|
|
3555
3982
|
* Create a new API key.
|
|
3556
3983
|
*
|
|
@@ -3608,7 +4035,7 @@ export declare class LaunchpadSDK {
|
|
|
3608
4035
|
* ```typescript
|
|
3609
4036
|
* // List all API keys
|
|
3610
4037
|
* const result = await sdk.listApiKeys();
|
|
3611
|
-
* console.log(`Total keys: ${result.
|
|
4038
|
+
* console.log(`Total keys: ${result.pageInfo.totalCount}`);
|
|
3612
4039
|
*
|
|
3613
4040
|
* for (const key of result.apiKeys) {
|
|
3614
4041
|
* console.log(`${key.keyPrefix} - ${key.role} - ${key.description}`);
|
|
@@ -3616,8 +4043,13 @@ export declare class LaunchpadSDK {
|
|
|
3616
4043
|
* console.log(` Expires: ${key.expiresAt || 'Never'}`);
|
|
3617
4044
|
* }
|
|
3618
4045
|
*
|
|
3619
|
-
* // Paginate through keys
|
|
3620
|
-
*
|
|
4046
|
+
* // Paginate through keys (cursor-based)
|
|
4047
|
+
* if (result.pageInfo.hasNextPage) {
|
|
4048
|
+
* const page2 = await sdk.listApiKeys({
|
|
4049
|
+
* cursor: result.pageInfo.nextCursor,
|
|
4050
|
+
* pageSize: 10
|
|
4051
|
+
* });
|
|
4052
|
+
* }
|
|
3621
4053
|
* ```
|
|
3622
4054
|
*
|
|
3623
4055
|
* @since 5.6.0
|
|
@@ -3790,8 +4222,8 @@ export declare class LaunchpadSDK {
|
|
|
3790
4222
|
*
|
|
3791
4223
|
* @example
|
|
3792
4224
|
* ```typescript
|
|
3793
|
-
* const result = await sdk.getModeratedTokens({
|
|
3794
|
-
* console.log('Moderating', result.
|
|
4225
|
+
* const result = await sdk.getModeratedTokens({ pageSize: 20 });
|
|
4226
|
+
* console.log('Moderating', result.pageInfo.totalCount, 'tokens');
|
|
3795
4227
|
* for (const token of result.tokens) {
|
|
3796
4228
|
* console.log(`- ${token.tokenName} (${token.role})`);
|
|
3797
4229
|
* }
|
|
@@ -3819,7 +4251,7 @@ export declare class LaunchpadSDK {
|
|
|
3819
4251
|
*
|
|
3820
4252
|
* // Get invites for a specific token
|
|
3821
4253
|
* const result = await sdk.listModeratorInvites({ tokenName: 'mytoken' });
|
|
3822
|
-
* console.log('Total invites:', result.
|
|
4254
|
+
* console.log('Total invites:', result.pageInfo.totalCount);
|
|
3823
4255
|
*
|
|
3824
4256
|
* // Filter by status
|
|
3825
4257
|
* const pending = await sdk.listModeratorInvites({
|
|
@@ -3874,10 +4306,28 @@ export declare class LaunchpadSDK {
|
|
|
3874
4306
|
*/
|
|
3875
4307
|
updateModeratorInviteRole(options: UpdateInviteRoleOptions): Promise<UpdateInviteRoleResult>;
|
|
3876
4308
|
/**
|
|
3877
|
-
*
|
|
4309
|
+
* Update a moderator invite's role and/or description (owner only).
|
|
3878
4310
|
*
|
|
3879
|
-
*
|
|
3880
|
-
*
|
|
4311
|
+
* @param options - Update options including inviteId, optional role, and optional description
|
|
4312
|
+
* @returns The updated invite
|
|
4313
|
+
*
|
|
4314
|
+
* @example
|
|
4315
|
+
* ```typescript
|
|
4316
|
+
* const result = await sdk.updateModeratorInvite({
|
|
4317
|
+
* inviteId: 123,
|
|
4318
|
+
* description: 'John - handles Friday evening streams'
|
|
4319
|
+
* });
|
|
4320
|
+
* console.log('Updated description:', result.invite.description);
|
|
4321
|
+
* ```
|
|
4322
|
+
*
|
|
4323
|
+
* @since 5.0.4-beta.60
|
|
4324
|
+
*/
|
|
4325
|
+
updateModeratorInvite(options: UpdateModeratorInviteOptions): Promise<UpdateModeratorInviteResult>;
|
|
4326
|
+
/**
|
|
4327
|
+
* Get invite details by code (public endpoint).
|
|
4328
|
+
*
|
|
4329
|
+
* Returns public information about an invite for the claim page. This is used
|
|
4330
|
+
* by the frontend to display invite details before the user logs in to claim.
|
|
3881
4331
|
*
|
|
3882
4332
|
* No authentication required.
|
|
3883
4333
|
*
|
|
@@ -3959,8 +4409,7 @@ export declare class LaunchpadSDK {
|
|
|
3959
4409
|
* const result = await sdk.listFlags({
|
|
3960
4410
|
* tokenName: 'mytoken',
|
|
3961
4411
|
* contentType: ContentType.CHAT_MESSAGE,
|
|
3962
|
-
*
|
|
3963
|
-
* limit: 50,
|
|
4412
|
+
* pageSize: 50,
|
|
3964
4413
|
* });
|
|
3965
4414
|
* ```
|
|
3966
4415
|
*/
|
|
@@ -4081,15 +4530,14 @@ export declare class LaunchpadSDK {
|
|
|
4081
4530
|
* @example List all invites
|
|
4082
4531
|
* ```typescript
|
|
4083
4532
|
* const result = await sdk.listOverseerInvites();
|
|
4084
|
-
* console.log(`Total invites: ${result.
|
|
4533
|
+
* console.log(`Total invites: ${result.pageInfo.totalCount}`);
|
|
4085
4534
|
* ```
|
|
4086
4535
|
*
|
|
4087
4536
|
* @example Filter by status with pagination
|
|
4088
4537
|
* ```typescript
|
|
4089
4538
|
* const result = await sdk.listOverseerInvites({
|
|
4090
4539
|
* status: 'PENDING',
|
|
4091
|
-
*
|
|
4092
|
-
* limit: 10,
|
|
4540
|
+
* pageSize: 10,
|
|
4093
4541
|
* });
|
|
4094
4542
|
* ```
|
|
4095
4543
|
*/
|
|
@@ -4179,7 +4627,7 @@ export declare class LaunchpadSDK {
|
|
|
4179
4627
|
* @example List all overseers
|
|
4180
4628
|
* ```typescript
|
|
4181
4629
|
* const result = await sdk.listOverseers();
|
|
4182
|
-
* console.log(`Total overseers: ${result.
|
|
4630
|
+
* console.log(`Total overseers: ${result.pageInfo.totalCount}`);
|
|
4183
4631
|
* ```
|
|
4184
4632
|
*
|
|
4185
4633
|
* @example Filter by status
|
|
@@ -4190,6 +4638,38 @@ export declare class LaunchpadSDK {
|
|
|
4190
4638
|
* ```
|
|
4191
4639
|
*/
|
|
4192
4640
|
listOverseers(options?: ListOverseersOptions): Promise<PaginatedOverseers>;
|
|
4641
|
+
/**
|
|
4642
|
+
* Create an overseer directly (bypassing invite flow).
|
|
4643
|
+
*
|
|
4644
|
+
* This directly promotes a user to overseer status without requiring them
|
|
4645
|
+
* to claim an invite. A synthetic invite record is created for audit trail.
|
|
4646
|
+
*
|
|
4647
|
+
* Use this when you need to promote someone programmatically without
|
|
4648
|
+
* requiring their interaction (e.g., CLI admin tools, automated tests).
|
|
4649
|
+
*
|
|
4650
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4651
|
+
*
|
|
4652
|
+
* @param options - The options for creating the overseer
|
|
4653
|
+
* @returns The created overseer record
|
|
4654
|
+
* @throws ValidationError if address format is invalid
|
|
4655
|
+
* @throws ConfigurationError if neither auth method is available
|
|
4656
|
+
* @throws Error if user is already an overseer (400)
|
|
4657
|
+
*
|
|
4658
|
+
* @since 8.3.0
|
|
4659
|
+
* @category Overseer
|
|
4660
|
+
*
|
|
4661
|
+
* @example Promote a user to overseer
|
|
4662
|
+
* ```typescript
|
|
4663
|
+
* const result = await sdk.createOverseerDirect({
|
|
4664
|
+
* userAddress: 'eth|0x1234567890abcdef1234567890abcdef12345678',
|
|
4665
|
+
* description: 'Platform team - John'
|
|
4666
|
+
* });
|
|
4667
|
+
* console.log('Overseer created:', result.overseer.userAddress);
|
|
4668
|
+
* ```
|
|
4669
|
+
*/
|
|
4670
|
+
createOverseerDirect(options: CreateOverseerDirectOptions): Promise<{
|
|
4671
|
+
overseer: Overseer;
|
|
4672
|
+
}>;
|
|
4193
4673
|
/**
|
|
4194
4674
|
* Revoke an overseer's access.
|
|
4195
4675
|
*
|
|
@@ -4263,6 +4743,46 @@ export declare class LaunchpadSDK {
|
|
|
4263
4743
|
* ```
|
|
4264
4744
|
*/
|
|
4265
4745
|
getOverseerSummary(): Promise<OverseerSummaryResponse>;
|
|
4746
|
+
/**
|
|
4747
|
+
* Get ban stats for the overseer banned users tab
|
|
4748
|
+
*
|
|
4749
|
+
* @returns Ban counts
|
|
4750
|
+
* @since 8.x.0
|
|
4751
|
+
* @category Overseer
|
|
4752
|
+
*/
|
|
4753
|
+
getBanStats(): Promise<BanStatsResponse>;
|
|
4754
|
+
/**
|
|
4755
|
+
* Get token ban stats for the overseer delisted tokens tab
|
|
4756
|
+
*
|
|
4757
|
+
* @returns Token ban counts
|
|
4758
|
+
* @since 8.x.0
|
|
4759
|
+
* @category Overseer
|
|
4760
|
+
*/
|
|
4761
|
+
getTokenBanStats(): Promise<TokenBanStatsResponse>;
|
|
4762
|
+
/**
|
|
4763
|
+
* Get invite stats for the overseer invites tab
|
|
4764
|
+
*
|
|
4765
|
+
* @returns Invite counts by status
|
|
4766
|
+
* @since 8.x.0
|
|
4767
|
+
* @category Overseer
|
|
4768
|
+
*/
|
|
4769
|
+
getInviteStats(): Promise<InviteStatsResponse>;
|
|
4770
|
+
/**
|
|
4771
|
+
* Get flag stats for the content flags tab
|
|
4772
|
+
*
|
|
4773
|
+
* @returns Flag counts by status
|
|
4774
|
+
* @since 8.x.0
|
|
4775
|
+
* @category Overseer
|
|
4776
|
+
*/
|
|
4777
|
+
getFlagStats(): Promise<FlagStatsResponse>;
|
|
4778
|
+
/**
|
|
4779
|
+
* Get user stats for the overseer users management tab
|
|
4780
|
+
*
|
|
4781
|
+
* @returns User counts (total, flagged, banned)
|
|
4782
|
+
* @since 8.x.0
|
|
4783
|
+
* @category Overseer
|
|
4784
|
+
*/
|
|
4785
|
+
getUserStats(): Promise<UserStatsResponse>;
|
|
4266
4786
|
/**
|
|
4267
4787
|
* List users with activity metrics (Admin/Overseer only - v6.x.0+)
|
|
4268
4788
|
*
|
|
@@ -4281,9 +4801,9 @@ export declare class LaunchpadSDK {
|
|
|
4281
4801
|
*
|
|
4282
4802
|
* @example List users with pagination
|
|
4283
4803
|
* ```typescript
|
|
4284
|
-
* const result = await sdk.listOverseerUsers({
|
|
4804
|
+
* const result = await sdk.listOverseerUsers({ pageSize: 20 });
|
|
4285
4805
|
* result.items.forEach(user => {
|
|
4286
|
-
* console.log(`${user.
|
|
4806
|
+
* console.log(`${user.fullName}: ${user.flagsReceived} flags`);
|
|
4287
4807
|
* });
|
|
4288
4808
|
* ```
|
|
4289
4809
|
*
|
|
@@ -4293,7 +4813,7 @@ export declare class LaunchpadSDK {
|
|
|
4293
4813
|
* search: 'alice',
|
|
4294
4814
|
* sortBy: 'activity',
|
|
4295
4815
|
* sortOrder: 'desc',
|
|
4296
|
-
*
|
|
4816
|
+
* pageSize: 10
|
|
4297
4817
|
* });
|
|
4298
4818
|
* ```
|
|
4299
4819
|
*/
|
|
@@ -4317,15 +4837,279 @@ export declare class LaunchpadSDK {
|
|
|
4317
4837
|
* @example Get user summary
|
|
4318
4838
|
* ```typescript
|
|
4319
4839
|
* 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
|
-
* }
|
|
4840
|
+
* console.log(`User: ${summary.profile?.fullName}`);
|
|
4841
|
+
* console.log(`Flags: ${summary.stats.flagsReceived}`);
|
|
4842
|
+
* console.log(`Global ban: ${summary.stats.globalBan}`);
|
|
4326
4843
|
* ```
|
|
4327
4844
|
*/
|
|
4328
4845
|
getOverseerUserSummary(address: string): Promise<UserSummaryResponse>;
|
|
4846
|
+
/**
|
|
4847
|
+
* Flush all cache entries for a wallet address.
|
|
4848
|
+
*
|
|
4849
|
+
* Clears cached data associated with the specified address including:
|
|
4850
|
+
* - User profile data (profile:data:*, profile:stats:*)
|
|
4851
|
+
* - Overseer status
|
|
4852
|
+
* - Owned tokens list
|
|
4853
|
+
* - Ban status (global and per-token)
|
|
4854
|
+
*
|
|
4855
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4856
|
+
*
|
|
4857
|
+
* @param address - Wallet address to flush cache for (eth|... or 0x... format)
|
|
4858
|
+
* @returns Flush result with count and duration
|
|
4859
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4860
|
+
*
|
|
4861
|
+
* @since 8.x.0
|
|
4862
|
+
* @category Cache Management
|
|
4863
|
+
*
|
|
4864
|
+
* @example Flush cache for a user
|
|
4865
|
+
* ```typescript
|
|
4866
|
+
* const result = await sdk.flushCacheByAddress('eth|abc123...');
|
|
4867
|
+
* console.log(`Flushed ${result.flushedCount} cache entries in ${result.duration}ms`);
|
|
4868
|
+
* ```
|
|
4869
|
+
*/
|
|
4870
|
+
flushCacheByAddress(address: string): Promise<FlushResult>;
|
|
4871
|
+
/**
|
|
4872
|
+
* Flush all cache entries for a token.
|
|
4873
|
+
*
|
|
4874
|
+
* Clears cached data associated with the specified token including:
|
|
4875
|
+
* - Stream chat messages and pinned messages
|
|
4876
|
+
* - Recordings list
|
|
4877
|
+
* - Holders data and rankings
|
|
4878
|
+
* - Token ban status
|
|
4879
|
+
* - Price data (GALA and USD)
|
|
4880
|
+
*
|
|
4881
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4882
|
+
*
|
|
4883
|
+
* @param tokenName - Token name to flush cache for
|
|
4884
|
+
* @returns Flush result with count and duration
|
|
4885
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4886
|
+
*
|
|
4887
|
+
* @since 8.x.0
|
|
4888
|
+
* @category Cache Management
|
|
4889
|
+
*
|
|
4890
|
+
* @example Flush cache for a token
|
|
4891
|
+
* ```typescript
|
|
4892
|
+
* const result = await sdk.flushCacheByToken('MYTOKEN');
|
|
4893
|
+
* console.log(`Flushed ${result.flushedCount} cache entries in ${result.duration}ms`);
|
|
4894
|
+
* ```
|
|
4895
|
+
*/
|
|
4896
|
+
flushCacheByToken(tokenName: string): Promise<FlushResult>;
|
|
4897
|
+
/**
|
|
4898
|
+
* Flush ALL Launchpad cache (Nuclear Option).
|
|
4899
|
+
*
|
|
4900
|
+
* Clears ALL cached data across the entire Launchpad platform including:
|
|
4901
|
+
* - All user profile data
|
|
4902
|
+
* - All token data (chat, recordings, holders, prices)
|
|
4903
|
+
* - All overseer/moderator access data
|
|
4904
|
+
* - All ban status data
|
|
4905
|
+
* - Site configuration cache
|
|
4906
|
+
*
|
|
4907
|
+
* **WARNING:** This will cause a temporary performance hit across the entire
|
|
4908
|
+
* platform as all data needs to be re-fetched from the database.
|
|
4909
|
+
*
|
|
4910
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4911
|
+
* **Safety feature:** Requires confirm=true to prevent accidental usage.
|
|
4912
|
+
*
|
|
4913
|
+
* @param confirm - Must be true to proceed (safety confirmation)
|
|
4914
|
+
* @returns Flush result with count and duration
|
|
4915
|
+
* @throws ValidationError if confirm is not true
|
|
4916
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4917
|
+
*
|
|
4918
|
+
* @since 8.x.0
|
|
4919
|
+
* @category Cache Management
|
|
4920
|
+
*
|
|
4921
|
+
* @example Flush all cache (dangerous!)
|
|
4922
|
+
* ```typescript
|
|
4923
|
+
* const result = await sdk.flushAllCache(true);
|
|
4924
|
+
* console.log(`Flushed ALL ${result.flushedCount} cache entries in ${result.duration}ms`);
|
|
4925
|
+
* ```
|
|
4926
|
+
*/
|
|
4927
|
+
flushAllCache(confirm: true): Promise<FlushResult>;
|
|
4928
|
+
/**
|
|
4929
|
+
* Flush wallet-alias cache entries.
|
|
4930
|
+
*
|
|
4931
|
+
* Clears the cached eth| → client| alias resolution for the given address,
|
|
4932
|
+
* or ALL wallet-alias entries if no address is provided.
|
|
4933
|
+
*
|
|
4934
|
+
* Use this when a user's login returns a stale `eth|` address even though
|
|
4935
|
+
* they have a `client|` alias on GalaChain. After flushing, the next login
|
|
4936
|
+
* will re-resolve the alias from the GalaChain public-key contract.
|
|
4937
|
+
*
|
|
4938
|
+
* Requires Admin API key OR JWT as existing Overseer.
|
|
4939
|
+
*
|
|
4940
|
+
* @param address - Optional. Wallet address (eth| or 0x format) to flush.
|
|
4941
|
+
* If omitted, ALL wallet-alias entries are flushed.
|
|
4942
|
+
* @returns Flush result with count and duration
|
|
4943
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4944
|
+
*
|
|
4945
|
+
* @since 8.x.0
|
|
4946
|
+
* @category Cache Management
|
|
4947
|
+
*
|
|
4948
|
+
* @example Flush alias for a single address
|
|
4949
|
+
* ```typescript
|
|
4950
|
+
* const result = await sdk.flushWalletAliasCache('eth|dc1783...');
|
|
4951
|
+
* console.log(`Flushed ${result.flushedCount} alias entries in ${result.duration}ms`);
|
|
4952
|
+
* ```
|
|
4953
|
+
*
|
|
4954
|
+
* @example Flush all wallet alias entries
|
|
4955
|
+
* ```typescript
|
|
4956
|
+
* const result = await sdk.flushWalletAliasCache();
|
|
4957
|
+
* console.log(`Flushed ${result.flushedCount} alias entries in ${result.duration}ms`);
|
|
4958
|
+
* ```
|
|
4959
|
+
*/
|
|
4960
|
+
flushWalletAliasCache(address?: string): Promise<FlushResult>;
|
|
4961
|
+
/**
|
|
4962
|
+
* Emit a trade execution event to token subscribers (admin/overseer only)
|
|
4963
|
+
*
|
|
4964
|
+
* Notifies all users subscribed to a token that a trade has executed.
|
|
4965
|
+
*
|
|
4966
|
+
* @param tokenName - Token being traded
|
|
4967
|
+
* @param payload - Trade details (tradeType, inputAmount, outputAmount)
|
|
4968
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4969
|
+
*
|
|
4970
|
+
* @since 5.15.0
|
|
4971
|
+
* @category WebSocket
|
|
4972
|
+
*/
|
|
4973
|
+
emitTradeExecuted(tokenName: string, payload: TradeExecutedPayload): Promise<void>;
|
|
4974
|
+
/**
|
|
4975
|
+
* Emit a balance update to a specific user (admin/overseer only)
|
|
4976
|
+
*/
|
|
4977
|
+
emitBalanceUpdated(userAddress: string, tokenName: string, payload: BalanceUpdatedPayload): Promise<void>;
|
|
4978
|
+
/**
|
|
4979
|
+
* Emit stream status change event (admin/overseer only)
|
|
4980
|
+
*/
|
|
4981
|
+
emitStreamStatus(tokenName: string, payload: StreamStatusPayload): Promise<void>;
|
|
4982
|
+
/**
|
|
4983
|
+
* Emit viewer count update event (admin/overseer only)
|
|
4984
|
+
*/
|
|
4985
|
+
emitViewerCount(tokenName: string, payload: ViewerCountPayload): Promise<void>;
|
|
4986
|
+
/**
|
|
4987
|
+
* Emit stream countdown event (admin/overseer only)
|
|
4988
|
+
*/
|
|
4989
|
+
emitStreamCountdown(tokenName: string, payload: StreamCountdownPayload): Promise<void>;
|
|
4990
|
+
/**
|
|
4991
|
+
* Emit chat message event (admin/overseer only)
|
|
4992
|
+
*/
|
|
4993
|
+
emitChatMessage(tokenName: string, payload: ChatMessagePayload): Promise<void>;
|
|
4994
|
+
/**
|
|
4995
|
+
* Emit chat status event (admin/overseer only)
|
|
4996
|
+
*/
|
|
4997
|
+
emitChatStatus(tokenName: string, payload: ChatStatusPayload): Promise<void>;
|
|
4998
|
+
/**
|
|
4999
|
+
* Emit typing indicator event (admin/overseer only)
|
|
5000
|
+
*/
|
|
5001
|
+
emitTypingIndicator(tokenName: string, payload: TypingIndicatorPayload): Promise<void>;
|
|
5002
|
+
/**
|
|
5003
|
+
* Emit token banned event (admin/overseer only)
|
|
5004
|
+
*/
|
|
5005
|
+
emitTokenBanned(tokenName: string, payload: TokenBannedPayload): Promise<void>;
|
|
5006
|
+
/**
|
|
5007
|
+
* Emit token unbanned event (admin/overseer only)
|
|
5008
|
+
*/
|
|
5009
|
+
emitTokenUnbanned(tokenName: string, payload: TokenUnbannedPayload): Promise<void>;
|
|
5010
|
+
/**
|
|
5011
|
+
* Emit moderator added event (admin/overseer only)
|
|
5012
|
+
*/
|
|
5013
|
+
emitModeratorAdded(tokenName: string, payload: ModeratorAddedPayload): Promise<void>;
|
|
5014
|
+
/**
|
|
5015
|
+
* Emit moderator removed event (admin/overseer only)
|
|
5016
|
+
*/
|
|
5017
|
+
emitModeratorRemoved(tokenName: string, payload: ModeratorRemovedPayload): Promise<void>;
|
|
5018
|
+
/**
|
|
5019
|
+
* Emit user profile updated event (admin/overseer only)
|
|
5020
|
+
*/
|
|
5021
|
+
emitUserProfileUpdated(userAddress: string, payload: UserProfileUpdatedPayload): Promise<void>;
|
|
5022
|
+
/**
|
|
5023
|
+
* Emit site configuration changed event (admin/overseer only)
|
|
5024
|
+
*/
|
|
5025
|
+
emitSiteConfigChanged(payload: SiteConfigChangedPayload): Promise<void>;
|
|
5026
|
+
/**
|
|
5027
|
+
* Emit feature status changed event (admin/overseer only)
|
|
5028
|
+
*/
|
|
5029
|
+
emitFeatureStatus(payload: FeatureStatusPayload): Promise<void>;
|
|
5030
|
+
/**
|
|
5031
|
+
* Emit recording status change event (admin/overseer only)
|
|
5032
|
+
*
|
|
5033
|
+
* Notifies token subscribers that a Mux recording has changed status (CREATED, READY, or DELETED).
|
|
5034
|
+
*
|
|
5035
|
+
* @since 9.1.0
|
|
5036
|
+
* @category WebSocket
|
|
5037
|
+
*/
|
|
5038
|
+
emitRecordingStatus(tokenName: string, payload: RecordingStatusPayload): Promise<void>;
|
|
5039
|
+
/**
|
|
5040
|
+
* Emit recordings count updated event (admin/overseer only)
|
|
5041
|
+
*
|
|
5042
|
+
* Notifies token subscribers that the number of available recordings has changed.
|
|
5043
|
+
*
|
|
5044
|
+
* @since 9.1.0
|
|
5045
|
+
* @category WebSocket
|
|
5046
|
+
*/
|
|
5047
|
+
emitRecordingsCountUpdated(tokenName: string, payload: RecordingsCountUpdatedPayload): Promise<void>;
|
|
5048
|
+
/**
|
|
5049
|
+
* Emit download ready event (admin/overseer only)
|
|
5050
|
+
*
|
|
5051
|
+
* Notifies token subscribers that a recording download is ready for consumption.
|
|
5052
|
+
*
|
|
5053
|
+
* @since 9.1.0
|
|
5054
|
+
* @category WebSocket
|
|
5055
|
+
*/
|
|
5056
|
+
emitDownloadReady(tokenName: string, payload: DownloadReadyPayload): Promise<void>;
|
|
5057
|
+
/**
|
|
5058
|
+
* Get list of currently connected WebSocket clients (admin/overseer only)
|
|
5059
|
+
*/
|
|
5060
|
+
getConnectedClients(options?: GetConnectedClientsOptions): Promise<ConnectedClientsResponse>;
|
|
5061
|
+
/**
|
|
5062
|
+
* Check if a specific user is currently online
|
|
5063
|
+
*
|
|
5064
|
+
* @param userAddress - User's wallet address (required, non-empty)
|
|
5065
|
+
* @returns Online status with socket ID and rooms if connected
|
|
5066
|
+
* @throws ConfigurationError if userAddress is empty
|
|
5067
|
+
* @throws NetworkError if API request fails
|
|
5068
|
+
*/
|
|
5069
|
+
isUserOnline(userAddress: string): Promise<{
|
|
5070
|
+
online: boolean;
|
|
5071
|
+
socketId?: string;
|
|
5072
|
+
rooms?: string[];
|
|
5073
|
+
connectedAt?: string;
|
|
5074
|
+
}>;
|
|
5075
|
+
/**
|
|
5076
|
+
* Batch check which users from a list are currently online
|
|
5077
|
+
*
|
|
5078
|
+
* @param userAddresses - Array of user wallet addresses (required, non-empty)
|
|
5079
|
+
* @returns Object with online/offline arrays and client details
|
|
5080
|
+
* @throws ConfigurationError if userAddresses is empty or invalid
|
|
5081
|
+
* @throws NetworkError if API request fails
|
|
5082
|
+
*/
|
|
5083
|
+
getOnlineUsers(userAddresses: string[]): Promise<{
|
|
5084
|
+
online: string[];
|
|
5085
|
+
offline: string[];
|
|
5086
|
+
clients: Array<{
|
|
5087
|
+
address?: string;
|
|
5088
|
+
socketId: string;
|
|
5089
|
+
rooms: string[];
|
|
5090
|
+
}>;
|
|
5091
|
+
}>;
|
|
5092
|
+
/**
|
|
5093
|
+
* Get list of users currently viewing a specific token
|
|
5094
|
+
*
|
|
5095
|
+
* @param tokenName - Token name
|
|
5096
|
+
* @param options - Optional filtering options
|
|
5097
|
+
*/
|
|
5098
|
+
getTokenViewers(tokenName: string, options?: {
|
|
5099
|
+
authenticated?: boolean;
|
|
5100
|
+
limit?: number;
|
|
5101
|
+
}): Promise<{
|
|
5102
|
+
clients: ConnectedClient[];
|
|
5103
|
+
count: number;
|
|
5104
|
+
authenticatedCount: number;
|
|
5105
|
+
}>;
|
|
5106
|
+
/**
|
|
5107
|
+
* Get list of currently online overseers/admins
|
|
5108
|
+
*/
|
|
5109
|
+
getOnlineOverseers(): Promise<{
|
|
5110
|
+
clients: ConnectedClient[];
|
|
5111
|
+
count: number;
|
|
5112
|
+
}>;
|
|
4329
5113
|
/**
|
|
4330
5114
|
* Ban a token from the platform (overseer only).
|
|
4331
5115
|
*
|
|
@@ -4411,7 +5195,7 @@ export declare class LaunchpadSDK {
|
|
|
4411
5195
|
* @example List all banned tokens
|
|
4412
5196
|
* ```typescript
|
|
4413
5197
|
* const result = await sdk.listTokenBans();
|
|
4414
|
-
* console.log(`Total banned: ${result.
|
|
5198
|
+
* console.log(`Total banned: ${result.pageInfo.totalCount}`);
|
|
4415
5199
|
* for (const ban of result.items) {
|
|
4416
5200
|
* console.log(`${ban.tokenName}: ${ban.reason || 'No reason'}`);
|
|
4417
5201
|
* }
|
|
@@ -4421,20 +5205,19 @@ export declare class LaunchpadSDK {
|
|
|
4421
5205
|
* ```typescript
|
|
4422
5206
|
* const result = await sdk.listTokenBans({
|
|
4423
5207
|
* search: 'scam',
|
|
4424
|
-
*
|
|
4425
|
-
* limit: 10
|
|
5208
|
+
* pageSize: 10
|
|
4426
5209
|
* });
|
|
4427
5210
|
* ```
|
|
4428
5211
|
*
|
|
4429
|
-
* @example Paginate through all bans
|
|
5212
|
+
* @example Paginate through all bans (cursor-based)
|
|
4430
5213
|
* ```typescript
|
|
4431
|
-
* let
|
|
5214
|
+
* let cursor: string | undefined;
|
|
4432
5215
|
* let hasMore = true;
|
|
4433
5216
|
* while (hasMore) {
|
|
4434
|
-
* const result = await sdk.listTokenBans({
|
|
5217
|
+
* const result = await sdk.listTokenBans({ cursor, pageSize: 20 });
|
|
4435
5218
|
* console.log('Bans:', result.items.map(b => b.tokenName));
|
|
4436
|
-
* hasMore =
|
|
4437
|
-
*
|
|
5219
|
+
* hasMore = result.pageInfo.hasNextPage;
|
|
5220
|
+
* cursor = result.pageInfo.nextCursor;
|
|
4438
5221
|
* }
|
|
4439
5222
|
* ```
|
|
4440
5223
|
*/
|
|
@@ -4495,107 +5278,435 @@ export declare class LaunchpadSDK {
|
|
|
4495
5278
|
*/
|
|
4496
5279
|
isTokenBanned(options: GetTokenBanOptions): Promise<TokenBanStatusResult>;
|
|
4497
5280
|
/**
|
|
4498
|
-
*
|
|
5281
|
+
* Get current AI moderation settings (overseer only).
|
|
4499
5282
|
*
|
|
4500
|
-
*
|
|
4501
|
-
*
|
|
4502
|
-
*
|
|
5283
|
+
* Returns configuration for AI-powered content moderation including:
|
|
5284
|
+
* - Whether AI moderation is enabled
|
|
5285
|
+
* - Moderation mode (DISABLED, ADVISORY)
|
|
5286
|
+
* - Provider configuration
|
|
5287
|
+
* - Tiered analysis settings (frames, resolution, escalation threshold)
|
|
4503
5288
|
*
|
|
4504
|
-
*
|
|
4505
|
-
* @returns Updated reaction data and whether reaction was newly created
|
|
4506
|
-
* @throws ValidationError if parameters are invalid
|
|
4507
|
-
* @throws ConfigurationError if authentication is not configured
|
|
5289
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
4508
5290
|
*
|
|
4509
|
-
* @
|
|
4510
|
-
* @
|
|
5291
|
+
* @returns AI moderation settings
|
|
5292
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4511
5293
|
*
|
|
4512
|
-
* @
|
|
5294
|
+
* @since 6.15.0
|
|
5295
|
+
* @category AIModeration
|
|
5296
|
+
*
|
|
5297
|
+
* @example
|
|
4513
5298
|
* ```typescript
|
|
4514
|
-
* const
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4517
|
-
*
|
|
4518
|
-
*
|
|
4519
|
-
* console.log('Created:', result.created);
|
|
4520
|
-
* console.log('Total reactions:', result.data.totalCount);
|
|
5299
|
+
* const { settings } = await sdk.getAIModerationSettings();
|
|
5300
|
+
* console.log('AI enabled:', settings.enabled);
|
|
5301
|
+
* console.log('Mode:', settings.mode);
|
|
5302
|
+
* console.log('Tiered analysis:', settings.tieredAnalysisEnabled);
|
|
5303
|
+
* console.log('Quick scan frames:', settings.quickScanFrames);
|
|
4521
5304
|
* ```
|
|
4522
5305
|
*/
|
|
4523
|
-
|
|
5306
|
+
getAIModerationSettings(): Promise<GetAIModerationSettingsResult>;
|
|
4524
5307
|
/**
|
|
4525
|
-
*
|
|
5308
|
+
* Update AI moderation settings (overseer only).
|
|
4526
5309
|
*
|
|
4527
|
-
*
|
|
4528
|
-
* Only
|
|
5310
|
+
* Configure AI-powered content moderation behavior.
|
|
5311
|
+
* Only provided fields will be updated.
|
|
4529
5312
|
*
|
|
4530
|
-
*
|
|
4531
|
-
* @returns Success indicator
|
|
4532
|
-
* @throws ValidationError if parameters are invalid
|
|
4533
|
-
* @throws ConfigurationError if authentication is not configured
|
|
5313
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
4534
5314
|
*
|
|
4535
|
-
* @
|
|
4536
|
-
* @
|
|
5315
|
+
* @param options - Settings to update
|
|
5316
|
+
* @returns Updated AI moderation settings
|
|
5317
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
4537
5318
|
*
|
|
4538
|
-
* @
|
|
5319
|
+
* @since 6.15.0
|
|
5320
|
+
* @category AIModeration
|
|
5321
|
+
*
|
|
5322
|
+
* @example Enable AI moderation in advisory mode
|
|
4539
5323
|
* ```typescript
|
|
4540
|
-
* await sdk.
|
|
4541
|
-
*
|
|
4542
|
-
*
|
|
4543
|
-
* reactionType: 'heart'
|
|
5324
|
+
* const { settings } = await sdk.updateAIModerationSettings({
|
|
5325
|
+
* enabled: true,
|
|
5326
|
+
* mode: 'ADVISORY'
|
|
4544
5327
|
* });
|
|
4545
5328
|
* ```
|
|
4546
|
-
*/
|
|
4547
|
-
removeContentReaction(options: RemoveContentReactionOptions): Promise<RemoveContentReactionResult>;
|
|
4548
|
-
/**
|
|
4549
|
-
* Add a reaction to a chat message.
|
|
4550
|
-
*
|
|
4551
|
-
* Convenience wrapper for addContentReaction specifically for chat messages.
|
|
4552
|
-
*
|
|
4553
|
-
* @param options - Options including tokenName, messageId, and reactionType
|
|
4554
|
-
* @returns Updated reaction data
|
|
4555
|
-
*
|
|
4556
|
-
* @since 5.12.0
|
|
4557
|
-
* @category ContentReactions
|
|
4558
5329
|
*
|
|
4559
|
-
* @example
|
|
5330
|
+
* @example Change provider
|
|
4560
5331
|
* ```typescript
|
|
4561
|
-
* await sdk.
|
|
4562
|
-
*
|
|
4563
|
-
* messageId: 'msg-1703443200000-a1b2c3d4e5f6789012345678901234ab',
|
|
4564
|
-
* reactionType: 'fire'
|
|
5332
|
+
* const { settings } = await sdk.updateAIModerationSettings({
|
|
5333
|
+
* provider: 'claude'
|
|
4565
5334
|
* });
|
|
4566
5335
|
* ```
|
|
4567
5336
|
*/
|
|
4568
|
-
|
|
5337
|
+
updateAIModerationSettings(options: UpdateAIModerationSettingsOptions): Promise<UpdateAIModerationSettingsResult>;
|
|
4569
5338
|
/**
|
|
4570
|
-
*
|
|
5339
|
+
* Get AI moderation for a specific content flag (overseer only).
|
|
4571
5340
|
*
|
|
4572
|
-
*
|
|
5341
|
+
* Retrieves the AI moderation results for flagged content, including:
|
|
5342
|
+
* - Recommendation (NO_ACTION, REVIEW_REQUIRED, DELETE_CONTENT, BAN_USER)
|
|
5343
|
+
* - Confidence score (0-1)
|
|
5344
|
+
* - Detected categories with individual confidence scores
|
|
5345
|
+
* - Summary and reasoning for the recommendation
|
|
5346
|
+
* - Tiered analysis metadata (tier used, escalation info, token usage)
|
|
4573
5347
|
*
|
|
4574
|
-
*
|
|
4575
|
-
* @returns Success indicator
|
|
5348
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
4576
5349
|
*
|
|
4577
|
-
* @
|
|
4578
|
-
* @
|
|
5350
|
+
* @param options - Options including flagId
|
|
5351
|
+
* @returns AI moderation data
|
|
5352
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5353
|
+
* @throws Error if moderation not found (404)
|
|
4579
5354
|
*
|
|
4580
|
-
* @
|
|
5355
|
+
* @since 6.15.0
|
|
5356
|
+
* @category AIModeration
|
|
5357
|
+
*
|
|
5358
|
+
* @example
|
|
4581
5359
|
* ```typescript
|
|
4582
|
-
* await sdk.
|
|
4583
|
-
*
|
|
4584
|
-
*
|
|
4585
|
-
*
|
|
4586
|
-
*
|
|
5360
|
+
* const { moderation } = await sdk.getAIModeration({ flagId: 123 });
|
|
5361
|
+
*
|
|
5362
|
+
* console.log('Status:', moderation.status);
|
|
5363
|
+
* console.log('Recommendation:', moderation.recommendation);
|
|
5364
|
+
* console.log('Confidence:', moderation.confidence);
|
|
5365
|
+
*
|
|
5366
|
+
* // Tiered analysis info
|
|
5367
|
+
* if (moderation.analysisTier) {
|
|
5368
|
+
* console.log('Tier used:', moderation.analysisTier);
|
|
5369
|
+
* console.log('Escalated:', moderation.escalatedFromQuick);
|
|
5370
|
+
* }
|
|
4587
5371
|
* ```
|
|
4588
5372
|
*/
|
|
4589
|
-
|
|
5373
|
+
getAIModeration(options: GetAIModerationOptions): Promise<GetAIModerationResult>;
|
|
4590
5374
|
/**
|
|
4591
|
-
*
|
|
5375
|
+
* Trigger AI moderation for a content flag (overseer only).
|
|
4592
5376
|
*
|
|
4593
|
-
*
|
|
5377
|
+
* Queues flagged content for AI moderation. Moderation runs asynchronously -
|
|
5378
|
+
* use getAIModeration() to poll for results or listen for the
|
|
5379
|
+
* AI_MODERATION_COMPLETE WebSocket event.
|
|
4594
5380
|
*
|
|
4595
|
-
*
|
|
4596
|
-
*
|
|
5381
|
+
* For video content with tiered analysis enabled:
|
|
5382
|
+
* - Quick scan runs first (5 frames at 480px)
|
|
5383
|
+
* - If concerns found, detailed scan runs (20 frames at 640px)
|
|
4597
5384
|
*
|
|
4598
|
-
*
|
|
5385
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5386
|
+
*
|
|
5387
|
+
* @param options - Options including flagId
|
|
5388
|
+
* @returns Queued status and message
|
|
5389
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5390
|
+
* @throws Error if flag not found (404) or moderation already exists (400)
|
|
5391
|
+
*
|
|
5392
|
+
* @since 6.15.0
|
|
5393
|
+
* @category AIModeration
|
|
5394
|
+
*
|
|
5395
|
+
* @example
|
|
5396
|
+
* ```typescript
|
|
5397
|
+
* const result = await sdk.triggerAIModeration({ flagId: 123 });
|
|
5398
|
+
* console.log('Queued:', result.queued);
|
|
5399
|
+
*
|
|
5400
|
+
* // Poll for results
|
|
5401
|
+
* let moderation;
|
|
5402
|
+
* while (!moderation || moderation.status === 'PROCESSING') {
|
|
5403
|
+
* await new Promise(r => setTimeout(r, 1000));
|
|
5404
|
+
* const result = await sdk.getAIModeration({ flagId: 123 });
|
|
5405
|
+
* moderation = result.moderation;
|
|
5406
|
+
* }
|
|
5407
|
+
* console.log('Done:', moderation.recommendation);
|
|
5408
|
+
* ```
|
|
5409
|
+
*/
|
|
5410
|
+
triggerAIModeration(options: TriggerAIModerationOptions): Promise<TriggerAIModerationResult>;
|
|
5411
|
+
/**
|
|
5412
|
+
* Get AI system status (overseer only).
|
|
5413
|
+
*
|
|
5414
|
+
* Returns the current status of the AI moderation system:
|
|
5415
|
+
* - Whether AI is enabled globally
|
|
5416
|
+
* - Current mode (DISABLED, ADVISORY)
|
|
5417
|
+
* - Provider availability (e.g., Claude API accessible)
|
|
5418
|
+
*
|
|
5419
|
+
* Useful for checking if AI moderation is operational before
|
|
5420
|
+
* triggering moderation for flagged content.
|
|
5421
|
+
*
|
|
5422
|
+
* Requires either Admin API key or JWT with overseer status.
|
|
5423
|
+
*
|
|
5424
|
+
* @returns AI system status
|
|
5425
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
5426
|
+
*
|
|
5427
|
+
* @since 6.15.0
|
|
5428
|
+
* @category AIModeration
|
|
5429
|
+
*
|
|
5430
|
+
* @example
|
|
5431
|
+
* ```typescript
|
|
5432
|
+
* const { status } = await sdk.getAIModerationStatus();
|
|
5433
|
+
*
|
|
5434
|
+
* console.log('AI enabled:', status.enabled);
|
|
5435
|
+
* console.log('Provider available:', status.providerAvailable);
|
|
5436
|
+
*
|
|
5437
|
+
* // Only trigger moderation if system is operational
|
|
5438
|
+
* if (status.enabled && status.providerAvailable) {
|
|
5439
|
+
* await sdk.triggerAIModeration({ flagId: 123 });
|
|
5440
|
+
* }
|
|
5441
|
+
* ```
|
|
5442
|
+
*/
|
|
5443
|
+
getAIModerationStatus(): Promise<GetAIModerationStatusResult>;
|
|
5444
|
+
/**
|
|
5445
|
+
* Get the weekly challenge leaderboard.
|
|
5446
|
+
*
|
|
5447
|
+
* Returns tokens ranked by market cap increase for the current challenge week.
|
|
5448
|
+
* The challenge week runs Saturday to Friday, with Saturday being the baseline.
|
|
5449
|
+
*
|
|
5450
|
+
* **Public endpoint** - no authentication required.
|
|
5451
|
+
*
|
|
5452
|
+
* @param options - Options including limit (1-50, default 10)
|
|
5453
|
+
* @returns Leaderboard with ranked tokens, week dates, and snapshot info
|
|
5454
|
+
* @throws ValidationError if limit is out of range
|
|
5455
|
+
*
|
|
5456
|
+
* @since 9.0.0
|
|
5457
|
+
* @category WeeklyChallenge
|
|
5458
|
+
*
|
|
5459
|
+
* @example Get top 10 tokens in weekly challenge
|
|
5460
|
+
* ```typescript
|
|
5461
|
+
* const { leaderboard } = await sdk.getWeeklyChallengeLeaderboard({ limit: 10 });
|
|
5462
|
+
*
|
|
5463
|
+
* console.log(`Week: ${leaderboard.weekStart} to ${leaderboard.weekEnd}`);
|
|
5464
|
+
* console.log(`Total tokens: ${leaderboard.count}`);
|
|
5465
|
+
*
|
|
5466
|
+
* for (const token of leaderboard.tokens) {
|
|
5467
|
+
* console.log(`#${token.rank} ${token.symbol}: +${token.marketCapIncreaseGala} GALA`);
|
|
5468
|
+
* }
|
|
5469
|
+
* ```
|
|
5470
|
+
*/
|
|
5471
|
+
getWeeklyChallengeLeaderboard(options?: GetWeeklyChallengeOptions): Promise<GetWeeklyChallengeResult>;
|
|
5472
|
+
/**
|
|
5473
|
+
* Get weekly snapshot history for a specific token.
|
|
5474
|
+
*
|
|
5475
|
+
* Returns the last 4 weeks of snapshot data for tracking performance over time.
|
|
5476
|
+
*
|
|
5477
|
+
* **Public endpoint** - no authentication required.
|
|
5478
|
+
*
|
|
5479
|
+
* @param options - Options with vaultAddress
|
|
5480
|
+
* @returns Array of weekly snapshots with market cap and price data
|
|
5481
|
+
* @throws ValidationError if vaultAddress is missing or invalid
|
|
5482
|
+
*
|
|
5483
|
+
* @since 9.0.0
|
|
5484
|
+
* @category WeeklyChallenge
|
|
5485
|
+
*
|
|
5486
|
+
* @example Get token weekly history
|
|
5487
|
+
* ```typescript
|
|
5488
|
+
* const { snapshots } = await sdk.getTokenWeeklyHistory({
|
|
5489
|
+
* vaultAddress: 'eth|0xabc123...'
|
|
5490
|
+
* });
|
|
5491
|
+
*
|
|
5492
|
+
* for (const snap of snapshots) {
|
|
5493
|
+
* const date = new Date(snap.snapshotDate).toLocaleDateString();
|
|
5494
|
+
* console.log(`${date}: ${snap.marketCapGala} GALA`);
|
|
5495
|
+
* }
|
|
5496
|
+
*
|
|
5497
|
+
* // Calculate week-over-week change
|
|
5498
|
+
* if (snapshots.length >= 2) {
|
|
5499
|
+
* const current = parseFloat(snapshots[0].marketCapGala);
|
|
5500
|
+
* const previous = parseFloat(snapshots[1].marketCapGala);
|
|
5501
|
+
* const change = ((current - previous) / previous * 100).toFixed(2);
|
|
5502
|
+
* console.log(`Week-over-week change: ${change}%`);
|
|
5503
|
+
* }
|
|
5504
|
+
* ```
|
|
5505
|
+
*/
|
|
5506
|
+
getTokenWeeklyHistory(options: GetTokenWeeklyHistoryOptions): Promise<GetTokenWeeklyHistoryResult>;
|
|
5507
|
+
/**
|
|
5508
|
+
* Get oEmbed metadata for the home page.
|
|
5509
|
+
*
|
|
5510
|
+
* Returns oEmbed JSON data featuring the top/live token for social media previews.
|
|
5511
|
+
*
|
|
5512
|
+
* **Public endpoint** - no authentication required.
|
|
5513
|
+
*
|
|
5514
|
+
* @param options - Optional parameters
|
|
5515
|
+
* @returns oEmbed data with featured token info
|
|
5516
|
+
*
|
|
5517
|
+
* @since 9.0.0
|
|
5518
|
+
* @category OEmbed
|
|
5519
|
+
*
|
|
5520
|
+
* @example Get home page oEmbed
|
|
5521
|
+
* ```typescript
|
|
5522
|
+
* const { oembed } = await sdk.getHomeOEmbed();
|
|
5523
|
+
* console.log('Site:', oembed.provider_name);
|
|
5524
|
+
* console.log('Featured:', oembed.featuredToken);
|
|
5525
|
+
* ```
|
|
5526
|
+
*/
|
|
5527
|
+
getHomeOEmbed(options?: GetHomeOEmbedOptions): Promise<GetHomeOEmbedJsonResult>;
|
|
5528
|
+
/**
|
|
5529
|
+
* Get oEmbed metadata for a pool/token page.
|
|
5530
|
+
*
|
|
5531
|
+
* Returns oEmbed JSON data for a token's buy/sell page, including
|
|
5532
|
+
* live stream status if applicable.
|
|
5533
|
+
*
|
|
5534
|
+
* **Public endpoint** - no authentication required.
|
|
5535
|
+
*
|
|
5536
|
+
* @param options - Options with tokenName
|
|
5537
|
+
* @returns oEmbed data with token info and live status
|
|
5538
|
+
* @throws ValidationError if tokenName is missing or invalid
|
|
5539
|
+
*
|
|
5540
|
+
* @since 9.0.0
|
|
5541
|
+
* @category OEmbed
|
|
5542
|
+
*
|
|
5543
|
+
* @example Get pool oEmbed
|
|
5544
|
+
* ```typescript
|
|
5545
|
+
* const { oembed } = await sdk.getPoolOEmbed({ tokenName: 'anime' });
|
|
5546
|
+
* console.log('Token:', oembed.tokenName);
|
|
5547
|
+
* console.log('Symbol:', oembed.symbol);
|
|
5548
|
+
* console.log('Live:', oembed.isLive);
|
|
5549
|
+
* ```
|
|
5550
|
+
*/
|
|
5551
|
+
getPoolOEmbed(options: GetPoolOEmbedOptions): Promise<GetPoolOEmbedJsonResult>;
|
|
5552
|
+
/**
|
|
5553
|
+
* Get oEmbed metadata for a user profile page.
|
|
5554
|
+
*
|
|
5555
|
+
* Returns oEmbed JSON data for a user's profile including stats.
|
|
5556
|
+
*
|
|
5557
|
+
* **Public endpoint** - no authentication required.
|
|
5558
|
+
*
|
|
5559
|
+
* @param options - Options with address
|
|
5560
|
+
* @returns oEmbed data with user stats
|
|
5561
|
+
* @throws ValidationError if address is missing or invalid
|
|
5562
|
+
*
|
|
5563
|
+
* @since 9.0.0
|
|
5564
|
+
* @category OEmbed
|
|
5565
|
+
*
|
|
5566
|
+
* @example Get profile oEmbed
|
|
5567
|
+
* ```typescript
|
|
5568
|
+
* const { oembed } = await sdk.getProfileOEmbed({ address: 'eth|0x123...' });
|
|
5569
|
+
* console.log('User:', oembed.displayName);
|
|
5570
|
+
* console.log('Tokens created:', oembed.tokensCreated);
|
|
5571
|
+
* console.log('Volume:', oembed.totalVolumeGala);
|
|
5572
|
+
* ```
|
|
5573
|
+
*/
|
|
5574
|
+
getProfileOEmbed(options: GetProfileOEmbedOptions): Promise<GetProfileOEmbedJsonResult>;
|
|
5575
|
+
/**
|
|
5576
|
+
* Get platform-wide statistics.
|
|
5577
|
+
*
|
|
5578
|
+
* Returns aggregated platform metrics including:
|
|
5579
|
+
* - GALA trading volume over 1h, 24h, 7d
|
|
5580
|
+
* - Total number of tokens on the platform
|
|
5581
|
+
*
|
|
5582
|
+
* **Caching:** Backend caches stats for 3 minutes.
|
|
5583
|
+
*
|
|
5584
|
+
* **Public endpoint** - no authentication required.
|
|
5585
|
+
*
|
|
5586
|
+
* @returns Platform statistics
|
|
5587
|
+
*
|
|
5588
|
+
* @since 9.0.0
|
|
5589
|
+
* @category PlatformStats
|
|
5590
|
+
*
|
|
5591
|
+
* @example Get platform stats
|
|
5592
|
+
* ```typescript
|
|
5593
|
+
* const { stats } = await sdk.getPlatformStats();
|
|
5594
|
+
*
|
|
5595
|
+
* // Display volume in millions
|
|
5596
|
+
* const vol24h = parseFloat(stats.galaVolume24h);
|
|
5597
|
+
* console.log(`24h Volume: ${(vol24h / 1_000_000).toFixed(2)}M GALA`);
|
|
5598
|
+
*
|
|
5599
|
+
* // Display token count
|
|
5600
|
+
* console.log(`${stats.totalTokens} tokens on platform`);
|
|
5601
|
+
*
|
|
5602
|
+
* // Display timestamp
|
|
5603
|
+
* const updated = new Date(stats.timestamp);
|
|
5604
|
+
* console.log(`Last updated: ${updated.toLocaleString()}`);
|
|
5605
|
+
* ```
|
|
5606
|
+
*/
|
|
5607
|
+
getPlatformStats(): Promise<GetPlatformStatsResult>;
|
|
5608
|
+
/**
|
|
5609
|
+
* Add a reaction to a pool message (chat or comment).
|
|
5610
|
+
*
|
|
5611
|
+
* Requires JWT or API key authentication.
|
|
5612
|
+
* Adding the same reaction type again is a no-op (idempotent).
|
|
5613
|
+
* Users can have multiple different reaction types on the same message.
|
|
5614
|
+
*
|
|
5615
|
+
* @param options - Options including tokenName, messageId, and reactionType
|
|
5616
|
+
* @returns Updated reaction data and whether reaction was newly created
|
|
5617
|
+
* @throws ValidationError if parameters are invalid
|
|
5618
|
+
* @throws ConfigurationError if authentication is not configured
|
|
5619
|
+
*
|
|
5620
|
+
* @since 5.12.0
|
|
5621
|
+
* @category ContentReactions
|
|
5622
|
+
*
|
|
5623
|
+
* @example Add a heart reaction
|
|
5624
|
+
* ```typescript
|
|
5625
|
+
* const result = await sdk.addContentReaction({
|
|
5626
|
+
* tokenName: 'mytoken',
|
|
5627
|
+
* messageId: 'msg-1703443200000-a1b2c3d4e5f6789012345678901234ab',
|
|
5628
|
+
* reactionType: 'heart'
|
|
5629
|
+
* });
|
|
5630
|
+
* console.log('Created:', result.created);
|
|
5631
|
+
* console.log('Total reactions:', result.data.totalCount);
|
|
5632
|
+
* ```
|
|
5633
|
+
*/
|
|
5634
|
+
addContentReaction(options: AddContentReactionOptions): Promise<AddContentReactionResult>;
|
|
5635
|
+
/**
|
|
5636
|
+
* Remove a reaction from a pool message.
|
|
5637
|
+
*
|
|
5638
|
+
* Requires JWT or API key authentication.
|
|
5639
|
+
* Only the user who created the reaction can remove it.
|
|
5640
|
+
*
|
|
5641
|
+
* @param options - Options including tokenName, messageId, and reactionType
|
|
5642
|
+
* @returns Success indicator
|
|
5643
|
+
* @throws ValidationError if parameters are invalid
|
|
5644
|
+
* @throws ConfigurationError if authentication is not configured
|
|
5645
|
+
*
|
|
5646
|
+
* @since 5.12.0
|
|
5647
|
+
* @category ContentReactions
|
|
5648
|
+
*
|
|
5649
|
+
* @example Remove a heart reaction
|
|
5650
|
+
* ```typescript
|
|
5651
|
+
* await sdk.removeContentReaction({
|
|
5652
|
+
* tokenName: 'mytoken',
|
|
5653
|
+
* messageId: 'msg-1703443200000-a1b2c3d4e5f6789012345678901234ab',
|
|
5654
|
+
* reactionType: 'heart'
|
|
5655
|
+
* });
|
|
5656
|
+
* ```
|
|
5657
|
+
*/
|
|
5658
|
+
removeContentReaction(options: RemoveContentReactionOptions): Promise<RemoveContentReactionResult>;
|
|
5659
|
+
/**
|
|
5660
|
+
* Add a reaction to a chat message.
|
|
5661
|
+
*
|
|
5662
|
+
* Convenience wrapper for addContentReaction specifically for chat messages.
|
|
5663
|
+
*
|
|
5664
|
+
* @param options - Options including tokenName, messageId, and reactionType
|
|
5665
|
+
* @returns Updated reaction data
|
|
5666
|
+
*
|
|
5667
|
+
* @since 5.12.0
|
|
5668
|
+
* @category ContentReactions
|
|
5669
|
+
*
|
|
5670
|
+
* @example Add a fire reaction to a chat message
|
|
5671
|
+
* ```typescript
|
|
5672
|
+
* await sdk.addReactionToChatMessage({
|
|
5673
|
+
* tokenName: 'mytoken',
|
|
5674
|
+
* messageId: 'msg-1703443200000-a1b2c3d4e5f6789012345678901234ab',
|
|
5675
|
+
* reactionType: 'fire'
|
|
5676
|
+
* });
|
|
5677
|
+
* ```
|
|
5678
|
+
*/
|
|
5679
|
+
addReactionToChatMessage(options: AddContentReactionOptions): Promise<AddContentReactionResult>;
|
|
5680
|
+
/**
|
|
5681
|
+
* Remove a reaction from a chat message.
|
|
5682
|
+
*
|
|
5683
|
+
* Convenience wrapper for removeContentReaction specifically for chat messages.
|
|
5684
|
+
*
|
|
5685
|
+
* @param options - Options including tokenName, messageId, and reactionType
|
|
5686
|
+
* @returns Success indicator
|
|
5687
|
+
*
|
|
5688
|
+
* @since 5.12.0
|
|
5689
|
+
* @category ContentReactions
|
|
5690
|
+
*
|
|
5691
|
+
* @example Remove a fire reaction from a chat message
|
|
5692
|
+
* ```typescript
|
|
5693
|
+
* await sdk.removeReactionFromChatMessage({
|
|
5694
|
+
* tokenName: 'mytoken',
|
|
5695
|
+
* messageId: 'msg-1703443200000-a1b2c3d4e5f6789012345678901234ab',
|
|
5696
|
+
* reactionType: 'fire'
|
|
5697
|
+
* });
|
|
5698
|
+
* ```
|
|
5699
|
+
*/
|
|
5700
|
+
removeReactionFromChatMessage(options: RemoveContentReactionOptions): Promise<RemoveContentReactionResult>;
|
|
5701
|
+
/**
|
|
5702
|
+
* Add a reaction to a comment.
|
|
5703
|
+
*
|
|
5704
|
+
* Convenience wrapper for addContentReaction specifically for comments.
|
|
5705
|
+
*
|
|
5706
|
+
* @param options - Options including tokenName, messageId, and reactionType
|
|
5707
|
+
* @returns Updated reaction data
|
|
5708
|
+
*
|
|
5709
|
+
* @since 5.12.0
|
|
4599
5710
|
* @category ContentReactions
|
|
4600
5711
|
*
|
|
4601
5712
|
* @example Add a thumbs_up reaction to a comment
|
|
@@ -4655,8 +5766,7 @@ export declare class LaunchpadSDK {
|
|
|
4655
5766
|
* ```typescript
|
|
4656
5767
|
* const result = await sdk.getComments({
|
|
4657
5768
|
* userAddress: 'eth|0x123...',
|
|
4658
|
-
*
|
|
4659
|
-
* limit: 20
|
|
5769
|
+
* pageSize: 20
|
|
4660
5770
|
* });
|
|
4661
5771
|
* ```
|
|
4662
5772
|
*/
|
|
@@ -4754,8 +5864,7 @@ export declare class LaunchpadSDK {
|
|
|
4754
5864
|
* ```typescript
|
|
4755
5865
|
* const result = await sdk.getChatMessages({
|
|
4756
5866
|
* userAddress: 'eth|0x123...',
|
|
4757
|
-
*
|
|
4758
|
-
* limit: 50
|
|
5867
|
+
* pageSize: 50
|
|
4759
5868
|
* });
|
|
4760
5869
|
* ```
|
|
4761
5870
|
*/
|
|
@@ -4782,51 +5891,425 @@ export declare class LaunchpadSDK {
|
|
|
4782
5891
|
* console.log('Message sent:', result.message.id);
|
|
4783
5892
|
* ```
|
|
4784
5893
|
*/
|
|
4785
|
-
sendChatMessage(options: CreateChatMessageOptions): Promise<CreateChatMessageResult>;
|
|
5894
|
+
sendChatMessage(options: CreateChatMessageOptions): Promise<CreateChatMessageResult>;
|
|
5895
|
+
/**
|
|
5896
|
+
* Update a chat message.
|
|
5897
|
+
*
|
|
5898
|
+
* Requires JWT authentication. Only the message author can update.
|
|
5899
|
+
*
|
|
5900
|
+
* @param id Message ID to update (format: chat-{timestamp}-{uuid})
|
|
5901
|
+
* @param options Update options including new content
|
|
5902
|
+
* @returns The updated chat message
|
|
5903
|
+
* @throws ValidationError if ID or content is invalid
|
|
5904
|
+
* @throws ConfigurationError if JWT is not configured
|
|
5905
|
+
*
|
|
5906
|
+
* @since 6.2.0
|
|
5907
|
+
* @category Chat
|
|
5908
|
+
*
|
|
5909
|
+
* @example Update a chat message
|
|
5910
|
+
* ```typescript
|
|
5911
|
+
* const result = await sdk.updateChatMessage(
|
|
5912
|
+
* 'chat-1734445623456-550e8400-e29b-41d4-a716-446655440000',
|
|
5913
|
+
* { content: 'Updated message' }
|
|
5914
|
+
* );
|
|
5915
|
+
* console.log('Updated:', result.message.updatedAt);
|
|
5916
|
+
* ```
|
|
5917
|
+
*/
|
|
5918
|
+
updateChatMessage(id: string, options: UpdateChatMessageOptions): Promise<UpdateChatMessageResult>;
|
|
5919
|
+
/**
|
|
5920
|
+
* Delete a chat message.
|
|
5921
|
+
*
|
|
5922
|
+
* Supports both JWT and API key authentication.
|
|
5923
|
+
* Authorization: message author, pool owner, or MANAGE_CHAT permission.
|
|
5924
|
+
*
|
|
5925
|
+
* @param id Message ID to delete (format: chat-{timestamp}-{uuid})
|
|
5926
|
+
* @throws ValidationError if ID format is invalid
|
|
5927
|
+
* @throws ConfigurationError if neither JWT nor API key is configured
|
|
5928
|
+
*
|
|
5929
|
+
* @since 6.2.0
|
|
5930
|
+
* @category Chat
|
|
5931
|
+
*
|
|
5932
|
+
* @example Delete a chat message
|
|
5933
|
+
* ```typescript
|
|
5934
|
+
* await sdk.deleteChatMessage('chat-1734445623456-550e8400-e29b-41d4-a716-446655440000');
|
|
5935
|
+
* console.log('Message deleted');
|
|
5936
|
+
* ```
|
|
5937
|
+
*/
|
|
5938
|
+
deleteChatMessage(id: string): Promise<void>;
|
|
5939
|
+
/**
|
|
5940
|
+
* Fetch messages with optional filtering by type, token, or user.
|
|
5941
|
+
*
|
|
5942
|
+
* Unified endpoint for all message types (CHAT and COMMENT).
|
|
5943
|
+
* Public endpoint - no authentication required.
|
|
5944
|
+
* At least one of type, tokenName, or userAddress must be provided.
|
|
5945
|
+
*
|
|
5946
|
+
* @param options Query options including type/tokenName/userAddress and pagination
|
|
5947
|
+
* @returns Paginated list of messages
|
|
5948
|
+
* @throws ValidationError if no filter is provided or options are invalid
|
|
5949
|
+
*
|
|
5950
|
+
* @since 7.0.0
|
|
5951
|
+
* @category Messages
|
|
5952
|
+
*
|
|
5953
|
+
* @example Get chat messages for a token
|
|
5954
|
+
* ```typescript
|
|
5955
|
+
* const { messages, pageInfo } = await sdk.fetchMessages({
|
|
5956
|
+
* type: 'CHAT',
|
|
5957
|
+
* tokenName: 'anime'
|
|
5958
|
+
* });
|
|
5959
|
+
* console.log(`Found ${pageInfo.totalCount} chat messages`);
|
|
5960
|
+
* ```
|
|
5961
|
+
*
|
|
5962
|
+
* @example Get comments for a token
|
|
5963
|
+
* ```typescript
|
|
5964
|
+
* const { messages, pageInfo } = await sdk.fetchMessages({
|
|
5965
|
+
* type: 'COMMENT',
|
|
5966
|
+
* tokenName: 'anime'
|
|
5967
|
+
* });
|
|
5968
|
+
* ```
|
|
5969
|
+
*
|
|
5970
|
+
* @example Get all messages from a user with pagination
|
|
5971
|
+
* ```typescript
|
|
5972
|
+
* const result = await sdk.fetchMessages({
|
|
5973
|
+
* userAddress: 'eth|0x123...',
|
|
5974
|
+
* pageSize: 20,
|
|
5975
|
+
* cursor: 'next_cursor'
|
|
5976
|
+
* });
|
|
5977
|
+
* ```
|
|
5978
|
+
*/
|
|
5979
|
+
fetchMessages(options: FetchMessagesOptions): Promise<FetchMessagesResult>;
|
|
5980
|
+
/**
|
|
5981
|
+
* Create a new message (chat or comment).
|
|
5982
|
+
*
|
|
5983
|
+
* Requires JWT authentication.
|
|
5984
|
+
*
|
|
5985
|
+
* @param options Create options including type, tokenName, and content
|
|
5986
|
+
* @returns The created message
|
|
5987
|
+
* @throws ValidationError if options are invalid
|
|
5988
|
+
* @throws ConfigurationError if JWT is not configured
|
|
5989
|
+
*
|
|
5990
|
+
* @since 7.0.0
|
|
5991
|
+
* @category Messages
|
|
5992
|
+
*
|
|
5993
|
+
* @example Create a chat message
|
|
5994
|
+
* ```typescript
|
|
5995
|
+
* const result = await sdk.createMessage({
|
|
5996
|
+
* type: 'CHAT',
|
|
5997
|
+
* tokenName: 'anime',
|
|
5998
|
+
* content: 'Hello world!'
|
|
5999
|
+
* });
|
|
6000
|
+
* console.log('Created message ID:', result.message.id);
|
|
6001
|
+
* ```
|
|
6002
|
+
*
|
|
6003
|
+
* @example Create a comment
|
|
6004
|
+
* ```typescript
|
|
6005
|
+
* const result = await sdk.createMessage({
|
|
6006
|
+
* type: 'COMMENT',
|
|
6007
|
+
* tokenName: 'anime',
|
|
6008
|
+
* content: 'Great project!'
|
|
6009
|
+
* });
|
|
6010
|
+
* ```
|
|
6011
|
+
*/
|
|
6012
|
+
createMessage(options: CreateMessageOptions): Promise<CreateMessageResult>;
|
|
6013
|
+
/**
|
|
6014
|
+
* Update a message's content.
|
|
6015
|
+
*
|
|
6016
|
+
* Requires JWT authentication. Only the message author can update.
|
|
6017
|
+
*
|
|
6018
|
+
* @param id Message ID to update
|
|
6019
|
+
* @param options Update options including new content
|
|
6020
|
+
* @returns The updated message
|
|
6021
|
+
* @throws ValidationError if ID or content is invalid
|
|
6022
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6023
|
+
*
|
|
6024
|
+
* @since 7.0.0
|
|
6025
|
+
* @category Messages
|
|
6026
|
+
*
|
|
6027
|
+
* @example Update a message
|
|
6028
|
+
* ```typescript
|
|
6029
|
+
* const result = await sdk.updateMessage('msg-1234567890123-abc...', {
|
|
6030
|
+
* content: 'Updated message content'
|
|
6031
|
+
* });
|
|
6032
|
+
* console.log('Updated at:', result.message.updatedAt);
|
|
6033
|
+
* ```
|
|
6034
|
+
*/
|
|
6035
|
+
updateMessage(id: string, options: UpdateMessageOptions): Promise<UpdateMessageResult>;
|
|
6036
|
+
/**
|
|
6037
|
+
* Delete a message.
|
|
6038
|
+
*
|
|
6039
|
+
* Requires authentication (JWT or API key).
|
|
6040
|
+
* Authorization: message author, token owner, moderator, or admin.
|
|
6041
|
+
*
|
|
6042
|
+
* @param id Message ID to delete
|
|
6043
|
+
* @returns Success indicator
|
|
6044
|
+
* @throws ValidationError if ID is invalid
|
|
6045
|
+
* @throws ConfigurationError if neither JWT nor API key is configured
|
|
6046
|
+
*
|
|
6047
|
+
* @since 7.0.0
|
|
6048
|
+
* @category Messages
|
|
6049
|
+
*
|
|
6050
|
+
* @example Delete a message
|
|
6051
|
+
* ```typescript
|
|
6052
|
+
* await sdk.deleteMessage('msg-1234567890123-abc...');
|
|
6053
|
+
* console.log('Message deleted');
|
|
6054
|
+
* ```
|
|
6055
|
+
*/
|
|
6056
|
+
deleteMessage(id: string): Promise<DeleteMessageResult>;
|
|
6057
|
+
/**
|
|
6058
|
+
* Get the currently pinned message for a token.
|
|
6059
|
+
*
|
|
6060
|
+
* Public endpoint - no authentication required.
|
|
6061
|
+
*
|
|
6062
|
+
* @param tokenName Token name to get pinned message for
|
|
6063
|
+
* @returns The pinned message or null if none
|
|
6064
|
+
*
|
|
6065
|
+
* @since 7.0.0
|
|
6066
|
+
* @category Messages
|
|
6067
|
+
*
|
|
6068
|
+
* @example Get pinned message
|
|
6069
|
+
* ```typescript
|
|
6070
|
+
* const result = await sdk.getPinnedMessage('anime');
|
|
6071
|
+
* if (result.message) {
|
|
6072
|
+
* console.log('Pinned:', result.message.content);
|
|
6073
|
+
* } else {
|
|
6074
|
+
* console.log('No message pinned');
|
|
6075
|
+
* }
|
|
6076
|
+
* ```
|
|
6077
|
+
*/
|
|
6078
|
+
getPinnedMessage(tokenName: string): Promise<GetPinnedMessageResult>;
|
|
6079
|
+
/**
|
|
6080
|
+
* Pin a message.
|
|
6081
|
+
*
|
|
6082
|
+
* Requires JWT authentication with owner or moderator role.
|
|
6083
|
+
* Only one message can be pinned per token at a time.
|
|
6084
|
+
*
|
|
6085
|
+
* @param id Message ID to pin
|
|
6086
|
+
* @returns Success indicator
|
|
6087
|
+
* @throws ValidationError if ID is invalid
|
|
6088
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6089
|
+
*
|
|
6090
|
+
* @since 7.0.0
|
|
6091
|
+
* @category Messages
|
|
6092
|
+
*
|
|
6093
|
+
* @example Pin a message
|
|
6094
|
+
* ```typescript
|
|
6095
|
+
* await sdk.pinMessage('msg-1234567890123-abc...');
|
|
6096
|
+
* console.log('Message pinned');
|
|
6097
|
+
* ```
|
|
6098
|
+
*/
|
|
6099
|
+
pinMessage(id: string): Promise<PinMessageResult>;
|
|
6100
|
+
/**
|
|
6101
|
+
* Unpin a message.
|
|
6102
|
+
*
|
|
6103
|
+
* Requires JWT authentication with owner or moderator role.
|
|
6104
|
+
*
|
|
6105
|
+
* @param id Message ID to unpin
|
|
6106
|
+
* @returns Success indicator
|
|
6107
|
+
* @throws ValidationError if ID is invalid
|
|
6108
|
+
* @throws ConfigurationError if JWT is not configured
|
|
6109
|
+
*
|
|
6110
|
+
* @since 7.0.0
|
|
6111
|
+
* @category Messages
|
|
6112
|
+
*
|
|
6113
|
+
* @example Unpin a message
|
|
6114
|
+
* ```typescript
|
|
6115
|
+
* await sdk.unpinMessage('msg-1234567890123-abc...');
|
|
6116
|
+
* console.log('Message unpinned');
|
|
6117
|
+
* ```
|
|
6118
|
+
*/
|
|
6119
|
+
unpinMessage(id: string): Promise<PinMessageResult>;
|
|
6120
|
+
/**
|
|
6121
|
+
* Get platform-wide message statistics.
|
|
6122
|
+
*
|
|
6123
|
+
* Requires admin API key or overseer JWT (AdminOrOverseerGuard).
|
|
6124
|
+
*
|
|
6125
|
+
* Returns aggregated message metrics including:
|
|
6126
|
+
* - Total message count
|
|
6127
|
+
* - Today's message count
|
|
6128
|
+
* - Unique users and tokens
|
|
6129
|
+
* - Message counts by type (CHAT_MESSAGE, COMMENT)
|
|
6130
|
+
*
|
|
6131
|
+
* @returns Platform-wide message statistics
|
|
6132
|
+
* @throws ConfigurationError if neither admin API key nor JWT is configured
|
|
6133
|
+
*
|
|
6134
|
+
* @since 9.1.0
|
|
6135
|
+
* @category Messages
|
|
6136
|
+
*
|
|
6137
|
+
* @example Get message statistics
|
|
6138
|
+
* ```typescript
|
|
6139
|
+
* const stats = await sdk.getMessageStats();
|
|
6140
|
+
* console.log('Total messages:', stats.totalMessages);
|
|
6141
|
+
* console.log('Today:', stats.todayMessages);
|
|
6142
|
+
* console.log('Unique users:', stats.uniqueUsers);
|
|
6143
|
+
* console.log('Unique tokens:', stats.uniqueTokens);
|
|
6144
|
+
* console.log('By type:', stats.messagesByType);
|
|
6145
|
+
* ```
|
|
6146
|
+
*/
|
|
6147
|
+
getMessageStats(): Promise<MessageStats>;
|
|
6148
|
+
/**
|
|
6149
|
+
* Get current platform configuration.
|
|
6150
|
+
*
|
|
6151
|
+
* Public endpoint - no authentication required.
|
|
6152
|
+
*
|
|
6153
|
+
* Returns global platform settings affecting all tokens and streams:
|
|
6154
|
+
* - Whether streaming is enabled globally
|
|
6155
|
+
* - Whether chat is enabled globally
|
|
6156
|
+
* - Whether comments are enabled globally
|
|
6157
|
+
* - Whether webhooks are enabled globally
|
|
6158
|
+
*
|
|
6159
|
+
* @returns Current platform configuration
|
|
6160
|
+
*
|
|
6161
|
+
* @since 7.3.0
|
|
6162
|
+
* @category Configuration
|
|
6163
|
+
*
|
|
6164
|
+
* @example Get platform configuration
|
|
6165
|
+
* ```typescript
|
|
6166
|
+
* const config = await sdk.getPlatformConfig();
|
|
6167
|
+
*
|
|
6168
|
+
* if (!config.streamingEnabled) {
|
|
6169
|
+
* console.log('Platform streaming is disabled');
|
|
6170
|
+
* }
|
|
6171
|
+
*
|
|
6172
|
+
* if (!config.chatEnabled) {
|
|
6173
|
+
* console.log('Platform chat is disabled');
|
|
6174
|
+
* }
|
|
6175
|
+
* ```
|
|
6176
|
+
*/
|
|
6177
|
+
getPlatformConfig(): Promise<PlatformConfig>;
|
|
6178
|
+
/**
|
|
6179
|
+
* Update platform configuration.
|
|
6180
|
+
*
|
|
6181
|
+
* Requires JWT authentication with admin or overseer role.
|
|
6182
|
+
*
|
|
6183
|
+
* Performs a partial update - only provide fields to change.
|
|
6184
|
+
* Other fields remain unchanged.
|
|
6185
|
+
*
|
|
6186
|
+
* @param options - Configuration fields to update
|
|
6187
|
+
* @returns Updated platform configuration
|
|
6188
|
+
* @throws ValidationError if options are invalid or missing
|
|
6189
|
+
* @throws ConfigurationError if JWT auth is not configured
|
|
6190
|
+
* @throws Error if user is not authorized (not admin or overseer)
|
|
6191
|
+
*
|
|
6192
|
+
* @since 7.3.0
|
|
6193
|
+
* @category Configuration
|
|
6194
|
+
*
|
|
6195
|
+
* @example Disable streaming platform-wide
|
|
6196
|
+
* ```typescript
|
|
6197
|
+
* const updated = await sdk.updatePlatformConfig({
|
|
6198
|
+
* streamingEnabled: false
|
|
6199
|
+
* });
|
|
6200
|
+
* console.log('Streaming disabled globally');
|
|
6201
|
+
* ```
|
|
6202
|
+
*
|
|
6203
|
+
* @example Disable multiple features
|
|
6204
|
+
* ```typescript
|
|
6205
|
+
* const updated = await sdk.updatePlatformConfig({
|
|
6206
|
+
* streamingEnabled: false,
|
|
6207
|
+
* chatEnabled: false,
|
|
6208
|
+
* commentsEnabled: false
|
|
6209
|
+
* });
|
|
6210
|
+
* ```
|
|
6211
|
+
*/
|
|
6212
|
+
updatePlatformConfig(options: UpdatePlatformConfigOptions): Promise<PlatformConfig>;
|
|
6213
|
+
/**
|
|
6214
|
+
* Get the restricted token names content (Overseer only).
|
|
6215
|
+
*
|
|
6216
|
+
* Returns a newline-separated list of restricted words that cannot be used in token names.
|
|
6217
|
+
*
|
|
6218
|
+
* Requires JWT authentication with overseer role.
|
|
6219
|
+
*
|
|
6220
|
+
* @returns Promise<GetRestrictedNamesResult> Success/error with content
|
|
6221
|
+
*
|
|
6222
|
+
* @since 7.0.0
|
|
6223
|
+
* @category Configuration
|
|
6224
|
+
*
|
|
6225
|
+
* @example
|
|
6226
|
+
* ```typescript
|
|
6227
|
+
* const result = await sdk.getRestrictedNames();
|
|
6228
|
+
* if (result.success) {
|
|
6229
|
+
* const words = result.data.content.split('\n').filter(w => w.trim());
|
|
6230
|
+
* console.log('Restricted words:', words);
|
|
6231
|
+
* }
|
|
6232
|
+
* ```
|
|
6233
|
+
*/
|
|
6234
|
+
getRestrictedNames(): Promise<GetRestrictedNamesResult>;
|
|
6235
|
+
/**
|
|
6236
|
+
* Update the restricted token names content (Overseer only).
|
|
6237
|
+
*
|
|
6238
|
+
* Replaces the entire list with newline-separated words.
|
|
6239
|
+
* Contains offensive words - not exposed publicly.
|
|
6240
|
+
*
|
|
6241
|
+
* Requires JWT authentication with overseer role.
|
|
6242
|
+
*
|
|
6243
|
+
* @param request Request containing newline-separated content
|
|
6244
|
+
* @returns Promise<UpdateRestrictedNamesResult> Success or error
|
|
6245
|
+
* @throws {ValidationError} If content is not provided
|
|
6246
|
+
*
|
|
6247
|
+
* @since 7.0.0
|
|
6248
|
+
* @category Configuration
|
|
6249
|
+
*
|
|
6250
|
+
* @example
|
|
6251
|
+
* ```typescript
|
|
6252
|
+
* const result = await sdk.updateRestrictedNames({
|
|
6253
|
+
* content: 'scam\nrug\nfake\nfraud\n...'
|
|
6254
|
+
* });
|
|
6255
|
+
* if (result.success) {
|
|
6256
|
+
* console.log('Restricted names updated');
|
|
6257
|
+
* }
|
|
6258
|
+
* ```
|
|
6259
|
+
*/
|
|
6260
|
+
updateRestrictedNames(request: UpdateRestrictedNamesRequest): Promise<UpdateRestrictedNamesResult>;
|
|
4786
6261
|
/**
|
|
4787
|
-
* Update
|
|
6262
|
+
* Update token configuration (chat/comments enabled status).
|
|
4788
6263
|
*
|
|
4789
|
-
* Requires JWT authentication
|
|
6264
|
+
* Requires JWT authentication with owner or admin role.
|
|
4790
6265
|
*
|
|
4791
|
-
* @param
|
|
4792
|
-
* @param
|
|
4793
|
-
* @returns
|
|
4794
|
-
* @throws ValidationError if
|
|
6266
|
+
* @param tokenName Token name to configure
|
|
6267
|
+
* @param config Configuration options
|
|
6268
|
+
* @returns Promise<void>
|
|
6269
|
+
* @throws ValidationError if options are invalid
|
|
4795
6270
|
* @throws ConfigurationError if JWT is not configured
|
|
4796
6271
|
*
|
|
4797
|
-
* @since
|
|
4798
|
-
* @category
|
|
6272
|
+
* @since 7.0.0
|
|
6273
|
+
* @category Pools
|
|
4799
6274
|
*
|
|
4800
|
-
* @example
|
|
6275
|
+
* @example Disable chat for a token
|
|
4801
6276
|
* ```typescript
|
|
4802
|
-
*
|
|
4803
|
-
* 'chat-1734445623456-550e8400-e29b-41d4-a716-446655440000',
|
|
4804
|
-
* { content: 'Updated message' }
|
|
4805
|
-
* );
|
|
4806
|
-
* console.log('Updated:', result.message.updatedAt);
|
|
6277
|
+
* await sdk.updateTokenConfig('anime', { messagesEnabled: false });
|
|
4807
6278
|
* ```
|
|
4808
|
-
*/
|
|
4809
|
-
updateChatMessage(id: string, options: UpdateChatMessageOptions): Promise<UpdateChatMessageResult>;
|
|
4810
|
-
/**
|
|
4811
|
-
* Delete a chat message.
|
|
4812
6279
|
*
|
|
4813
|
-
*
|
|
4814
|
-
*
|
|
6280
|
+
* @example Enable comments for a token
|
|
6281
|
+
* ```typescript
|
|
6282
|
+
* await sdk.updateTokenConfig('anime', { commentsEnabled: true });
|
|
6283
|
+
* ```
|
|
4815
6284
|
*
|
|
4816
|
-
* @
|
|
4817
|
-
*
|
|
4818
|
-
*
|
|
6285
|
+
* @example Update messaging and comments
|
|
6286
|
+
* ```typescript
|
|
6287
|
+
* await sdk.updateTokenConfig('anime', {
|
|
6288
|
+
* messagesEnabled: true,
|
|
6289
|
+
* commentsEnabled: false
|
|
6290
|
+
* });
|
|
6291
|
+
* ```
|
|
4819
6292
|
*
|
|
4820
|
-
* @
|
|
4821
|
-
*
|
|
6293
|
+
* @example Update social links
|
|
6294
|
+
* ```typescript
|
|
6295
|
+
* await sdk.updateTokenConfig('anime', {
|
|
6296
|
+
* websiteUrl: 'https://anime.example.com',
|
|
6297
|
+
* twitterUrl: 'https://twitter.com/animeproject',
|
|
6298
|
+
* telegramUrl: 'https://t.me/animegroup',
|
|
6299
|
+
* discordUrl: 'https://discord.gg/anime'
|
|
6300
|
+
* });
|
|
6301
|
+
* ```
|
|
4822
6302
|
*
|
|
4823
|
-
* @example
|
|
6303
|
+
* @example Update streaming configuration
|
|
4824
6304
|
* ```typescript
|
|
4825
|
-
* await sdk.
|
|
4826
|
-
*
|
|
6305
|
+
* await sdk.updateTokenConfig('anime', {
|
|
6306
|
+
* streamingEnabled: true,
|
|
6307
|
+
* streamLanguage: 'en',
|
|
6308
|
+
* nextLiveStreamAt: '2026-02-01T18:00:00Z'
|
|
6309
|
+
* });
|
|
4827
6310
|
* ```
|
|
4828
6311
|
*/
|
|
4829
|
-
|
|
6312
|
+
updateTokenConfig(tokenName: string, config: UpdateTokenConfigOptions): Promise<void>;
|
|
4830
6313
|
/**
|
|
4831
6314
|
* Get trades with flexible filtering.
|
|
4832
6315
|
*
|
|
@@ -4867,13 +6350,124 @@ export declare class LaunchpadSDK {
|
|
|
4867
6350
|
* const { trades, meta } = await sdk.getTrades({
|
|
4868
6351
|
* tokenName: 'anime',
|
|
4869
6352
|
* userAddress: 'eth|1234567890abcdef...',
|
|
4870
|
-
*
|
|
4871
|
-
* limit: 20
|
|
6353
|
+
* pageSize: 20
|
|
4872
6354
|
* });
|
|
4873
6355
|
* console.log(`Page ${meta.currentPage} of ${meta.totalPages}`);
|
|
4874
6356
|
* ```
|
|
4875
6357
|
*/
|
|
4876
6358
|
getTrades(options: GetTradesOptions): Promise<TradesQueryResult>;
|
|
6359
|
+
/**
|
|
6360
|
+
* Get the most recently executed trades with optional filtering
|
|
6361
|
+
*
|
|
6362
|
+
* Convenience wrapper around `getTrades()` for quick access to recent market
|
|
6363
|
+
* activity. Returns trades sorted by newest first.
|
|
6364
|
+
*
|
|
6365
|
+
* @param tokenName - Filter by token name (optional)
|
|
6366
|
+
* @param limit - Number of recent trades to return (default: 50, max: 500)
|
|
6367
|
+
* @returns Paginated list of recent trades
|
|
6368
|
+
* @throws {NetworkError} If API request fails
|
|
6369
|
+
* @since 9.2.0
|
|
6370
|
+
* @category Trades
|
|
6371
|
+
*
|
|
6372
|
+
* @example Get recent trades across all tokens
|
|
6373
|
+
* ```typescript
|
|
6374
|
+
* const { trades } = await sdk.getRecentTrades();
|
|
6375
|
+
* trades.forEach(t => console.log(`${t.tokenName} ${t.txnType}: ${t.inputAmount} → ${t.outputAmount}`));
|
|
6376
|
+
* ```
|
|
6377
|
+
*
|
|
6378
|
+
* @example Get recent trades for a specific token
|
|
6379
|
+
* ```typescript
|
|
6380
|
+
* const { trades } = await sdk.getRecentTrades('anime', 10);
|
|
6381
|
+
* console.log(`Last 10 anime trades`);
|
|
6382
|
+
* ```
|
|
6383
|
+
*/
|
|
6384
|
+
getRecentTrades(tokenName?: string, limit?: number): Promise<TradesQueryResult>;
|
|
6385
|
+
/**
|
|
6386
|
+
* Fetch the current launchpad fee via backend proxy (cached 1 hour).
|
|
6387
|
+
*
|
|
6388
|
+
* **Faster alternative to `GalaChainService.fetchLaunchTokenFee()`** — no chain call.
|
|
6389
|
+
*
|
|
6390
|
+
* @returns Promise resolving to the fee amount in GALA (number)
|
|
6391
|
+
*
|
|
6392
|
+
* @category Main SDK
|
|
6393
|
+
* @since 9.1.0
|
|
6394
|
+
*
|
|
6395
|
+
* @example
|
|
6396
|
+
* ```typescript
|
|
6397
|
+
* const fee = await sdk.fetchLaunchpadFee();
|
|
6398
|
+
* console.log(`Current launchpad fee: ${fee} GALA`);
|
|
6399
|
+
* ```
|
|
6400
|
+
*/
|
|
6401
|
+
fetchLaunchpadFee(): Promise<number>;
|
|
6402
|
+
/**
|
|
6403
|
+
* Fetch sale details (supply, status) for a token via backend proxy (cached 10 seconds).
|
|
6404
|
+
*
|
|
6405
|
+
* **Simpler alternative to `GalaChainService.fetchPoolDetails()`** — uses tokenName instead
|
|
6406
|
+
* of vaultAddress. The backend resolves the vaultAddress internally.
|
|
6407
|
+
*
|
|
6408
|
+
* @param tokenName Token name (e.g. 'anime')
|
|
6409
|
+
* @returns Promise resolving to sale details including supply, quantities, and status
|
|
6410
|
+
*
|
|
6411
|
+
* @category Main SDK
|
|
6412
|
+
* @since 9.1.0
|
|
6413
|
+
*
|
|
6414
|
+
* @example
|
|
6415
|
+
* ```typescript
|
|
6416
|
+
* const details = await sdk.fetchSaleDetails('anime');
|
|
6417
|
+
* console.log(`Supply: ${details.sellingTokenQuantity} / ${details.maxSupply}`);
|
|
6418
|
+
* console.log(`Status: ${details.saleStatus}`);
|
|
6419
|
+
* ```
|
|
6420
|
+
*/
|
|
6421
|
+
fetchSaleDetails(tokenName: string): Promise<SaleDetailsResult>;
|
|
6422
|
+
/**
|
|
6423
|
+
* Calculate a trade quote via the backend using local bonding curve math (no chain call).
|
|
6424
|
+
*
|
|
6425
|
+
* **Instant alternative to `calculateBuyAmountExternal()` / `calculateSellAmountExternal()`**.
|
|
6426
|
+
* The backend uses its local bonding curve math — no GalaChain network request.
|
|
6427
|
+
*
|
|
6428
|
+
* @param params Quote parameters
|
|
6429
|
+
* @param params.tokenName Token name (e.g. 'anime')
|
|
6430
|
+
* @param params.amount Amount as a decimal string
|
|
6431
|
+
* @param params.type 'MEME' (launchpad token) or 'NATIVE' (GALA)
|
|
6432
|
+
* @param params.method 'IN' (spend this amount) or 'OUT' (receive this amount)
|
|
6433
|
+
* @returns Promise resolving to amount calculation result with fees
|
|
6434
|
+
*
|
|
6435
|
+
* @category Main SDK
|
|
6436
|
+
* @since 9.1.0
|
|
6437
|
+
*
|
|
6438
|
+
* @example Buy: how many tokens for 100 GALA?
|
|
6439
|
+
* ```typescript
|
|
6440
|
+
* const quote = await sdk.getTradeQuote({
|
|
6441
|
+
* tokenName: 'anime',
|
|
6442
|
+
* amount: '100',
|
|
6443
|
+
* type: 'NATIVE',
|
|
6444
|
+
* method: 'IN',
|
|
6445
|
+
* });
|
|
6446
|
+
* console.log(`You will receive: ${quote.amount} tokens`);
|
|
6447
|
+
* console.log(`Fee: ${quote.reverseBondingCurveFee} GALA`);
|
|
6448
|
+
* ```
|
|
6449
|
+
*/
|
|
6450
|
+
getTradeQuote(params: TradeQuoteParams): Promise<AmountCalculationResult>;
|
|
6451
|
+
/**
|
|
6452
|
+
* Calculate a pre-mint token output for a given GALA amount (supply = 0 assumed).
|
|
6453
|
+
*
|
|
6454
|
+
* Used during the token creation flow. The backend assumes supply = 0 and computes
|
|
6455
|
+
* via local bonding curve math — no chain call required.
|
|
6456
|
+
*
|
|
6457
|
+
* @param amount GALA amount to spend (as a decimal string, e.g. '100')
|
|
6458
|
+
* @returns Promise resolving to amount calculation result with fees
|
|
6459
|
+
*
|
|
6460
|
+
* @category Main SDK
|
|
6461
|
+
* @since 9.1.0
|
|
6462
|
+
*
|
|
6463
|
+
* @example
|
|
6464
|
+
* ```typescript
|
|
6465
|
+
* const quote = await sdk.getPremintQuote('500');
|
|
6466
|
+
* console.log(`Initial purchase will yield: ${quote.amount} tokens`);
|
|
6467
|
+
* console.log(`Transaction fee: ${quote.transactionFee} GALA`);
|
|
6468
|
+
* ```
|
|
6469
|
+
*/
|
|
6470
|
+
getPremintQuote(amount: string): Promise<AmountCalculationResult>;
|
|
4877
6471
|
/**
|
|
4878
6472
|
* Connect to the stream WebSocket server.
|
|
4879
6473
|
*
|
|
@@ -4946,7 +6540,7 @@ export declare class LaunchpadSDK {
|
|
|
4946
6540
|
* // Events will now fire for 'mytoken'
|
|
4947
6541
|
* ```
|
|
4948
6542
|
*/
|
|
4949
|
-
subscribeToStream(tokenName: string): Promise<StreamSubscribedEvent>;
|
|
6543
|
+
subscribeToStream(tokenName: string, callbacks?: StreamEventCallbacks): Promise<StreamSubscribedEvent>;
|
|
4950
6544
|
/**
|
|
4951
6545
|
* Unsubscribe from a stream's events.
|
|
4952
6546
|
*
|
|
@@ -4959,7 +6553,7 @@ export declare class LaunchpadSDK {
|
|
|
4959
6553
|
* @since 5.1.0
|
|
4960
6554
|
* @category WebSocket
|
|
4961
6555
|
*/
|
|
4962
|
-
unsubscribeFromStream(tokenName: string):
|
|
6556
|
+
unsubscribeFromStream(tokenName: string): void;
|
|
4963
6557
|
/**
|
|
4964
6558
|
* Send a chat message via WebSocket.
|
|
4965
6559
|
*
|
|
@@ -4982,7 +6576,7 @@ export declare class LaunchpadSDK {
|
|
|
4982
6576
|
* await sdk.sendStreamChatViaWebSocket('mytoken', 'Hello!');
|
|
4983
6577
|
* ```
|
|
4984
6578
|
*/
|
|
4985
|
-
sendStreamChatViaWebSocket(tokenName: string, content: string):
|
|
6579
|
+
sendStreamChatViaWebSocket(tokenName: string, content: string): void;
|
|
4986
6580
|
/**
|
|
4987
6581
|
* Send an ephemeral emoji reaction to a live stream.
|
|
4988
6582
|
*
|
|
@@ -5008,10 +6602,10 @@ export declare class LaunchpadSDK {
|
|
|
5008
6602
|
*
|
|
5009
6603
|
* // Send a heart reaction at current stream position
|
|
5010
6604
|
* const currentTime = player.getCurrentTime(); // from MuxPlayer
|
|
5011
|
-
*
|
|
6605
|
+
* sdk.sendStreamReaction('mytoken', '❤️', currentTime);
|
|
5012
6606
|
* ```
|
|
5013
6607
|
*/
|
|
5014
|
-
sendStreamReaction(tokenName: string, emoji: string, streamTime?: number):
|
|
6608
|
+
sendStreamReaction(tokenName: string, emoji: string, streamTime?: number): void;
|
|
5015
6609
|
/**
|
|
5016
6610
|
* Send a typing indicator start event to a stream chat.
|
|
5017
6611
|
*
|
|
@@ -5252,6 +6846,16 @@ export declare class LaunchpadSDK {
|
|
|
5252
6846
|
* @category WebSocket
|
|
5253
6847
|
*/
|
|
5254
6848
|
onDownloadReady(callback: (event: DownloadReadyEvent) => void | Promise<void>): () => void;
|
|
6849
|
+
/**
|
|
6850
|
+
* Subscribe to recordings count updates
|
|
6851
|
+
*
|
|
6852
|
+
* @param callback - Handler for recordings count updated events
|
|
6853
|
+
* @returns Unsubscribe function
|
|
6854
|
+
*
|
|
6855
|
+
* @since 9.0.0
|
|
6856
|
+
* @category WebSocket
|
|
6857
|
+
*/
|
|
6858
|
+
onRecordingsCountUpdated(callback: (event: RecordingsCountUpdatedEvent) => void | Promise<void>): () => void;
|
|
5255
6859
|
/**
|
|
5256
6860
|
* Subscribe to user typing indicators
|
|
5257
6861
|
*
|
|
@@ -5382,6 +6986,28 @@ export declare class LaunchpadSDK {
|
|
|
5382
6986
|
* @category WebSocket
|
|
5383
6987
|
*/
|
|
5384
6988
|
onRoomLeft(callback: (event: RoomLeftEvent) => void | Promise<void>): () => void;
|
|
6989
|
+
/**
|
|
6990
|
+
* Subscribe to engagement stats update events
|
|
6991
|
+
*
|
|
6992
|
+
* Fires after the chat flush job processes messages for a stream, containing
|
|
6993
|
+
* updated chat message counts and comment counts for the token.
|
|
6994
|
+
* Broadcast to the token room every ~15 seconds when chat activity occurs.
|
|
6995
|
+
*
|
|
6996
|
+
* @param callback - Handler for engagement stats updated events
|
|
6997
|
+
* @returns Unsubscribe function
|
|
6998
|
+
*
|
|
6999
|
+
* @since 8.5.0
|
|
7000
|
+
* @category WebSocket
|
|
7001
|
+
*
|
|
7002
|
+
* @example
|
|
7003
|
+
* ```typescript
|
|
7004
|
+
* const unsubscribe = sdk.onEngagementStatsUpdated((event) => {
|
|
7005
|
+
* console.log(`${event.tokenName}: ${event.chat.messageCount} chat messages`);
|
|
7006
|
+
* console.log(`Comments: ${event.comments.count} from ${event.comments.uniqueCommenters} users`);
|
|
7007
|
+
* });
|
|
7008
|
+
* ```
|
|
7009
|
+
*/
|
|
7010
|
+
onEngagementStatsUpdated(callback: (event: EngagementStatsUpdatedEvent) => void): () => void;
|
|
5385
7011
|
/**
|
|
5386
7012
|
* Estimate bridge fees for a cross-chain transfer.
|
|
5387
7013
|
*
|
|
@@ -5550,14 +7176,7 @@ export declare class LaunchpadSDK {
|
|
|
5550
7176
|
* });
|
|
5551
7177
|
* ```
|
|
5552
7178
|
*/
|
|
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>;
|
|
7179
|
+
fetchTokenBalance(options: FetchTokenBalanceOptions): Promise<TokenBalanceResult | null>;
|
|
5561
7180
|
/**
|
|
5562
7181
|
* Fetch only locked balance for a token
|
|
5563
7182
|
*
|
|
@@ -5671,7 +7290,7 @@ export declare class LaunchpadSDK {
|
|
|
5671
7290
|
* });
|
|
5672
7291
|
* ```
|
|
5673
7292
|
*/
|
|
5674
|
-
calculateBuyAmount(options: CalculateBuyAmountOptions): Promise<
|
|
7293
|
+
calculateBuyAmount(options: CalculateBuyAmountOptions): Promise<AmountCalculationResult>;
|
|
5675
7294
|
/**
|
|
5676
7295
|
* Calculate sell amount for a token sale with automatic mode selection
|
|
5677
7296
|
*
|
|
@@ -5737,7 +7356,7 @@ export declare class LaunchpadSDK {
|
|
|
5737
7356
|
* // Instant local calculation - no network calls
|
|
5738
7357
|
* ```
|
|
5739
7358
|
*/
|
|
5740
|
-
calculateSellAmount(options: CalculateSellAmountOptions): Promise<
|
|
7359
|
+
calculateSellAmount(options: CalculateSellAmountOptions): Promise<AmountCalculationResult>;
|
|
5741
7360
|
/**
|
|
5742
7361
|
* Calculate buy amount locally using bonding curve formula
|
|
5743
7362
|
*
|
|
@@ -5778,7 +7397,7 @@ export declare class LaunchpadSDK {
|
|
|
5778
7397
|
* console.log('Tokens received:', result.amount);
|
|
5779
7398
|
* ```
|
|
5780
7399
|
*/
|
|
5781
|
-
calculateBuyAmountLocal(options: CalculateBuyAmountLocalOptions): Promise<
|
|
7400
|
+
calculateBuyAmountLocal(options: CalculateBuyAmountLocalOptions): Promise<AmountCalculationResult>;
|
|
5782
7401
|
/**
|
|
5783
7402
|
* Calculate sell amount locally using bonding curve formula
|
|
5784
7403
|
*
|
|
@@ -5820,7 +7439,7 @@ export declare class LaunchpadSDK {
|
|
|
5820
7439
|
* console.log('Tokens to sell:', result.amount);
|
|
5821
7440
|
* ```
|
|
5822
7441
|
*/
|
|
5823
|
-
calculateSellAmountLocal(options: CalculateSellAmountLocalOptions): Promise<
|
|
7442
|
+
calculateSellAmountLocal(options: CalculateSellAmountLocalOptions): Promise<AmountCalculationResult>;
|
|
5824
7443
|
/**
|
|
5825
7444
|
* Calculate buy amount using external GalaChain call
|
|
5826
7445
|
*
|
|
@@ -5828,6 +7447,10 @@ export declare class LaunchpadSDK {
|
|
|
5828
7447
|
* Always returns fresh calculations based on current blockchain state.
|
|
5829
7448
|
* Use when you want guaranteed accuracy but don't mind network latency.
|
|
5830
7449
|
*
|
|
7450
|
+
* @deprecated Use `getTradeQuote()` instead — it uses the backend-proxy for instant
|
|
7451
|
+
* calculations without a direct GalaChain call. The defi-backend has removed direct
|
|
7452
|
+
* chain quote endpoints in favour of the backend-proxy approach.
|
|
7453
|
+
*
|
|
5831
7454
|
* @param options Buy amount calculation options
|
|
5832
7455
|
* @returns Promise<AmountCalculationResult> Calculated amount and fees from GalaChain
|
|
5833
7456
|
* @throws NetworkError if API request fails
|
|
@@ -5838,7 +7461,7 @@ export declare class LaunchpadSDK {
|
|
|
5838
7461
|
tokenName: string;
|
|
5839
7462
|
amount: string;
|
|
5840
7463
|
type: 'native' | 'exact';
|
|
5841
|
-
}): Promise<
|
|
7464
|
+
}): Promise<AmountCalculationResult>;
|
|
5842
7465
|
/**
|
|
5843
7466
|
* Calculate sell amount using external GalaChain call
|
|
5844
7467
|
*
|
|
@@ -5846,6 +7469,10 @@ export declare class LaunchpadSDK {
|
|
|
5846
7469
|
* Always returns fresh calculations based on current blockchain state.
|
|
5847
7470
|
* Use when you want guaranteed accuracy but don't mind network latency.
|
|
5848
7471
|
*
|
|
7472
|
+
* @deprecated Use `getTradeQuote()` instead — it uses the backend-proxy for instant
|
|
7473
|
+
* calculations without a direct GalaChain call. The defi-backend has removed direct
|
|
7474
|
+
* chain quote endpoints in favour of the backend-proxy approach.
|
|
7475
|
+
*
|
|
5849
7476
|
* @param options Sell amount calculation options
|
|
5850
7477
|
* @returns Promise<AmountCalculationResult> Calculated amount and fees from GalaChain
|
|
5851
7478
|
* @throws NetworkError if API request fails
|
|
@@ -5856,7 +7483,7 @@ export declare class LaunchpadSDK {
|
|
|
5856
7483
|
tokenName: string;
|
|
5857
7484
|
amount: string;
|
|
5858
7485
|
type: 'native' | 'exact';
|
|
5859
|
-
}): Promise<
|
|
7486
|
+
}): Promise<AmountCalculationResult>;
|
|
5860
7487
|
/**
|
|
5861
7488
|
* Calculate buy amount needed to graduate a token pool
|
|
5862
7489
|
*
|
|
@@ -5889,7 +7516,7 @@ export declare class LaunchpadSDK {
|
|
|
5889
7516
|
* });
|
|
5890
7517
|
* ```
|
|
5891
7518
|
*/
|
|
5892
|
-
calculateBuyAmountForGraduation(tokenNameOrOptions: string | CalculateBuyAmountForGraduationOptions): Promise<
|
|
7519
|
+
calculateBuyAmountForGraduation(tokenNameOrOptions: string | CalculateBuyAmountForGraduationOptions): Promise<GraduationCalculationResult>;
|
|
5893
7520
|
/**
|
|
5894
7521
|
* Graduate a token pool by buying all remaining tokens
|
|
5895
7522
|
*
|
|
@@ -5968,13 +7595,28 @@ export declare class LaunchpadSDK {
|
|
|
5968
7595
|
* });
|
|
5969
7596
|
* ```
|
|
5970
7597
|
*/
|
|
5971
|
-
calculateInitialBuyAmount(nativeTokenQuantity: string): Promise<
|
|
7598
|
+
calculateInitialBuyAmount(nativeTokenQuantity: string): Promise<AmountCalculationResult>;
|
|
5972
7599
|
/**
|
|
5973
7600
|
* Buy tokens with blockchain confirmation and WebSocket monitoring
|
|
5974
7601
|
*
|
|
5975
7602
|
* Executes a buy order on the bonding curve and waits for GalaChain confirmation via WebSocket,
|
|
5976
7603
|
* returning complete trade details including actual amounts traded, fees paid, and transaction metadata.
|
|
5977
7604
|
*
|
|
7605
|
+
* ## Token Format
|
|
7606
|
+
*
|
|
7607
|
+
* **Use simple `tokenName`** (e.g., `"anime"`), NOT full TokenClassKey format.
|
|
7608
|
+
*
|
|
7609
|
+
* This method is for **bonding curve tokens only** (pre-graduation). For DEX trading
|
|
7610
|
+
* of graduated tokens, use {@link executeSwap} with full TokenClassKey format.
|
|
7611
|
+
*
|
|
7612
|
+
* ```typescript
|
|
7613
|
+
* // ✅ CORRECT - Simple token name
|
|
7614
|
+
* await sdk.buy({ tokenName: 'anime', amount: '100', type: 'native', ... });
|
|
7615
|
+
*
|
|
7616
|
+
* // ❌ WRONG - Do NOT use TokenClassKey format
|
|
7617
|
+
* await sdk.buy({ tokenName: 'Token|Unit|ANIME|client:gala-launchpad', ... }); // Error!
|
|
7618
|
+
* ```
|
|
7619
|
+
*
|
|
5978
7620
|
* **Slippage Protection:**
|
|
5979
7621
|
* - Uses `expectedAmount` to protect against price changes during execution
|
|
5980
7622
|
* - `slippageToleranceFactor` allows variance (e.g., 0.01 = 1% tolerance)
|
|
@@ -6078,8 +7720,23 @@ export declare class LaunchpadSDK {
|
|
|
6078
7720
|
/**
|
|
6079
7721
|
* Sell tokens with confirmation
|
|
6080
7722
|
*
|
|
6081
|
-
* Executes a sell order and waits for blockchain confirmation,
|
|
6082
|
-
* complete trade details including actual amounts traded and fees paid.
|
|
7723
|
+
* Executes a sell order on the bonding curve and waits for blockchain confirmation,
|
|
7724
|
+
* returning complete trade details including actual amounts traded and fees paid.
|
|
7725
|
+
*
|
|
7726
|
+
* ## Token Format
|
|
7727
|
+
*
|
|
7728
|
+
* **Use simple `tokenName`** (e.g., `"anime"`), NOT full TokenClassKey format.
|
|
7729
|
+
*
|
|
7730
|
+
* This method is for **bonding curve tokens only** (pre-graduation). For DEX trading
|
|
7731
|
+
* of graduated tokens, use {@link executeSwap} with full TokenClassKey format.
|
|
7732
|
+
*
|
|
7733
|
+
* ```typescript
|
|
7734
|
+
* // ✅ CORRECT - Simple token name
|
|
7735
|
+
* await sdk.sell({ tokenName: 'anime', amount: '100', type: 'tokens', ... });
|
|
7736
|
+
*
|
|
7737
|
+
* // ❌ WRONG - Do NOT use TokenClassKey format
|
|
7738
|
+
* await sdk.sell({ tokenName: 'Token|Unit|ANIME|...' }); // Error!
|
|
7739
|
+
* ```
|
|
6083
7740
|
*
|
|
6084
7741
|
* @param options Sell options with required tokenName and expectedAmount
|
|
6085
7742
|
* @returns Promise<TradeResult> Complete trade result with amounts and fees
|
|
@@ -6122,7 +7779,7 @@ export declare class LaunchpadSDK {
|
|
|
6122
7779
|
* console.log('Method:', result.data.method); // "SellExactToken", "BuyWithNative", etc.
|
|
6123
7780
|
* ```
|
|
6124
7781
|
*/
|
|
6125
|
-
getBundlerTransactionResult(transactionId: string): Promise<
|
|
7782
|
+
getBundlerTransactionResult(transactionId: string): Promise<ApiResponse>;
|
|
6126
7783
|
/**
|
|
6127
7784
|
* Launch a new token with bonding curve trading
|
|
6128
7785
|
*
|
|
@@ -6276,32 +7933,6 @@ export declare class LaunchpadSDK {
|
|
|
6276
7933
|
* ```
|
|
6277
7934
|
*/
|
|
6278
7935
|
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
7936
|
/**
|
|
6306
7937
|
* Checks if a pool exists (v6.x.0+)
|
|
6307
7938
|
*
|
|
@@ -6378,6 +8009,117 @@ export declare class LaunchpadSDK {
|
|
|
6378
8009
|
* ```
|
|
6379
8010
|
*/
|
|
6380
8011
|
isTokenSymbolAvailable(symbol: string): Promise<boolean>;
|
|
8012
|
+
/**
|
|
8013
|
+
* Fetch full token pool data by token name
|
|
8014
|
+
* Returns complete PoolData including streaming fields
|
|
8015
|
+
*
|
|
8016
|
+
* @param tokenName - The token name to fetch (e.g., 'anime')
|
|
8017
|
+
* @returns The full PoolData object with all fields including streaming data
|
|
8018
|
+
* @throws Error if token not found or request fails
|
|
8019
|
+
*
|
|
8020
|
+
* @category Token Lookup
|
|
8021
|
+
* @since 6.0.0
|
|
8022
|
+
*
|
|
8023
|
+
* @example
|
|
8024
|
+
* ```typescript
|
|
8025
|
+
* const pool = await sdk.fetchToken('anime');
|
|
8026
|
+
* console.log(pool.tokenName, pool.playbackId, pool.muxStreamStatus);
|
|
8027
|
+
* ```
|
|
8028
|
+
*/
|
|
8029
|
+
fetchToken(tokenName: string): Promise<PoolData>;
|
|
8030
|
+
/**
|
|
8031
|
+
* Validate if token name and/or symbol are available
|
|
8032
|
+
* Useful for token creation forms to check availability before submission
|
|
8033
|
+
*
|
|
8034
|
+
* @param options - Object containing optional tokenName and/or symbol to validate
|
|
8035
|
+
* @returns Validation result with availability flags and errors
|
|
8036
|
+
*
|
|
8037
|
+
* @category Token Validation
|
|
8038
|
+
* @since 6.0.0
|
|
8039
|
+
*
|
|
8040
|
+
* @example
|
|
8041
|
+
* ```typescript
|
|
8042
|
+
* const result = await sdk.validateToken({ tokenName: 'mytoken', symbol: 'MYTKN' });
|
|
8043
|
+
* if (result.nameAvailable && result.symbolAvailable) {
|
|
8044
|
+
* console.log('Names are available!');
|
|
8045
|
+
* } else {
|
|
8046
|
+
* console.log('Errors:', result.errors);
|
|
8047
|
+
* }
|
|
8048
|
+
* ```
|
|
8049
|
+
*/
|
|
8050
|
+
validateToken(options: {
|
|
8051
|
+
tokenName?: string;
|
|
8052
|
+
symbol?: string;
|
|
8053
|
+
}): Promise<ValidateTokenResponse>;
|
|
8054
|
+
/**
|
|
8055
|
+
* Fetch engagement statistics for a token (v7.1.0+)
|
|
8056
|
+
*
|
|
8057
|
+
* Returns metrics for chat activity, comments, and overall engagement on a token.
|
|
8058
|
+
* Useful for token detail pages and engagement analytics.
|
|
8059
|
+
*
|
|
8060
|
+
* @param tokenName Token name to fetch stats for
|
|
8061
|
+
* @returns Engagement statistics result
|
|
8062
|
+
* @throws ValidationError if tokenName is invalid
|
|
8063
|
+
*
|
|
8064
|
+
* @category Token Lookup
|
|
8065
|
+
* @since 7.1.0
|
|
8066
|
+
*
|
|
8067
|
+
* @example
|
|
8068
|
+
* ```typescript
|
|
8069
|
+
* const stats = await sdk.fetchTokenStats('anime');
|
|
8070
|
+
* console.log(`Chat messages: ${stats.data.chatMessageCount}`);
|
|
8071
|
+
* console.log(`Comments: ${stats.data.commentCount}`);
|
|
8072
|
+
* ```
|
|
8073
|
+
*/
|
|
8074
|
+
fetchTokenStats(tokenName: string): Promise<FetchTokenStatsResult>;
|
|
8075
|
+
/**
|
|
8076
|
+
* Fetch all token balances for a user (v7.1.0+)
|
|
8077
|
+
*
|
|
8078
|
+
* Returns a paginated list of all tokens held by the user with balance information,
|
|
8079
|
+
* graduation status, and optional USD/GALA valuations.
|
|
8080
|
+
*
|
|
8081
|
+
* @param options Fetch options (address required, pageSize optional)
|
|
8082
|
+
* @returns User balance results
|
|
8083
|
+
* @throws ValidationError if address format is invalid
|
|
8084
|
+
*
|
|
8085
|
+
* @category User Account
|
|
8086
|
+
* @since 7.1.0
|
|
8087
|
+
*
|
|
8088
|
+
* @example
|
|
8089
|
+
* ```typescript
|
|
8090
|
+
* const result = await sdk.fetchUserBalances({
|
|
8091
|
+
* address: 'eth|...',
|
|
8092
|
+
* pageSize: 20
|
|
8093
|
+
* });
|
|
8094
|
+
* console.log(`User holds ${result.balances.length} tokens`);
|
|
8095
|
+
* ```
|
|
8096
|
+
*/
|
|
8097
|
+
fetchUserBalances(options: FetchUserBalancesOptions): Promise<FetchUserBalancesResult>;
|
|
8098
|
+
/**
|
|
8099
|
+
* Fetch comprehensive user report (Overseer only) (v7.1.0+)
|
|
8100
|
+
*
|
|
8101
|
+
* Returns detailed profile, activity, and reputation information for a user.
|
|
8102
|
+
* This endpoint is restricted to overseers and requires JWT authentication.
|
|
8103
|
+
*
|
|
8104
|
+
* @param options Fetch options (address required)
|
|
8105
|
+
* @returns User report result
|
|
8106
|
+
* @throws ValidationError if address format is invalid
|
|
8107
|
+
* @throws ConfigurationError if JWT is not configured
|
|
8108
|
+
*
|
|
8109
|
+
* @category User Account
|
|
8110
|
+
* @since 7.1.0
|
|
8111
|
+
*
|
|
8112
|
+
* @example
|
|
8113
|
+
* ```typescript
|
|
8114
|
+
* const result = await sdk.fetchUserReport({
|
|
8115
|
+
* address: 'eth|...'
|
|
8116
|
+
* });
|
|
8117
|
+
* const { profile, activity, reputation } = result.report;
|
|
8118
|
+
* console.log(`User: ${profile.fullName}`);
|
|
8119
|
+
* console.log(`Tokens created: ${activity.tokensCreated}`);
|
|
8120
|
+
* ```
|
|
8121
|
+
*/
|
|
8122
|
+
fetchUserReport(options: FetchUserReportOptions): Promise<FetchUserReportResult>;
|
|
6381
8123
|
/**
|
|
6382
8124
|
* Fetch user profile information by wallet address
|
|
6383
8125
|
*
|
|
@@ -6459,8 +8201,7 @@ export declare class LaunchpadSDK {
|
|
|
6459
8201
|
* @category Main SDK
|
|
6460
8202
|
* @param options - Optional fetch parameters
|
|
6461
8203
|
* @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)
|
|
8204
|
+
* @param options.pageSize - Results per page (default: 10, max: 100)
|
|
6464
8205
|
* @param options.sortBy - Sort field (default: 'joined')
|
|
6465
8206
|
* @param options.sortDir - Sort direction: 'asc' or 'desc' (default: 'desc')
|
|
6466
8207
|
* @returns Promise<ReferralsResult> Paginated referral data
|
|
@@ -6479,7 +8220,7 @@ export declare class LaunchpadSDK {
|
|
|
6479
8220
|
*
|
|
6480
8221
|
* @example Fetch with pagination
|
|
6481
8222
|
* ```typescript
|
|
6482
|
-
* const page2 = await sdk.fetchReferrals({
|
|
8223
|
+
* const page2 = await sdk.fetchReferrals({ pageSize: 20 });
|
|
6483
8224
|
* if (page2.hasMore) {
|
|
6484
8225
|
* console.log('More pages available');
|
|
6485
8226
|
* }
|
|
@@ -6569,48 +8310,6 @@ export declare class LaunchpadSDK {
|
|
|
6569
8310
|
* ```
|
|
6570
8311
|
*/
|
|
6571
8312
|
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
8313
|
/**
|
|
6615
8314
|
* Update user profile information for a wallet address
|
|
6616
8315
|
*
|
|
@@ -6720,7 +8419,7 @@ export declare class LaunchpadSDK {
|
|
|
6720
8419
|
*
|
|
6721
8420
|
* @param options - Token list options with filtering support
|
|
6722
8421
|
* @param options.page - Page number (1-based), defaults to 1
|
|
6723
|
-
* @param options.
|
|
8422
|
+
* @param options.pageSize - Items per page, defaults to 10
|
|
6724
8423
|
* @param options.tokenName - Exact match filter (case-sensitive, strict equality). Backend filtering reduces payload by ~99% for single-token lookups.
|
|
6725
8424
|
* @param options.search - Fuzzy search filter (case-insensitive, partial matching). Use for discovery and exploration.
|
|
6726
8425
|
* @returns Promise<UserTokenListResult> User's token holdings with pagination metadata
|
|
@@ -6728,13 +8427,13 @@ export declare class LaunchpadSDK {
|
|
|
6728
8427
|
* @example
|
|
6729
8428
|
* ```typescript
|
|
6730
8429
|
* // Fetch all tokens with pagination
|
|
6731
|
-
* const allTokens = await sdk.fetchTokensHeld({
|
|
8430
|
+
* const allTokens = await sdk.fetchTokensHeld({ pageSize: 20 });
|
|
6732
8431
|
*
|
|
6733
8432
|
* // Exact match for a specific token (most efficient)
|
|
6734
|
-
* const anime = await sdk.fetchTokensHeld({ tokenName: 'anime',
|
|
8433
|
+
* const anime = await sdk.fetchTokensHeld({ tokenName: 'anime', pageSize: 1 });
|
|
6735
8434
|
*
|
|
6736
8435
|
* // Fuzzy search for exploration
|
|
6737
|
-
* const dragons = await sdk.fetchTokensHeld({ search: 'dragon',
|
|
8436
|
+
* const dragons = await sdk.fetchTokensHeld({ search: 'dragon', pageSize: 10 });
|
|
6738
8437
|
* ```
|
|
6739
8438
|
*
|
|
6740
8439
|
* @remarks
|
|
@@ -6743,7 +8442,7 @@ export declare class LaunchpadSDK {
|
|
|
6743
8442
|
* - Both parameters use backend filtering for optimal performance
|
|
6744
8443
|
* - Passing both parameters together is discouraged (tokenName takes precedence)
|
|
6745
8444
|
*/
|
|
6746
|
-
fetchTokensHeld(options?: FetchTokensHeldOptions): Promise<
|
|
8445
|
+
fetchTokensHeld(options?: FetchTokensHeldOptions): Promise<UserTokenListResult>;
|
|
6747
8446
|
/**
|
|
6748
8447
|
* Fetch tokens created by the current user with optional filtering
|
|
6749
8448
|
*
|
|
@@ -6751,8 +8450,7 @@ export declare class LaunchpadSDK {
|
|
|
6751
8450
|
* Supports both exact matching (tokenName) and fuzzy search (search) for efficient filtering.
|
|
6752
8451
|
*
|
|
6753
8452
|
* @param options - Token list options with filtering support
|
|
6754
|
-
* @param options.
|
|
6755
|
-
* @param options.limit - Items per page, defaults to 10
|
|
8453
|
+
* @param options.pageSize - Items per page, defaults to 10
|
|
6756
8454
|
* @param options.tokenName - Exact match filter (case-sensitive, strict equality). Backend filtering reduces payload by ~99% for single-token lookups.
|
|
6757
8455
|
* @param options.search - Fuzzy search filter (case-insensitive, partial matching). Use for discovery and exploration.
|
|
6758
8456
|
* @returns Promise<UserTokenListResult> User's created tokens with pagination metadata
|
|
@@ -6760,13 +8458,13 @@ export declare class LaunchpadSDK {
|
|
|
6760
8458
|
* @example
|
|
6761
8459
|
* ```typescript
|
|
6762
8460
|
* // Fetch all created tokens with pagination
|
|
6763
|
-
* const myTokens = await sdk.fetchTokensCreated({
|
|
8461
|
+
* const myTokens = await sdk.fetchTokensCreated({ pageSize: 20 });
|
|
6764
8462
|
*
|
|
6765
8463
|
* // Exact match for a specific created token (most efficient)
|
|
6766
|
-
* const myToken = await sdk.fetchTokensCreated({ tokenName: 'mytoken',
|
|
8464
|
+
* const myToken = await sdk.fetchTokensCreated({ tokenName: 'mytoken', pageSize: 1 });
|
|
6767
8465
|
*
|
|
6768
8466
|
* // Fuzzy search through created tokens
|
|
6769
|
-
* const testTokens = await sdk.fetchTokensCreated({ search: 'test',
|
|
8467
|
+
* const testTokens = await sdk.fetchTokensCreated({ search: 'test', pageSize: 10 });
|
|
6770
8468
|
* ```
|
|
6771
8469
|
*
|
|
6772
8470
|
* @remarks
|
|
@@ -6775,7 +8473,7 @@ export declare class LaunchpadSDK {
|
|
|
6775
8473
|
* - Both parameters use backend filtering for optimal performance
|
|
6776
8474
|
* - Passing both parameters together is discouraged (tokenName takes precedence)
|
|
6777
8475
|
*/
|
|
6778
|
-
fetchTokensCreated(options?: FetchTokensCreatedOptions): Promise<
|
|
8476
|
+
fetchTokensCreated(options?: FetchTokensCreatedOptions): Promise<UserTokenListResult>;
|
|
6779
8477
|
/**
|
|
6780
8478
|
* Get all tokens the authenticated user can manage.
|
|
6781
8479
|
*
|
|
@@ -6790,7 +8488,7 @@ export declare class LaunchpadSDK {
|
|
|
6790
8488
|
*
|
|
6791
8489
|
* **Requires JWT authentication** - call sdk.login() before using this method.
|
|
6792
8490
|
*
|
|
6793
|
-
* @param options Optional pagination options (
|
|
8491
|
+
* @param options Optional pagination options (pageSize)
|
|
6794
8492
|
* @returns Promise resolving to managed tokens result
|
|
6795
8493
|
* @throws ConfigurationError if JWT auth is not configured
|
|
6796
8494
|
* @throws ValidationError if pagination parameters are invalid
|
|
@@ -6846,8 +8544,7 @@ export declare class LaunchpadSDK {
|
|
|
6846
8544
|
* },
|
|
6847
8545
|
* from: new Date('2024-01-01'),
|
|
6848
8546
|
* to: new Date('2024-01-31'),
|
|
6849
|
-
*
|
|
6850
|
-
* limit: 20
|
|
8547
|
+
* pageSize: 20
|
|
6851
8548
|
* });
|
|
6852
8549
|
*
|
|
6853
8550
|
* console.log(`Found ${history.snapshots.length} price snapshots`);
|
|
@@ -6864,7 +8561,7 @@ export declare class LaunchpadSDK {
|
|
|
6864
8561
|
*
|
|
6865
8562
|
* Only available for DEX tokens with price snapshot data on the DEX Backend API.
|
|
6866
8563
|
*
|
|
6867
|
-
* @param options Fetch options (
|
|
8564
|
+
* @param options Fetch options (pagination is handled automatically)
|
|
6868
8565
|
* @returns Promise<PriceHistoryResult> containing all price snapshots in combined result
|
|
6869
8566
|
*
|
|
6870
8567
|
* @throws NetworkError if API query fails
|
|
@@ -6972,6 +8669,40 @@ export declare class LaunchpadSDK {
|
|
|
6972
8669
|
* @throws {TransferError} When token name cannot be resolved
|
|
6973
8670
|
*/
|
|
6974
8671
|
resolveTokenClassKey(tokenName: string): Promise<TokenClassKey>;
|
|
8672
|
+
/**
|
|
8673
|
+
* Convert token name to TokenClassKey (explicit alias for resolveTokenClassKey)
|
|
8674
|
+
*
|
|
8675
|
+
* ## CRITICAL: TokenClassKey is NOT Derivable from TokenName!
|
|
8676
|
+
*
|
|
8677
|
+
* This is an explicit alias emphasizing that resolution is **REQUIRED** - never guess.
|
|
8678
|
+
*
|
|
8679
|
+
* The relationship between token name and TokenClassKey is **NOT PREDICTABLE**:
|
|
8680
|
+
* - `tokenName: "anime"` does NOT mean `type: "ANIME"` (could be "ANM", "ANIM", etc.)
|
|
8681
|
+
* - The `additionalKey` contains the creator's ETH address - **impossible to guess**
|
|
8682
|
+
*
|
|
8683
|
+
* **ALWAYS use this method. Never construct TokenClassKey manually from a token name.**
|
|
8684
|
+
*
|
|
8685
|
+
* @param tokenName Token name to convert (e.g., 'anime', 'dragon')
|
|
8686
|
+
* @returns Promise<TokenClassKey> The resolved token class key (cached on subsequent calls)
|
|
8687
|
+
*
|
|
8688
|
+
* @example
|
|
8689
|
+
* ```typescript
|
|
8690
|
+
* // ✅ CORRECT - Always use this method
|
|
8691
|
+
* const tokenClassKey = await sdk.convertTokenNameToTokenClassKey('anime');
|
|
8692
|
+
* // Returns: { collection: "Token", category: "Unit", type: "ANM", additionalKey: "eth:0x..." }
|
|
8693
|
+
*
|
|
8694
|
+
* // ❌ WRONG - Never do this!
|
|
8695
|
+
* const tokenClassKey = {
|
|
8696
|
+
* collection: "Token",
|
|
8697
|
+
* category: "Unit",
|
|
8698
|
+
* type: "ANIME", // WRONG! Might be "ANM" or anything
|
|
8699
|
+
* additionalKey: "???" // IMPOSSIBLE to guess!
|
|
8700
|
+
* };
|
|
8701
|
+
* ```
|
|
8702
|
+
*
|
|
8703
|
+
* @throws {TransferError} When token name cannot be resolved
|
|
8704
|
+
*/
|
|
8705
|
+
convertTokenNameToTokenClassKey(tokenName: string): Promise<TokenClassKey>;
|
|
6975
8706
|
/**
|
|
6976
8707
|
* Lock tokens on GalaChain (batch operation)
|
|
6977
8708
|
*
|
|
@@ -7231,9 +8962,20 @@ export declare class LaunchpadSDK {
|
|
|
7231
8962
|
* Queries GalaSwap DEX for a quote when swapping from one token to another,
|
|
7232
8963
|
* specifying the exact amount you want to spend.
|
|
7233
8964
|
*
|
|
8965
|
+
* ## Token Format (IMPORTANT)
|
|
8966
|
+
*
|
|
8967
|
+
* **Use full `tokenClassKey` format** (e.g., `"GALA|Unit|none|none"`), NOT simple names.
|
|
8968
|
+
*
|
|
8969
|
+
* ```typescript
|
|
8970
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
8971
|
+
* await sdk.getSwapQuoteExactInput('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '100');
|
|
8972
|
+
*
|
|
8973
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
8974
|
+
* await sdk.getSwapQuoteExactInput('GALA', 'GUSDC', '100'); // Error!
|
|
8975
|
+
* ```
|
|
8976
|
+
*
|
|
7234
8977
|
* Current Implementation (v3.32.0):
|
|
7235
8978
|
* - Delegates to GSwapService which uses GSwap SDK quoting engine
|
|
7236
|
-
* - Handles automatic token format conversion (symbols → TokenClassKey)
|
|
7237
8979
|
* - Returns quote with estimated output, fee tier, and price impact
|
|
7238
8980
|
* - Automatically selects optimal liquidity pool for best pricing
|
|
7239
8981
|
*
|
|
@@ -7253,17 +8995,28 @@ export declare class LaunchpadSDK {
|
|
|
7253
8995
|
* console.log(`Price impact: ${quote.priceImpact}%`);
|
|
7254
8996
|
* ```
|
|
7255
8997
|
*/
|
|
7256
|
-
getSwapQuoteExactInput(fromToken: string, toToken: string, amount: string): Promise<
|
|
8998
|
+
getSwapQuoteExactInput(fromToken: string, toToken: string, amount: string): Promise<SwapQuoteResult>;
|
|
7257
8999
|
/**
|
|
7258
9000
|
* Get a swap quote for exact output amount
|
|
7259
9001
|
*
|
|
7260
9002
|
* Queries GalaSwap DEX for a quote when swapping from one token to another,
|
|
7261
9003
|
* specifying the exact amount you want to receive.
|
|
7262
9004
|
*
|
|
9005
|
+
* ## Token Format (IMPORTANT)
|
|
9006
|
+
*
|
|
9007
|
+
* **Use full `tokenClassKey` format** (e.g., `"GALA|Unit|none|none"`), NOT simple names.
|
|
9008
|
+
*
|
|
9009
|
+
* ```typescript
|
|
9010
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9011
|
+
* await sdk.getSwapQuoteExactOutput('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '50');
|
|
9012
|
+
*
|
|
9013
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9014
|
+
* await sdk.getSwapQuoteExactOutput('GALA', 'GUSDC', '50'); // Error!
|
|
9015
|
+
* ```
|
|
9016
|
+
*
|
|
7263
9017
|
* Current Implementation (v3.32.0):
|
|
7264
9018
|
* - Delegates to GSwapService which uses GSwap SDK quoting engine
|
|
7265
9019
|
* - Calculates required input amount for exact output target
|
|
7266
|
-
* - Handles automatic token format conversion (symbols → TokenClassKey)
|
|
7267
9020
|
* - Returns quote with required input, fee tier, and price impact
|
|
7268
9021
|
* - Ensures amount constraints are satisfied with slippage buffer
|
|
7269
9022
|
*
|
|
@@ -7283,13 +9036,36 @@ export declare class LaunchpadSDK {
|
|
|
7283
9036
|
* console.log(`Price impact: ${quote.priceImpact}%`);
|
|
7284
9037
|
* ```
|
|
7285
9038
|
*/
|
|
7286
|
-
getSwapQuoteExactOutput(fromToken: string, toToken: string, amount: string): Promise<
|
|
9039
|
+
getSwapQuoteExactOutput(fromToken: string, toToken: string, amount: string): Promise<SwapQuoteResult>;
|
|
7287
9040
|
/**
|
|
7288
9041
|
* Execute a token swap on GalaSwap DEX
|
|
7289
9042
|
*
|
|
7290
9043
|
* Executes a swap transaction with slippage protection. Requires a signer wallet.
|
|
7291
9044
|
* Use quote methods first to get expected output amounts.
|
|
7292
9045
|
*
|
|
9046
|
+
* ## Token Format (IMPORTANT)
|
|
9047
|
+
*
|
|
9048
|
+
* **Use full `tokenClassKey` format** (e.g., `"GALA|Unit|none|none"`), NOT simple names.
|
|
9049
|
+
*
|
|
9050
|
+
* This method is for **DEX trading only** (graduated tokens, GALA, GUSDC, etc.).
|
|
9051
|
+
* For bonding curve tokens (pre-graduation), use {@link buy} or {@link sell} with simple tokenName.
|
|
9052
|
+
*
|
|
9053
|
+
* ```typescript
|
|
9054
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9055
|
+
* await sdk.executeSwap('GALA|Unit|none|none', 'GUSDC|Unit|none|eth:0xa0b...', '100', output, fee);
|
|
9056
|
+
*
|
|
9057
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9058
|
+
* await sdk.executeSwap('GALA', 'GUSDC', '100', output, fee); // Error!
|
|
9059
|
+
*
|
|
9060
|
+
* // ❌ WRONG - Simple token names don't work here
|
|
9061
|
+
* await sdk.executeSwap('anime', 'GALA|Unit|none|none', ...); // Error!
|
|
9062
|
+
* ```
|
|
9063
|
+
*
|
|
9064
|
+
* **Common TokenClassKeys:**
|
|
9065
|
+
* - GALA: `'GALA|Unit|none|none'`
|
|
9066
|
+
* - GUSDC: `'GUSDC|Unit|none|eth:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'`
|
|
9067
|
+
* - Graduated token: Get from pool's `tokenClassKey` field
|
|
9068
|
+
*
|
|
7293
9069
|
* @category DEX Trading
|
|
7294
9070
|
* @param fromToken Source token in pipe-delimited format (e.g., "GALA|Unit|none|none")
|
|
7295
9071
|
* @param toToken Destination token in pipe-delimited format (e.g., "GUSDC|Unit|none|none")
|
|
@@ -7320,7 +9096,7 @@ export declare class LaunchpadSDK {
|
|
|
7320
9096
|
* console.log(`Transaction: ${result.transactionId}`);
|
|
7321
9097
|
* ```
|
|
7322
9098
|
*/
|
|
7323
|
-
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<
|
|
9099
|
+
executeSwap(fromToken: string, toToken: string, inputAmount: string, estimatedOutput: string, feeTier: number, slippageTolerance?: number): Promise<ExecuteSwapResult>;
|
|
7324
9100
|
/**
|
|
7325
9101
|
* Get user's token assets/balances from GalaSwap
|
|
7326
9102
|
*
|
|
@@ -7339,7 +9115,7 @@ export declare class LaunchpadSDK {
|
|
|
7339
9115
|
* });
|
|
7340
9116
|
* ```
|
|
7341
9117
|
*/
|
|
7342
|
-
getSwapUserAssets(walletAddress: string): Promise<
|
|
9118
|
+
getSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
7343
9119
|
/**
|
|
7344
9120
|
* Get all user assets across all pages (auto-paginated)
|
|
7345
9121
|
*
|
|
@@ -7352,7 +9128,7 @@ export declare class LaunchpadSDK {
|
|
|
7352
9128
|
* @since 3.23.0
|
|
7353
9129
|
* @since 4.1.0 Now returns rich metadata (image, name, description, verified)
|
|
7354
9130
|
*/
|
|
7355
|
-
getAllSwapUserAssets(walletAddress: string): Promise<
|
|
9131
|
+
getAllSwapUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
7356
9132
|
/**
|
|
7357
9133
|
* Fetch available DEX tokens (token discovery)
|
|
7358
9134
|
*
|
|
@@ -7360,13 +9136,13 @@ export declare class LaunchpadSDK {
|
|
|
7360
9136
|
* Use for token discovery, listings, and market analysis.
|
|
7361
9137
|
*
|
|
7362
9138
|
* @category DEX Trading
|
|
7363
|
-
* @param options Fetch options (search,
|
|
9139
|
+
* @param options Fetch options (search, limit, page)
|
|
7364
9140
|
* @returns Promise<AvailableDexTokensResult> Paginated result with token metadata
|
|
7365
9141
|
* @since 4.1.0
|
|
7366
9142
|
*
|
|
7367
9143
|
* @example Fetch first page of available tokens
|
|
7368
9144
|
* ```typescript
|
|
7369
|
-
* const result = await sdk.fetchAvailableDexTokens({ limit: 20 });
|
|
9145
|
+
* const result = await sdk.fetchAvailableDexTokens({ limit: 20, page: 1 });
|
|
7370
9146
|
* console.log(`Found ${result.count} tokens on DEX`);
|
|
7371
9147
|
* result.tokens.forEach(token => {
|
|
7372
9148
|
* console.log(`${token.symbol}: ${token.name} (${token.image})`);
|
|
@@ -7375,7 +9151,7 @@ export declare class LaunchpadSDK {
|
|
|
7375
9151
|
*
|
|
7376
9152
|
* @example Search for tokens
|
|
7377
9153
|
* ```typescript
|
|
7378
|
-
* const result = await sdk.fetchAvailableDexTokens({ search: 'GALA', limit: 10 });
|
|
9154
|
+
* const result = await sdk.fetchAvailableDexTokens({ search: 'GALA', limit: 10, page: 1 });
|
|
7379
9155
|
* console.log(`Found ${result.count} tokens matching 'GALA'`);
|
|
7380
9156
|
* ```
|
|
7381
9157
|
*/
|
|
@@ -7428,7 +9204,7 @@ export declare class LaunchpadSDK {
|
|
|
7428
9204
|
* console.log(`Active swaps: ${poolInfo.swapCount}`);
|
|
7429
9205
|
* ```
|
|
7430
9206
|
*/
|
|
7431
|
-
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<
|
|
9207
|
+
getSwapPoolInfo(tokenA: string, tokenB: string): Promise<PoolInfo>;
|
|
7432
9208
|
/**
|
|
7433
9209
|
* Get current market price for a DEX pool
|
|
7434
9210
|
*
|
|
@@ -7472,7 +9248,7 @@ export declare class LaunchpadSDK {
|
|
|
7472
9248
|
* @since 3.25.0
|
|
7473
9249
|
*
|
|
7474
9250
|
* @param ownerAddress - Wallet address (eth|0x... format or standard 0x...)
|
|
7475
|
-
* @param
|
|
9251
|
+
* @param pageSize - Optional page size for positions to return
|
|
7476
9252
|
* @param bookmarkOrOptions - Optional pagination bookmark (deprecated) or options object
|
|
7477
9253
|
* @param options - Optional options object with pricing configuration
|
|
7478
9254
|
* @returns Object with items array (liquidity positions), optional nextBookmark for pagination, and optional prices map
|
|
@@ -7593,7 +9369,7 @@ export declare class LaunchpadSDK {
|
|
|
7593
9369
|
fee: number;
|
|
7594
9370
|
tickLower: number;
|
|
7595
9371
|
tickUpper: number;
|
|
7596
|
-
}): Promise<
|
|
9372
|
+
}): Promise<GSwapPosition>;
|
|
7597
9373
|
/**
|
|
7598
9374
|
* Get liquidity position by position ID
|
|
7599
9375
|
*
|
|
@@ -7625,7 +9401,7 @@ export declare class LaunchpadSDK {
|
|
|
7625
9401
|
* );
|
|
7626
9402
|
* ```
|
|
7627
9403
|
*/
|
|
7628
|
-
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string,
|
|
9404
|
+
getSwapLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string, unknown>, token1?: string | Record<string, unknown>, feeTier?: number, tickLower?: number, tickUpper?: number): Promise<GSwapPosition>;
|
|
7629
9405
|
/**
|
|
7630
9406
|
* Fetch a single liquidity position using ONLY the compound key (most efficient)
|
|
7631
9407
|
*
|
|
@@ -7713,7 +9489,7 @@ export declare class LaunchpadSDK {
|
|
|
7713
9489
|
tickLower: number;
|
|
7714
9490
|
tickUpper: number;
|
|
7715
9491
|
owner: string;
|
|
7716
|
-
}): Promise<
|
|
9492
|
+
}): Promise<GSwapEstimateRemoveLiquidityResult>;
|
|
7717
9493
|
/**
|
|
7718
9494
|
* Add liquidity using price range
|
|
7719
9495
|
*
|
|
@@ -7721,6 +9497,18 @@ export declare class LaunchpadSDK {
|
|
|
7721
9497
|
* The SDK automatically calculates the appropriate tick boundaries.
|
|
7722
9498
|
* Recommended for most users.
|
|
7723
9499
|
*
|
|
9500
|
+
* ## Token Format (IMPORTANT)
|
|
9501
|
+
*
|
|
9502
|
+
* **Use full `tokenClassKey` format** for token0 and token1.
|
|
9503
|
+
*
|
|
9504
|
+
* ```typescript
|
|
9505
|
+
* // ✅ CORRECT - Full tokenClassKey format
|
|
9506
|
+
* { token0: 'GALA|Unit|none|none', token1: 'GUSDC|Unit|none|eth:0xa0b...' }
|
|
9507
|
+
*
|
|
9508
|
+
* // ❌ WRONG - Bare symbols throw ValidationError
|
|
9509
|
+
* { token0: 'GALA', token1: 'GUSDC' } // Error!
|
|
9510
|
+
* ```
|
|
9511
|
+
*
|
|
7724
9512
|
* @category DEX Liquidity Management
|
|
7725
9513
|
* @since 3.25.0
|
|
7726
9514
|
*
|
|
@@ -7750,7 +9538,7 @@ export declare class LaunchpadSDK {
|
|
|
7750
9538
|
* console.log(`Position created: ${result.positionId}`);
|
|
7751
9539
|
* ```
|
|
7752
9540
|
*/
|
|
7753
|
-
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<
|
|
9541
|
+
addSwapLiquidityByPrice(args: AddLiquidityByPriceArgs): Promise<GSwapAddLiquidityResult & {
|
|
7754
9542
|
timestamp?: Date;
|
|
7755
9543
|
wait?: (timeoutMs?: number) => Promise<void>;
|
|
7756
9544
|
}>;
|
|
@@ -7787,7 +9575,7 @@ export declare class LaunchpadSDK {
|
|
|
7787
9575
|
* console.log(`Position created: ${result.positionId}`);
|
|
7788
9576
|
* ```
|
|
7789
9577
|
*/
|
|
7790
|
-
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<
|
|
9578
|
+
addSwapLiquidityByTicks(args: AddLiquidityByTicksArgs): Promise<GSwapAddLiquidityResult & {
|
|
7791
9579
|
timestamp?: Date;
|
|
7792
9580
|
wait?: (timeoutMs?: number) => Promise<void>;
|
|
7793
9581
|
}>;
|
|
@@ -7842,7 +9630,7 @@ export declare class LaunchpadSDK {
|
|
|
7842
9630
|
* });
|
|
7843
9631
|
* ```
|
|
7844
9632
|
*/
|
|
7845
|
-
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<
|
|
9633
|
+
removeSwapLiquidity(args: RemoveLiquidityArgs): Promise<GSwapAddLiquidityResult>;
|
|
7846
9634
|
/**
|
|
7847
9635
|
* Collect accumulated position fees
|
|
7848
9636
|
*
|
|
@@ -7866,7 +9654,7 @@ export declare class LaunchpadSDK {
|
|
|
7866
9654
|
* console.log(`Collected: ${result.amount0} token0, ${result.amount1} token1`);
|
|
7867
9655
|
* ```
|
|
7868
9656
|
*/
|
|
7869
|
-
collectSwapPositionFees(args: CollectFeesArgs): Promise<
|
|
9657
|
+
collectSwapPositionFees(args: CollectFeesArgs): Promise<GSwapAddLiquidityResult>;
|
|
7870
9658
|
/**
|
|
7871
9659
|
* Connect to WebSocket for real-time events
|
|
7872
9660
|
*
|