@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
|
@@ -0,0 +1,1074 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validation Helper Utilities
|
|
3
|
+
*
|
|
4
|
+
* Reusable validation functions for common patterns across services.
|
|
5
|
+
* Eliminates duplicate validation logic and provides consistent error messages.
|
|
6
|
+
*
|
|
7
|
+
* @category Utilities
|
|
8
|
+
* @since 3.6.2
|
|
9
|
+
*/
|
|
10
|
+
import { type TokenNameConstraint } from '../types/constraints';
|
|
11
|
+
import { isEmptyValue as isEmptyValuePrimitive, isNonEmptyString as isNonEmptyStringPrimitive, isNullish as isNullishPrimitive } from './primitives';
|
|
12
|
+
/**
|
|
13
|
+
* Pagination bounds structure (required fields)
|
|
14
|
+
*
|
|
15
|
+
* This interface defines the required pagination bounds.
|
|
16
|
+
*/
|
|
17
|
+
export interface PaginationBounds {
|
|
18
|
+
MIN_OFFSET: number;
|
|
19
|
+
MAX_OFFSET: number;
|
|
20
|
+
MIN_LIMIT: number;
|
|
21
|
+
MAX_LIMIT: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Pagination constraints structure
|
|
25
|
+
*
|
|
26
|
+
* This interface defines the expected structure for pagination constraint objects
|
|
27
|
+
* used across the SDK (e.g., USER_CONSTRAINTS, TRADE_CONSTRAINTS).
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginationConstraints {
|
|
30
|
+
PAGINATION: PaginationBounds;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Validates pagination parameters against constraint bounds
|
|
34
|
+
*
|
|
35
|
+
* @param offset - Offset (0-based) to validate
|
|
36
|
+
* @param limit - Results per page limit to validate
|
|
37
|
+
* @param constraints - Constraint object with PAGINATION bounds
|
|
38
|
+
* @throws ValidationError if offset or limit is invalid
|
|
39
|
+
*
|
|
40
|
+
* @example Basic usage with USER_CONSTRAINTS
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import { assertValidPagination } from '../utils/validation-helpers';
|
|
43
|
+
* import { USER_CONSTRAINTS } from '../types/user.dto';
|
|
44
|
+
*
|
|
45
|
+
* function fetchUsers(offset: number, limit: number) {
|
|
46
|
+
* assertValidPagination(offset, limit, USER_CONSTRAINTS);
|
|
47
|
+
* // Validation passed - proceed with fetch
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @example With TRADE_CONSTRAINTS
|
|
52
|
+
* ```typescript
|
|
53
|
+
* import { assertValidPagination } from '../utils/validation-helpers';
|
|
54
|
+
* import { TRADE_CONSTRAINTS } from '../types/trade.dto';
|
|
55
|
+
*
|
|
56
|
+
* function fetchTrades(offset: number, limit: number) {
|
|
57
|
+
* assertValidPagination(offset, limit, TRADE_CONSTRAINTS);
|
|
58
|
+
* // Validation passed - proceed with fetch
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @example Error handling
|
|
63
|
+
* ```typescript
|
|
64
|
+
* try {
|
|
65
|
+
* assertValidPagination(-1, 100, USER_CONSTRAINTS);
|
|
66
|
+
* } catch (error) {
|
|
67
|
+
* if (error instanceof ValidationError) {
|
|
68
|
+
* console.log(error.code); // 'INVALID_OFFSET'
|
|
69
|
+
* console.log(error.message); // 'Offset must be a number between 0 and 1000000'
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function assertValidPagination(offset: number, limit: number, constraints: PaginationConstraints): void;
|
|
75
|
+
export declare const ADDRESS_PATTERNS: {
|
|
76
|
+
readonly ETH_ADDRESS: RegExp;
|
|
77
|
+
readonly BACKEND_ADDRESS: RegExp;
|
|
78
|
+
readonly CLIENT_ADDRESS: RegExp;
|
|
79
|
+
};
|
|
80
|
+
export declare const isNonEmptyString: typeof isNonEmptyStringPrimitive;
|
|
81
|
+
export declare const isEmptyValue: typeof isEmptyValuePrimitive;
|
|
82
|
+
export declare const isNullish: typeof isNullishPrimitive;
|
|
83
|
+
/**
|
|
84
|
+
* Validates optional pagination parameters (offset and limit)
|
|
85
|
+
*
|
|
86
|
+
* @param offset - Optional offset (0-based) to validate
|
|
87
|
+
* @param limit - Optional results per page to validate
|
|
88
|
+
* @param maxLimit - Maximum allowed limit (default: 100)
|
|
89
|
+
* @throws ValidationError if offset or limit is invalid
|
|
90
|
+
*
|
|
91
|
+
* @example Basic usage
|
|
92
|
+
* ```typescript
|
|
93
|
+
* import { validatePaginationOptions } from '../utils/validation-helpers';
|
|
94
|
+
*
|
|
95
|
+
* function validateListOptions(options: ListOptions): void {
|
|
96
|
+
* validatePaginationOptions(options.offset, options.limit);
|
|
97
|
+
* // Validation passed - proceed with fetch
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @example With custom max limit
|
|
102
|
+
* ```typescript
|
|
103
|
+
* // For endpoints with smaller page sizes
|
|
104
|
+
* validatePaginationOptions(options.offset, options.limit, 50);
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @since 6.4.0
|
|
108
|
+
*/
|
|
109
|
+
export declare function validatePaginationOptions(offset?: number, limit?: number, maxLimit?: number, pageSize?: number, cursor?: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Type guard function signature
|
|
112
|
+
* A function that checks if a value matches a specific type and narrows the type accordingly
|
|
113
|
+
*/
|
|
114
|
+
export type TypeGuard<T> = (value: unknown) => value is T;
|
|
115
|
+
/**
|
|
116
|
+
* Creates a validation function from a type guard
|
|
117
|
+
*
|
|
118
|
+
* @param typeGuard - Type guard function that validates the data type
|
|
119
|
+
* @param dataTypeName - Human-readable name for error messages (e.g., 'transfer data', 'pool details')
|
|
120
|
+
* @param fieldName - Optional field name for error context (defaults to 'data')
|
|
121
|
+
* @param errorCode - Optional error code (defaults to 'INVALID_DATA')
|
|
122
|
+
* @returns Validation function that throws ValidationError if type guard fails
|
|
123
|
+
*
|
|
124
|
+
* @example Basic usage with transfer data
|
|
125
|
+
* ```typescript
|
|
126
|
+
* import { createValidator } from '../utils/validation-helpers';
|
|
127
|
+
* import { isTransferGalaData, TransferGalaData } from '../types/transfer.dto';
|
|
128
|
+
*
|
|
129
|
+
* function transferGala(data: unknown) {
|
|
130
|
+
* // Validates and narrows type in one call
|
|
131
|
+
* createValidator(isTransferGalaData, 'transfer GALA data')(data);
|
|
132
|
+
* // data is now typed as TransferGalaData
|
|
133
|
+
*
|
|
134
|
+
* // Proceed with transfer logic
|
|
135
|
+
* }
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* @example With custom field name and error code
|
|
139
|
+
* ```typescript
|
|
140
|
+
* createValidator(
|
|
141
|
+
* isFetchPoolDetailsData,
|
|
142
|
+
* 'pool details',
|
|
143
|
+
* 'poolData',
|
|
144
|
+
* 'INVALID_POOL_DATA'
|
|
145
|
+
* )(data);
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @example Reusable validator
|
|
149
|
+
* ```typescript
|
|
150
|
+
* const validateTransferData = createValidator(
|
|
151
|
+
* isTransferGalaData,
|
|
152
|
+
* 'transfer data'
|
|
153
|
+
* );
|
|
154
|
+
*
|
|
155
|
+
* // Use in multiple places
|
|
156
|
+
* validateTransferData(data1);
|
|
157
|
+
* validateTransferData(data2);
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
export declare function createValidator<T>(typeGuard: TypeGuard<T>, dataTypeName: string, fieldName?: string, errorCode?: string): (value: unknown) => asserts value is T;
|
|
161
|
+
/**
|
|
162
|
+
* Creates a type guard function for string enums
|
|
163
|
+
*
|
|
164
|
+
* This utility eliminates boilerplate for enum validation functions that follow the pattern:
|
|
165
|
+
* ```typescript
|
|
166
|
+
* function isEnumValue(value: unknown): value is MyEnum {
|
|
167
|
+
* return typeof value === 'string' && Object.values(MyEnum).includes(value as MyEnum);
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* ## Replaces Patterns
|
|
172
|
+
*
|
|
173
|
+
* ### Before (Duplicate across DTOs):
|
|
174
|
+
* ```typescript
|
|
175
|
+
* // content-flag.dto.ts
|
|
176
|
+
* export function isContentType(value: unknown): value is ContentType {
|
|
177
|
+
* return typeof value === 'string' && Object.values(ContentType).includes(value as ContentType);
|
|
178
|
+
* }
|
|
179
|
+
* export function isFlagReason(value: unknown): value is FlagReason {
|
|
180
|
+
* return typeof value === 'string' && Object.values(FlagReason).includes(value as FlagReason);
|
|
181
|
+
* }
|
|
182
|
+
* // ... repeated for each enum
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* ### After (Single Source of Truth):
|
|
186
|
+
* ```typescript
|
|
187
|
+
* import { createEnumTypeGuard } from '../utils/validation-helpers';
|
|
188
|
+
* export const isContentType = createEnumTypeGuard(ContentType);
|
|
189
|
+
* export const isFlagReason = createEnumTypeGuard(FlagReason);
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
192
|
+
* @param enumObj - The TypeScript enum object to create a type guard for
|
|
193
|
+
* @returns A type guard function that checks if a value is a member of the enum
|
|
194
|
+
*
|
|
195
|
+
* @example Basic usage with ContentType enum
|
|
196
|
+
* ```typescript
|
|
197
|
+
* import { createEnumTypeGuard } from '../utils/validation-helpers';
|
|
198
|
+
*
|
|
199
|
+
* enum ContentType {
|
|
200
|
+
* CHAT_MESSAGE = 'CHAT_MESSAGE',
|
|
201
|
+
* COMMENT = 'COMMENT',
|
|
202
|
+
* STREAM = 'STREAM',
|
|
203
|
+
* }
|
|
204
|
+
*
|
|
205
|
+
* export const isContentType = createEnumTypeGuard(ContentType);
|
|
206
|
+
*
|
|
207
|
+
* // Usage
|
|
208
|
+
* if (isContentType(value)) {
|
|
209
|
+
* // value is narrowed to ContentType
|
|
210
|
+
* }
|
|
211
|
+
* ```
|
|
212
|
+
*
|
|
213
|
+
* @since 6.0.0
|
|
214
|
+
*/
|
|
215
|
+
export declare function createEnumTypeGuard<T extends Record<string, string>>(enumObj: T): (value: unknown) => value is T[keyof T];
|
|
216
|
+
/**
|
|
217
|
+
* Derives an array of values from a const object
|
|
218
|
+
*
|
|
219
|
+
* This utility eliminates the repetitive pattern of creating parallel arrays
|
|
220
|
+
* from const objects using `Object.values()`.
|
|
221
|
+
*
|
|
222
|
+
* ## Replaces Patterns
|
|
223
|
+
*
|
|
224
|
+
* ### Before (Duplicate across DTOs):
|
|
225
|
+
* ```typescript
|
|
226
|
+
* // api-key.dto.ts
|
|
227
|
+
* export const API_KEY_ROLE = { MODERATOR: 'MODERATOR', MANAGER: 'MANAGER' } as const;
|
|
228
|
+
* export type ApiKeyRole = (typeof API_KEY_ROLE)[keyof typeof API_KEY_ROLE];
|
|
229
|
+
* export const API_KEY_ROLES: ApiKeyRole[] = Object.values(API_KEY_ROLE);
|
|
230
|
+
*
|
|
231
|
+
* // moderator.dto.ts
|
|
232
|
+
* export const MODERATOR_ROLE = { ... } as const;
|
|
233
|
+
* export type ModeratorRole = (typeof MODERATOR_ROLE)[keyof typeof MODERATOR_ROLE];
|
|
234
|
+
* export const MODERATOR_ROLES: ModeratorRole[] = Object.values(MODERATOR_ROLE);
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* ### After (Single Source of Truth):
|
|
238
|
+
* ```typescript
|
|
239
|
+
* import { enumValues } from '../utils/validation-helpers';
|
|
240
|
+
* export const API_KEY_ROLES = enumValues(API_KEY_ROLE);
|
|
241
|
+
* export const MODERATOR_ROLES = enumValues(MODERATOR_ROLE);
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* @param enumObj - The const object to extract values from
|
|
245
|
+
* @returns A typed array of all values in the const object
|
|
246
|
+
*
|
|
247
|
+
* @example Basic usage with role const
|
|
248
|
+
* ```typescript
|
|
249
|
+
* import { enumValues } from '../utils/validation-helpers';
|
|
250
|
+
*
|
|
251
|
+
* const API_KEY_ROLE = {
|
|
252
|
+
* MODERATOR: 'MODERATOR',
|
|
253
|
+
* MANAGER: 'MANAGER',
|
|
254
|
+
* } as const;
|
|
255
|
+
*
|
|
256
|
+
* type ApiKeyRole = (typeof API_KEY_ROLE)[keyof typeof API_KEY_ROLE];
|
|
257
|
+
* const API_KEY_ROLES = enumValues(API_KEY_ROLE); // ['MODERATOR', 'MANAGER']
|
|
258
|
+
* // Type: ApiKeyRole[]
|
|
259
|
+
* ```
|
|
260
|
+
*
|
|
261
|
+
* @since 6.11.0
|
|
262
|
+
*/
|
|
263
|
+
export declare function enumValues<T extends Record<string, string>>(enumObj: T): T[keyof T][];
|
|
264
|
+
/**
|
|
265
|
+
* Result of mutual exclusivity validation
|
|
266
|
+
*/
|
|
267
|
+
export interface MutualExclusivityResult {
|
|
268
|
+
/** Which field was provided (if valid) */
|
|
269
|
+
chosen: string;
|
|
270
|
+
/** Whether fieldA was provided */
|
|
271
|
+
hasA: boolean;
|
|
272
|
+
/** Whether fieldB was provided */
|
|
273
|
+
hasB: boolean;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Validates that exactly one of two parameters is provided (mutual exclusivity)
|
|
277
|
+
*
|
|
278
|
+
* Consolidates 12+ instances of identical validation logic found across services:
|
|
279
|
+
* - PriceHistoryService: tokenName XOR tokenId (lines 451-470)
|
|
280
|
+
* - DexService: Similar patterns with token identification
|
|
281
|
+
* - Other services: Scattered mutual exclusivity validation
|
|
282
|
+
*
|
|
283
|
+
* ## Use Cases
|
|
284
|
+
*
|
|
285
|
+
* ### Validate Token Identification (Highest Priority)
|
|
286
|
+
* ```typescript
|
|
287
|
+
* // In service methods receiving either tokenName or tokenId (but not both)
|
|
288
|
+
* const { chosen, hasA } = validateMutualExclusive(
|
|
289
|
+
* options,
|
|
290
|
+
* 'tokenName',
|
|
291
|
+
* 'tokenId',
|
|
292
|
+
* { description: 'token identifier' }
|
|
293
|
+
* );
|
|
294
|
+
*
|
|
295
|
+
* if (hasA) {
|
|
296
|
+
* // Use tokenName
|
|
297
|
+
* const resolved = await this.tokenResolver.resolve(options.tokenName!);
|
|
298
|
+
* } else {
|
|
299
|
+
* // Use tokenId
|
|
300
|
+
* const formatted = this.converter.toTokenClassKey(options.tokenId!);
|
|
301
|
+
* }
|
|
302
|
+
* ```
|
|
303
|
+
*
|
|
304
|
+
* ### Generic Parameter Validation
|
|
305
|
+
* ```typescript
|
|
306
|
+
* // Validate address or transaction ID (mutually exclusive)
|
|
307
|
+
* const { chosen } = validateMutualExclusive(
|
|
308
|
+
* params,
|
|
309
|
+
* 'walletAddress',
|
|
310
|
+
* 'transactionId',
|
|
311
|
+
* { description: 'transaction reference' }
|
|
312
|
+
* );
|
|
313
|
+
* ```
|
|
314
|
+
*
|
|
315
|
+
* @param obj The object containing the fields to validate
|
|
316
|
+
* @param fieldA First field name (mutual exclusive with fieldB)
|
|
317
|
+
* @param fieldB Second field name (mutual exclusive with fieldA)
|
|
318
|
+
* @param options Validation options
|
|
319
|
+
* @returns Result object with chosen field and validation flags
|
|
320
|
+
*
|
|
321
|
+
* @throws {ConfigurationError} If neither field is provided or both are provided
|
|
322
|
+
*
|
|
323
|
+
* @example Token identifier validation
|
|
324
|
+
* ```typescript
|
|
325
|
+
* // PriceHistoryService.fetchAllPriceHistory() - replaces 20-line validation method
|
|
326
|
+
* const { hasA } = validateMutualExclusive(options, 'tokenName', 'tokenId', {
|
|
327
|
+
* description: 'token identifier'
|
|
328
|
+
* });
|
|
329
|
+
* ```
|
|
330
|
+
*
|
|
331
|
+
* @since 3.32.0
|
|
332
|
+
*/
|
|
333
|
+
export declare function validateMutualExclusive(obj: Record<string, unknown>, fieldA: string, fieldB: string, options?: {
|
|
334
|
+
/** Human-readable description for error messages (e.g., "token identifier") */
|
|
335
|
+
description?: string;
|
|
336
|
+
/** Whether empty strings should count as "not provided" (default: true) */
|
|
337
|
+
treatEmptyAsNull?: boolean;
|
|
338
|
+
}): MutualExclusivityResult;
|
|
339
|
+
export type { TokenNameConstraint };
|
|
340
|
+
/**
|
|
341
|
+
* Validates a launchpad token name using configurable constraints
|
|
342
|
+
*
|
|
343
|
+
* Consolidates duplicate token name validation logic found across multiple DTO files:
|
|
344
|
+
* - streaming.dto.ts (validateStreamingTokenName)
|
|
345
|
+
* - content-flag.dto.ts (validateFlagTokenName)
|
|
346
|
+
* - comment.dto.ts (inline validation)
|
|
347
|
+
* - ban.dto.ts (inline validation)
|
|
348
|
+
* - moderator.dto.ts (inline validation)
|
|
349
|
+
*
|
|
350
|
+
* ## Usage
|
|
351
|
+
*
|
|
352
|
+
* ### With default constraints (3-20 alphanumeric)
|
|
353
|
+
* ```typescript
|
|
354
|
+
* validateLaunchpadTokenName(tokenName); // Uses LAUNCHPAD_TOKEN_NAME_CONSTRAINT
|
|
355
|
+
* ```
|
|
356
|
+
*
|
|
357
|
+
* ### With custom constraints from DTO
|
|
358
|
+
* ```typescript
|
|
359
|
+
* import { STREAMING_CONSTRAINTS } from '../types/streaming.dto';
|
|
360
|
+
* validateLaunchpadTokenName(tokenName, 'tokenName', STREAMING_CONSTRAINTS.TOKEN_NAME);
|
|
361
|
+
* ```
|
|
362
|
+
*
|
|
363
|
+
* ### With custom field name for error messages
|
|
364
|
+
* ```typescript
|
|
365
|
+
* validateLaunchpadTokenName(options.tokenName, 'tokenName', BAN_CONSTRAINTS.TOKEN_NAME);
|
|
366
|
+
* ```
|
|
367
|
+
*
|
|
368
|
+
* @param tokenName - Token name to validate
|
|
369
|
+
* @param field - Field name for error messages (defaults to 'tokenName')
|
|
370
|
+
* @param constraint - Token name constraint configuration (defaults to LAUNCHPAD_TOKEN_NAME_CONSTRAINT)
|
|
371
|
+
* @throws {ValidationError} If token name is invalid (empty, too short, too long, or invalid format)
|
|
372
|
+
*
|
|
373
|
+
* @since 6.4.0
|
|
374
|
+
*/
|
|
375
|
+
export declare function validateLaunchpadTokenName(tokenName: string, field?: string, constraint?: TokenNameConstraint): void;
|
|
376
|
+
/**
|
|
377
|
+
* Validates an optional token name (allows undefined/null, but validates if present)
|
|
378
|
+
*
|
|
379
|
+
* Use this for optional token name fields that should be validated when provided.
|
|
380
|
+
* Consolidates duplicate logic from tokenNameValidator.ts.
|
|
381
|
+
*
|
|
382
|
+
* @param tokenName - The token name to validate (may be undefined/null)
|
|
383
|
+
* @param field - The field name for error messages (default: 'tokenName')
|
|
384
|
+
* @param constraint - Token name constraint (default: LAUNCHPAD_TOKEN_NAME_CONSTRAINT)
|
|
385
|
+
* @throws {ValidationError} If token name is provided but invalid
|
|
386
|
+
*
|
|
387
|
+
* @example
|
|
388
|
+
* ```typescript
|
|
389
|
+
* // No error - undefined is allowed
|
|
390
|
+
* validateOptionalTokenName(undefined);
|
|
391
|
+
*
|
|
392
|
+
* // Throws ValidationError - provided but invalid
|
|
393
|
+
* validateOptionalTokenName('ab');
|
|
394
|
+
*
|
|
395
|
+
* // Success - valid token name
|
|
396
|
+
* validateOptionalTokenName('myToken123');
|
|
397
|
+
* ```
|
|
398
|
+
*
|
|
399
|
+
* @since 6.12.0
|
|
400
|
+
*/
|
|
401
|
+
export declare function validateOptionalTokenName(tokenName: unknown, field?: string, constraint?: TokenNameConstraint): void;
|
|
402
|
+
/**
|
|
403
|
+
* Checks if a token name is valid without throwing
|
|
404
|
+
*
|
|
405
|
+
* Use this for conditional checks where you don't want exceptions.
|
|
406
|
+
* Consolidates duplicate logic from tokenNameValidator.ts.
|
|
407
|
+
*
|
|
408
|
+
* @param tokenName - The token name to check
|
|
409
|
+
* @param constraint - Token name constraint (default: LAUNCHPAD_TOKEN_NAME_CONSTRAINT)
|
|
410
|
+
* @returns true if valid, false otherwise
|
|
411
|
+
*
|
|
412
|
+
* @example
|
|
413
|
+
* ```typescript
|
|
414
|
+
* if (isValidTokenName(userInput)) {
|
|
415
|
+
* // Proceed with token lookup
|
|
416
|
+
* } else {
|
|
417
|
+
* // Show validation error to user
|
|
418
|
+
* }
|
|
419
|
+
* ```
|
|
420
|
+
*
|
|
421
|
+
* @since 6.12.0
|
|
422
|
+
*/
|
|
423
|
+
export declare function isValidTokenName(tokenName: unknown, constraint?: TokenNameConstraint): tokenName is string;
|
|
424
|
+
/**
|
|
425
|
+
* Validates a token name with constraint-specific error messages
|
|
426
|
+
*
|
|
427
|
+
* Enhanced version that provides the exact length constraint in error messages.
|
|
428
|
+
* This is the recommended function for service methods.
|
|
429
|
+
*
|
|
430
|
+
* @param tokenName - Token name to validate
|
|
431
|
+
* @param field - Field name for error messages (default: 'tokenName')
|
|
432
|
+
* @param constraint - Token name constraint with MIN_LENGTH, MAX_LENGTH, PATTERN
|
|
433
|
+
* @throws {ValidationError} If token name is invalid
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* ```typescript
|
|
437
|
+
* // Throws: "tokenName must be 3-20 alphanumeric characters"
|
|
438
|
+
* validateTokenName('ab', 'tokenName', LAUNCHPAD_TOKEN_NAME_CONSTRAINT);
|
|
439
|
+
* ```
|
|
440
|
+
*
|
|
441
|
+
* @since 6.12.0
|
|
442
|
+
*/
|
|
443
|
+
export declare function validateTokenName(tokenName: unknown, field?: string, constraint?: TokenNameConstraint): void;
|
|
444
|
+
/**
|
|
445
|
+
* Field validator configuration for structural type guards
|
|
446
|
+
*
|
|
447
|
+
* Specifies how to validate a single field in a type guard.
|
|
448
|
+
*
|
|
449
|
+
* @since 6.12.0
|
|
450
|
+
*/
|
|
451
|
+
export interface FieldTypeValidator {
|
|
452
|
+
/** Field name to validate */
|
|
453
|
+
field: string;
|
|
454
|
+
/** Expected type: 'string', 'number', 'boolean', 'object' */
|
|
455
|
+
type: 'string' | 'number' | 'boolean' | 'object';
|
|
456
|
+
/** Whether null is an acceptable value (default: false) */
|
|
457
|
+
nullable?: boolean;
|
|
458
|
+
/** Whether undefined is acceptable (field may be missing) (default: false) */
|
|
459
|
+
optional?: boolean;
|
|
460
|
+
/** Custom validator for complex checks (return true if valid) */
|
|
461
|
+
validator?: (value: unknown) => boolean;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Creates a structural type guard function from field specifications
|
|
465
|
+
*
|
|
466
|
+
* This factory eliminates repetitive type guard boilerplate found across DTO files.
|
|
467
|
+
* Each type guard follows the same pattern: check object exists, cast to Record,
|
|
468
|
+
* then validate each field's type.
|
|
469
|
+
*
|
|
470
|
+
* ## Before (Duplicate across DTOs):
|
|
471
|
+
* ```typescript
|
|
472
|
+
* export function isBanData(obj: unknown): obj is BanData {
|
|
473
|
+
* if (!obj || typeof obj !== 'object') return false;
|
|
474
|
+
* const o = obj as Record<string, unknown>;
|
|
475
|
+
* return (
|
|
476
|
+
* typeof o.id === 'number' &&
|
|
477
|
+
* typeof o.userAddress === 'string' &&
|
|
478
|
+
* typeof o.bannedBy === 'string' &&
|
|
479
|
+
* typeof o.createdAt === 'string' &&
|
|
480
|
+
* typeof o.isPermanent === 'boolean' &&
|
|
481
|
+
* (o.tokenName === null || typeof o.tokenName === 'string') &&
|
|
482
|
+
* (o.reason === null || typeof o.reason === 'string') &&
|
|
483
|
+
* (o.expiresAt === null || typeof o.expiresAt === 'string')
|
|
484
|
+
* );
|
|
485
|
+
* }
|
|
486
|
+
* ```
|
|
487
|
+
*
|
|
488
|
+
* ## After (Single declaration):
|
|
489
|
+
* ```typescript
|
|
490
|
+
* export const isBanData = createStructuralTypeGuard<BanData>([
|
|
491
|
+
* { field: 'id', type: 'number' },
|
|
492
|
+
* { field: 'userAddress', type: 'string' },
|
|
493
|
+
* { field: 'bannedBy', type: 'string' },
|
|
494
|
+
* { field: 'createdAt', type: 'string' },
|
|
495
|
+
* { field: 'isPermanent', type: 'boolean' },
|
|
496
|
+
* { field: 'tokenName', type: 'string', nullable: true },
|
|
497
|
+
* { field: 'reason', type: 'string', nullable: true },
|
|
498
|
+
* { field: 'expiresAt', type: 'string', nullable: true },
|
|
499
|
+
* ]);
|
|
500
|
+
* ```
|
|
501
|
+
*
|
|
502
|
+
* @param fields - Array of field validators specifying required fields and their types
|
|
503
|
+
* @returns A type guard function that checks if an object matches the specified structure
|
|
504
|
+
*
|
|
505
|
+
* @example Basic usage with required fields
|
|
506
|
+
* ```typescript
|
|
507
|
+
* const isUser = createStructuralTypeGuard<User>([
|
|
508
|
+
* { field: 'id', type: 'number' },
|
|
509
|
+
* { field: 'name', type: 'string' },
|
|
510
|
+
* { field: 'isActive', type: 'boolean' },
|
|
511
|
+
* ]);
|
|
512
|
+
*
|
|
513
|
+
* if (isUser(data)) {
|
|
514
|
+
* console.log(data.name); // data is typed as User
|
|
515
|
+
* }
|
|
516
|
+
* ```
|
|
517
|
+
*
|
|
518
|
+
* @example With nullable and optional fields
|
|
519
|
+
* ```typescript
|
|
520
|
+
* const isComment = createStructuralTypeGuard<Comment>([
|
|
521
|
+
* { field: 'id', type: 'number' },
|
|
522
|
+
* { field: 'content', type: 'string' },
|
|
523
|
+
* { field: 'parentId', type: 'number', nullable: true },
|
|
524
|
+
* { field: 'metadata', type: 'object', optional: true },
|
|
525
|
+
* ]);
|
|
526
|
+
* ```
|
|
527
|
+
*
|
|
528
|
+
* @since 6.12.0
|
|
529
|
+
*/
|
|
530
|
+
export declare function createStructuralTypeGuard<T>(fields: FieldTypeValidator[]): (obj: unknown) => obj is T;
|
|
531
|
+
import type { FieldValidatorConfig, OptionsValidatorWithErrors } from '../types/common';
|
|
532
|
+
/**
|
|
533
|
+
* Common field validators for reuse across validation functions
|
|
534
|
+
*
|
|
535
|
+
* These validators can be used with `createOptionsValidator` or directly.
|
|
536
|
+
*
|
|
537
|
+
* @since 6.12.0
|
|
538
|
+
*/
|
|
539
|
+
export declare const commonValidators: {
|
|
540
|
+
/**
|
|
541
|
+
* Creates a validator for required non-empty string fields
|
|
542
|
+
*/
|
|
543
|
+
requiredString: (field: string) => (value: unknown) => string | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* Creates a validator for max length string fields
|
|
546
|
+
*/
|
|
547
|
+
maxLength: (field: string, max: number) => (value: unknown) => string | undefined;
|
|
548
|
+
/**
|
|
549
|
+
* Creates a validator for positive integer fields
|
|
550
|
+
*/
|
|
551
|
+
positiveInteger: (field: string) => (value: unknown) => string | undefined;
|
|
552
|
+
/**
|
|
553
|
+
* Creates a validator for required positive integer fields
|
|
554
|
+
*/
|
|
555
|
+
requiredPositiveInteger: (field: string) => (value: unknown) => string | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* Creates a validator for enum values
|
|
558
|
+
*/
|
|
559
|
+
enumValue: <T extends string>(field: string, validValues: readonly T[]) => (value: unknown) => string | undefined;
|
|
560
|
+
/**
|
|
561
|
+
* Creates a validator for required enum values
|
|
562
|
+
*/
|
|
563
|
+
requiredEnumValue: <T extends string>(field: string, validValues: readonly T[]) => (value: unknown) => string | undefined;
|
|
564
|
+
/**
|
|
565
|
+
* Creates a validator for ISO date strings
|
|
566
|
+
*/
|
|
567
|
+
isoDate: (field: string) => (value: unknown) => string | undefined;
|
|
568
|
+
/**
|
|
569
|
+
* Creates a validator for wallet addresses
|
|
570
|
+
*/
|
|
571
|
+
walletAddress: (field: string, required?: boolean) => (value: unknown) => string | undefined;
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* Creates an options validator from field configurations
|
|
575
|
+
*
|
|
576
|
+
* This factory eliminates duplicate validation boilerplate across DTO files.
|
|
577
|
+
* Returns an array of error messages (empty if valid), which aligns with
|
|
578
|
+
* moderator.dto.ts and api-key.dto.ts validation patterns.
|
|
579
|
+
*
|
|
580
|
+
* ## Usage
|
|
581
|
+
*
|
|
582
|
+
* ### Basic field validation
|
|
583
|
+
* ```typescript
|
|
584
|
+
* import { createOptionsValidator, commonValidators } from '../utils/validation-helpers';
|
|
585
|
+
*
|
|
586
|
+
* const validateCreateOptions = createOptionsValidator<CreateOptions>([
|
|
587
|
+
* { field: 'name', required: true, type: 'string' },
|
|
588
|
+
* { field: 'description', validator: commonValidators.maxLength('description', 255) },
|
|
589
|
+
* { field: 'status', validator: commonValidators.enumValue('status', ['active', 'inactive']) },
|
|
590
|
+
* ]);
|
|
591
|
+
*
|
|
592
|
+
* // Usage
|
|
593
|
+
* const errors = validateCreateOptions(options);
|
|
594
|
+
* if (errors.length > 0) {
|
|
595
|
+
* throw new ValidationError(errors[0], 'options', 'VALIDATION_FAILED');
|
|
596
|
+
* }
|
|
597
|
+
* ```
|
|
598
|
+
*
|
|
599
|
+
* ### With custom validators
|
|
600
|
+
* ```typescript
|
|
601
|
+
* const validateOptions = createOptionsValidator<MyOptions>([
|
|
602
|
+
* { field: 'tokenName', validator: (value) => {
|
|
603
|
+
* try {
|
|
604
|
+
* validateLaunchpadTokenName(value as string, 'tokenName');
|
|
605
|
+
* return undefined;
|
|
606
|
+
* } catch (e) {
|
|
607
|
+
* return (e as Error).message;
|
|
608
|
+
* }
|
|
609
|
+
* }},
|
|
610
|
+
* ]);
|
|
611
|
+
* ```
|
|
612
|
+
*
|
|
613
|
+
* @param configs - Array of field validator configurations
|
|
614
|
+
* @returns Validation function that returns an array of error messages
|
|
615
|
+
*
|
|
616
|
+
* @since 6.12.0
|
|
617
|
+
*/
|
|
618
|
+
export declare function createOptionsValidator<T extends Record<string, unknown>>(configs: FieldValidatorConfig[]): OptionsValidatorWithErrors<T>;
|
|
619
|
+
/**
|
|
620
|
+
* Regular expression pattern for validating decimal amount strings
|
|
621
|
+
*
|
|
622
|
+
* Matches positive decimal numbers like "123", "45.67", "0.001"
|
|
623
|
+
* Does NOT match negative numbers, leading/trailing dots, or scientific notation.
|
|
624
|
+
*
|
|
625
|
+
* @since 6.18.0
|
|
626
|
+
*/
|
|
627
|
+
export declare const DECIMAL_AMOUNT_PATTERN: RegExp;
|
|
628
|
+
/**
|
|
629
|
+
* Validates a decimal amount string
|
|
630
|
+
*
|
|
631
|
+
* Used for validating token amounts in transfer, lock, unlock, burn operations.
|
|
632
|
+
* Consolidates duplicate validation logic from transfer.dto.ts, lock.dto.ts, burn.dto.ts.
|
|
633
|
+
*
|
|
634
|
+
* @param amount - Amount string to validate
|
|
635
|
+
* @param fieldPath - Field path for error messages (e.g., 'amount', 'tokens[0].amount')
|
|
636
|
+
* @param options - Validation options
|
|
637
|
+
* @throws {ValidationError} If amount is invalid
|
|
638
|
+
*
|
|
639
|
+
* @example
|
|
640
|
+
* ```typescript
|
|
641
|
+
* // Basic usage
|
|
642
|
+
* validateDecimalAmount(data.amount, 'amount');
|
|
643
|
+
*
|
|
644
|
+
* // In batch validation
|
|
645
|
+
* validateDecimalAmount(entry.amount, `tokens[${index}].amount`);
|
|
646
|
+
*
|
|
647
|
+
* // Allow zero
|
|
648
|
+
* validateDecimalAmount(data.amount, 'amount', { allowZero: true });
|
|
649
|
+
* ```
|
|
650
|
+
*
|
|
651
|
+
* @since 6.18.0
|
|
652
|
+
*/
|
|
653
|
+
export declare function validateDecimalAmount(amount: unknown, fieldPath: string, options?: {
|
|
654
|
+
allowZero?: boolean;
|
|
655
|
+
}): void;
|
|
656
|
+
/**
|
|
657
|
+
* Validates a token name against a regex pattern
|
|
658
|
+
*
|
|
659
|
+
* Used for validating token names in batch operations where full launchpad validation
|
|
660
|
+
* is not appropriate. Consolidates duplicate validation from lock.dto.ts, burn.dto.ts.
|
|
661
|
+
*
|
|
662
|
+
* @param tokenName - Token name to validate
|
|
663
|
+
* @param fieldPath - Field path for error messages (e.g., 'tokenName', 'tokens[0].tokenName')
|
|
664
|
+
* @param pattern - Regex pattern for validation
|
|
665
|
+
* @throws {ValidationError} If token name is invalid
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* ```typescript
|
|
669
|
+
* import { TOKEN_NAME_PATTERN } from './constraints';
|
|
670
|
+
*
|
|
671
|
+
* // In batch validation
|
|
672
|
+
* if (entry.tokenName !== undefined) {
|
|
673
|
+
* validateTokenNamePattern(entry.tokenName, `tokens[${index}].tokenName`, TOKEN_NAME_PATTERN);
|
|
674
|
+
* }
|
|
675
|
+
* ```
|
|
676
|
+
*
|
|
677
|
+
* @since 6.18.0
|
|
678
|
+
*/
|
|
679
|
+
export declare function validateTokenNamePattern(tokenName: unknown, fieldPath: string, pattern: RegExp): void;
|
|
680
|
+
/**
|
|
681
|
+
* Validates that a batch array meets size constraints
|
|
682
|
+
*
|
|
683
|
+
* Consolidates duplicate validation from lock.dto.ts, burn.dto.ts for batch operations.
|
|
684
|
+
*
|
|
685
|
+
* @param array - Array to validate
|
|
686
|
+
* @param fieldName - Field name for error messages (e.g., 'tokens')
|
|
687
|
+
* @param maxSize - Maximum allowed array size
|
|
688
|
+
* @throws {ValidationError} If array is invalid or exceeds max size
|
|
689
|
+
*
|
|
690
|
+
* @example
|
|
691
|
+
* ```typescript
|
|
692
|
+
* validateBatchArray(data.tokens, 'tokens', MAX_LOCK_BATCH_SIZE);
|
|
693
|
+
* ```
|
|
694
|
+
*
|
|
695
|
+
* @since 6.18.0
|
|
696
|
+
*/
|
|
697
|
+
export declare function validateBatchArray(array: unknown, fieldName: string, maxSize: number): void;
|
|
698
|
+
/**
|
|
699
|
+
* Validates an optional unique key string
|
|
700
|
+
*
|
|
701
|
+
* Consolidates duplicate validation from transfer.dto.ts, lock.dto.ts, burn.dto.ts.
|
|
702
|
+
*
|
|
703
|
+
* @param uniqueKey - Unique key to validate (may be undefined)
|
|
704
|
+
* @param maxLength - Maximum allowed length
|
|
705
|
+
* @throws {ValidationError} If unique key is invalid
|
|
706
|
+
*
|
|
707
|
+
* @example
|
|
708
|
+
* ```typescript
|
|
709
|
+
* import { UNIQUE_KEY_CONSTRAINT } from './constraints';
|
|
710
|
+
*
|
|
711
|
+
* validateUniqueKey(data.uniqueKey, UNIQUE_KEY_CONSTRAINT.MAX_LENGTH);
|
|
712
|
+
* ```
|
|
713
|
+
*
|
|
714
|
+
* @since 6.18.0
|
|
715
|
+
*/
|
|
716
|
+
export declare function validateUniqueKey(uniqueKey: unknown, maxLength: number): void;
|
|
717
|
+
/**
|
|
718
|
+
* Validates an optional private key string
|
|
719
|
+
*
|
|
720
|
+
* Simple type check for optional private key override.
|
|
721
|
+
* Consolidates duplicate validation from transfer.dto.ts, lock.dto.ts, burn.dto.ts.
|
|
722
|
+
*
|
|
723
|
+
* @param privateKey - Private key to validate (may be undefined)
|
|
724
|
+
* @throws {ValidationError} If private key is not a string
|
|
725
|
+
*
|
|
726
|
+
* @since 6.18.0
|
|
727
|
+
*/
|
|
728
|
+
export declare function validateOptionalPrivateKey(privateKey: unknown): void;
|
|
729
|
+
/**
|
|
730
|
+
* Validates that at least one of two token identifier fields is provided
|
|
731
|
+
*
|
|
732
|
+
* Common pattern in batch operations where either tokenId or tokenName is required.
|
|
733
|
+
* Consolidates duplicate validation from lock.dto.ts, burn.dto.ts.
|
|
734
|
+
*
|
|
735
|
+
* @param entry - Object containing tokenId and/or tokenName
|
|
736
|
+
* @param fieldPath - Base field path for error messages (e.g., 'tokens[0]')
|
|
737
|
+
* @throws {ValidationError} If neither tokenId nor tokenName is provided
|
|
738
|
+
*
|
|
739
|
+
* @example
|
|
740
|
+
* ```typescript
|
|
741
|
+
* validateTokenIdentifier(entry, `tokens[${index}]`);
|
|
742
|
+
* ```
|
|
743
|
+
*
|
|
744
|
+
* @since 6.18.0
|
|
745
|
+
*/
|
|
746
|
+
export declare function validateTokenIdentifier(entry: {
|
|
747
|
+
tokenId?: unknown;
|
|
748
|
+
tokenName?: unknown;
|
|
749
|
+
}, fieldPath: string): void;
|
|
750
|
+
/**
|
|
751
|
+
* NOTE: The primary `isValidAddress()` function is in address-formatter.ts
|
|
752
|
+
*
|
|
753
|
+
* Import it from there:
|
|
754
|
+
* ```typescript
|
|
755
|
+
* import { isValidAddress } from './address-formatter';
|
|
756
|
+
* ```
|
|
757
|
+
*
|
|
758
|
+
* This consolidation ensures all address validation uses a single,
|
|
759
|
+
* well-tested implementation with ADDRESS_PATTERNS for consistency.
|
|
760
|
+
*/
|
|
761
|
+
/**
|
|
762
|
+
* Throws ValidationError if required field is null/undefined with customizable messages
|
|
763
|
+
*
|
|
764
|
+
* Use this to validate that required fields are present. Supports generic type
|
|
765
|
+
* narrowing so TypeScript knows the value is not null/undefined after this check.
|
|
766
|
+
*
|
|
767
|
+
* @template T The type of the value being validated
|
|
768
|
+
* @param value The value to check (can be T, null, or undefined)
|
|
769
|
+
* @param fieldName Internal field name for error codes (e.g., 'wallet', 'signatureHelper')
|
|
770
|
+
* @param displayName Optional user-friendly display name for error messages (e.g., 'Wallet instance')
|
|
771
|
+
* @returns The value if it's not null/undefined (strongly typed as T)
|
|
772
|
+
* @throws {ValidationError} If value is null or undefined with fieldName and error code REQUIRED
|
|
773
|
+
*
|
|
774
|
+
* @example
|
|
775
|
+
* ```typescript
|
|
776
|
+
* // Simple validation
|
|
777
|
+
* const wallet = throwIfMissing(this.wallet, 'wallet', 'Wallet instance');
|
|
778
|
+
* // wallet is now guaranteed to be non-null by TypeScript
|
|
779
|
+
*
|
|
780
|
+
* // Multi-field validation
|
|
781
|
+
* throwIfMissing(this.wallet, 'wallet', 'Wallet instance');
|
|
782
|
+
* throwIfMissing(this.signatureHelper, 'signatureHelper', 'Signature helper');
|
|
783
|
+
* // Both are now guaranteed non-null
|
|
784
|
+
*
|
|
785
|
+
* // Generic type preservation
|
|
786
|
+
* interface Config { apiKey: string }
|
|
787
|
+
* const config = throwIfMissing<Config>(userConfig, 'config', 'Configuration object');
|
|
788
|
+
* // config is now Config (not Config | null | undefined)
|
|
789
|
+
* ```
|
|
790
|
+
*
|
|
791
|
+
* @since 3.50.0
|
|
792
|
+
*/
|
|
793
|
+
export declare function throwIfMissing<T>(value: T | null | undefined, fieldName: string, displayName?: string): T;
|
|
794
|
+
/**
|
|
795
|
+
* Check if array has no elements (length === 0)
|
|
796
|
+
*
|
|
797
|
+
* Provides a readable way to check for empty arrays. Handles null/undefined
|
|
798
|
+
* gracefully by returning true (treating them as "empty").
|
|
799
|
+
*
|
|
800
|
+
* @template T The type of array elements
|
|
801
|
+
* @param arr The array to check (can be T[], null, or undefined)
|
|
802
|
+
* @returns True if array is null, undefined, or has length === 0; false otherwise
|
|
803
|
+
*
|
|
804
|
+
* @example Basic empty check
|
|
805
|
+
* ```typescript
|
|
806
|
+
* import { isEmptyArray } from '@gala-chain/launchpad-sdk';
|
|
807
|
+
*
|
|
808
|
+
* const tokens = []; // or null, or undefined
|
|
809
|
+
*
|
|
810
|
+
* if (isEmptyArray(tokens)) {
|
|
811
|
+
* console.log('No tokens to process');
|
|
812
|
+
* return;
|
|
813
|
+
* }
|
|
814
|
+
* ```
|
|
815
|
+
*
|
|
816
|
+
* @example In conditional logic
|
|
817
|
+
* ```typescript
|
|
818
|
+
* import { isEmptyArray } from '@gala-chain/launchpad-sdk';
|
|
819
|
+
*
|
|
820
|
+
* if (!symbols || isEmptyArray(symbols)) {
|
|
821
|
+
* throw new ValidationError('At least one symbol is required');
|
|
822
|
+
* }
|
|
823
|
+
* ```
|
|
824
|
+
*
|
|
825
|
+
* @example With different array types
|
|
826
|
+
* ```typescript
|
|
827
|
+
* import { isEmptyArray } from '@gala-chain/launchpad-sdk';
|
|
828
|
+
*
|
|
829
|
+
* // Works with objects
|
|
830
|
+
* if (isEmptyArray(this.tokenInstances)) return undefined;
|
|
831
|
+
*
|
|
832
|
+
* // Works with strings
|
|
833
|
+
* if (isEmptyArray(errors)) {
|
|
834
|
+
* console.log('Validation passed');
|
|
835
|
+
* }
|
|
836
|
+
*
|
|
837
|
+
* // Works with numbers
|
|
838
|
+
* const amounts: number[] = [];
|
|
839
|
+
* if (isEmptyArray(amounts)) {
|
|
840
|
+
* console.log('No amounts provided');
|
|
841
|
+
* }
|
|
842
|
+
* ```
|
|
843
|
+
*
|
|
844
|
+
* @since 3.50.0
|
|
845
|
+
*/
|
|
846
|
+
export declare function isEmptyArray<T>(arr: T[] | null | undefined): boolean;
|
|
847
|
+
/**
|
|
848
|
+
* Check if string is empty or contains only whitespace
|
|
849
|
+
*
|
|
850
|
+
* A concise alternative to `str.trim().length === 0` or `!str || !str.trim()`.
|
|
851
|
+
* Returns true if the string is null, undefined, empty, or contains only whitespace characters.
|
|
852
|
+
* Whitespace includes spaces, tabs, line breaks, carriage returns, form feeds, and non-breaking spaces.
|
|
853
|
+
*
|
|
854
|
+
* @param value String to check
|
|
855
|
+
* @returns true if string is empty or only contains whitespace
|
|
856
|
+
*
|
|
857
|
+
* @example Basic check
|
|
858
|
+
* ```typescript
|
|
859
|
+
* import { isEmptyOrWhitespace } from '@gala-chain/launchpad-sdk';
|
|
860
|
+
*
|
|
861
|
+
* if (isEmptyOrWhitespace(userInput)) {
|
|
862
|
+
* console.log('Please provide valid input');
|
|
863
|
+
* }
|
|
864
|
+
* ```
|
|
865
|
+
*
|
|
866
|
+
* @example Validation in form handlers
|
|
867
|
+
* ```typescript
|
|
868
|
+
* const validateReason = (reason: string) => {
|
|
869
|
+
* if (isEmptyOrWhitespace(reason)) {
|
|
870
|
+
* throw new Error('Reason is required');
|
|
871
|
+
* }
|
|
872
|
+
* return reason.trim();
|
|
873
|
+
* };
|
|
874
|
+
* ```
|
|
875
|
+
*
|
|
876
|
+
* @example Filtering whitespace-only values
|
|
877
|
+
* ```typescript
|
|
878
|
+
* const values = ['hello', ' ', '', 'world', '\t\n'];
|
|
879
|
+
* const filtered = values.filter(v => !isEmptyOrWhitespace(v));
|
|
880
|
+
* // Result: ['hello', 'world']
|
|
881
|
+
* ```
|
|
882
|
+
*
|
|
883
|
+
* @example Conditional logic
|
|
884
|
+
* ```typescript
|
|
885
|
+
* const displayName = !isEmptyOrWhitespace(nickname) ? nickname : fullName;
|
|
886
|
+
* ```
|
|
887
|
+
*
|
|
888
|
+
* @since 3.50.0
|
|
889
|
+
*/
|
|
890
|
+
export declare function isEmptyOrWhitespace(value: string): boolean;
|
|
891
|
+
/**
|
|
892
|
+
* Supported DEX fee tiers in basis points
|
|
893
|
+
*
|
|
894
|
+
* Basis points (bps) are used for precise fee tier representation.
|
|
895
|
+
* 1 basis point = 0.01% = 1/100th of a percent.
|
|
896
|
+
*
|
|
897
|
+
* @constant
|
|
898
|
+
* @example
|
|
899
|
+
* ```typescript
|
|
900
|
+
* import { FEE_TIERS } from '@gala-chain/launchpad-sdk';
|
|
901
|
+
*
|
|
902
|
+
* const fees = [FEE_TIERS.LOW, FEE_TIERS.MEDIUM, FEE_TIERS.HIGH];
|
|
903
|
+
* // [500, 3000, 10000]
|
|
904
|
+
*
|
|
905
|
+
* const feeName = {
|
|
906
|
+
* [FEE_TIERS.LOW]: '0.05%',
|
|
907
|
+
* [FEE_TIERS.MEDIUM]: '0.30%',
|
|
908
|
+
* [FEE_TIERS.HIGH]: '1.00%'
|
|
909
|
+
* };
|
|
910
|
+
* ```
|
|
911
|
+
*
|
|
912
|
+
* @since 5.20.0
|
|
913
|
+
*/
|
|
914
|
+
export declare const FEE_TIERS: {
|
|
915
|
+
readonly LOW: 500;
|
|
916
|
+
readonly MEDIUM: 3000;
|
|
917
|
+
readonly HIGH: 10000;
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* Type-safe fee tier validation assertion
|
|
921
|
+
*
|
|
922
|
+
* Validates that a value is one of the recognized fee tiers (500, 3000, 10000).
|
|
923
|
+
* Throws ValidationError if the value is not a valid fee tier.
|
|
924
|
+
*
|
|
925
|
+
* Uses enumValidationWithObjectValues for consistent enum validation.
|
|
926
|
+
*
|
|
927
|
+
* @param value - Value to validate as a fee tier
|
|
928
|
+
* @param field - Optional field name for error messages (default: 'feeTier')
|
|
929
|
+
* @throws ValidationError if value is not a recognized fee tier
|
|
930
|
+
*
|
|
931
|
+
* @example Basic validation
|
|
932
|
+
* ```typescript
|
|
933
|
+
* import { validateFeeTier } from '@gala-chain/launchpad-sdk';
|
|
934
|
+
*
|
|
935
|
+
* function createPool(fee: number) {
|
|
936
|
+
* validateFeeTier(fee);
|
|
937
|
+
* // Safe to use fee
|
|
938
|
+
* }
|
|
939
|
+
* ```
|
|
940
|
+
*
|
|
941
|
+
* @example With custom field name
|
|
942
|
+
* ```typescript
|
|
943
|
+
* try {
|
|
944
|
+
* validateFeeTier(5000, 'poolFee');
|
|
945
|
+
* } catch (error) {
|
|
946
|
+
* console.log(error.message); // 'Invalid poolFee: 5000'
|
|
947
|
+
* }
|
|
948
|
+
* ```
|
|
949
|
+
*
|
|
950
|
+
* @example In form validation
|
|
951
|
+
* ```typescript
|
|
952
|
+
* const validatePoolForm = (data: PoolFormData) => {
|
|
953
|
+
* try {
|
|
954
|
+
* validateFeeTier(data.fee, 'fee');
|
|
955
|
+
* } catch (error) {
|
|
956
|
+
* return { field: 'fee', error: 'Invalid fee tier' };
|
|
957
|
+
* }
|
|
958
|
+
* };
|
|
959
|
+
* ```
|
|
960
|
+
*
|
|
961
|
+
* @since 5.20.0
|
|
962
|
+
*/
|
|
963
|
+
export declare function validateFeeTier(value: unknown, field?: string): void;
|
|
964
|
+
/**
|
|
965
|
+
* Type guard to check if value is a valid fee tier
|
|
966
|
+
*
|
|
967
|
+
* Returns true if value is one of the recognized fee tiers (500, 3000, 10000).
|
|
968
|
+
* Returns false for any other value including null, undefined, and invalid numbers.
|
|
969
|
+
*
|
|
970
|
+
* Use this for conditional logic and filtering without throwing errors.
|
|
971
|
+
*
|
|
972
|
+
* @param value - Value to check
|
|
973
|
+
* @returns true if value is a recognized fee tier
|
|
974
|
+
*
|
|
975
|
+
* @example Conditional logic
|
|
976
|
+
* ```typescript
|
|
977
|
+
* import { isValidFeeTier } from '@gala-chain/launchpad-sdk';
|
|
978
|
+
*
|
|
979
|
+
* const userFee = getUserInput();
|
|
980
|
+
* if (isValidFeeTier(userFee)) {
|
|
981
|
+
* createPool({ fee: userFee });
|
|
982
|
+
* } else {
|
|
983
|
+
* showError('Please select a valid fee tier');
|
|
984
|
+
* }
|
|
985
|
+
* ```
|
|
986
|
+
*
|
|
987
|
+
* @example Filtering
|
|
988
|
+
* ```typescript
|
|
989
|
+
* const fees = [500, 1000, 3000, 5000, 10000];
|
|
990
|
+
* const validFees = fees.filter(fee => isValidFeeTier(fee));
|
|
991
|
+
* // Result: [500, 3000, 10000]
|
|
992
|
+
* ```
|
|
993
|
+
*
|
|
994
|
+
* @example Type narrowing
|
|
995
|
+
* ```typescript
|
|
996
|
+
* const processFee = (value: unknown) => {
|
|
997
|
+
* if (isValidFeeTier(value)) {
|
|
998
|
+
* // TypeScript knows value is number here
|
|
999
|
+
* const tier = value * 0.0001; // Convert to percentage
|
|
1000
|
+
* return tier;
|
|
1001
|
+
* }
|
|
1002
|
+
* return null;
|
|
1003
|
+
* };
|
|
1004
|
+
* ```
|
|
1005
|
+
*
|
|
1006
|
+
* @since 5.20.0
|
|
1007
|
+
*/
|
|
1008
|
+
export declare function isValidFeeTier(value: unknown): value is number;
|
|
1009
|
+
/**
|
|
1010
|
+
* Normalize fee percentage to basis points
|
|
1011
|
+
*
|
|
1012
|
+
* Converts decimal percentage values (0.05, 0.30, 1.0) to basis points (500, 3000, 10000).
|
|
1013
|
+
* Useful for converting user-friendly percentage input to internal fee tier representation.
|
|
1014
|
+
*
|
|
1015
|
+
* Returns null if the percentage doesn't correspond to a standard fee tier.
|
|
1016
|
+
*
|
|
1017
|
+
* @param percentage - Fee percentage in decimal format (0.05 = 0.05%, 0.30 = 0.30%, etc.)
|
|
1018
|
+
* @returns Basis points equivalent (500, 3000, 10000) or null if not a standard tier
|
|
1019
|
+
*
|
|
1020
|
+
* @example Converting percentages
|
|
1021
|
+
* ```typescript
|
|
1022
|
+
* import { normalizeFeeTier } from '@gala-chain/launchpad-sdk';
|
|
1023
|
+
*
|
|
1024
|
+
* normalizeFeeTier(0.05) // Returns: 500
|
|
1025
|
+
* normalizeFeeTier(0.30) // Returns: 3000
|
|
1026
|
+
* normalizeFeeTier(1.00) // Returns: 10000
|
|
1027
|
+
* normalizeFeeTier(0.50) // Returns: null (not a standard tier)
|
|
1028
|
+
* ```
|
|
1029
|
+
*
|
|
1030
|
+
* @example Form input conversion
|
|
1031
|
+
* ```typescript
|
|
1032
|
+
* const handleFeeInput = (percentageInput: string) => {
|
|
1033
|
+
* const percentage = parseFloat(percentageInput) / 100;
|
|
1034
|
+
* const basisPoints = normalizeFeeTier(percentage);
|
|
1035
|
+
*
|
|
1036
|
+
* if (basisPoints === null) {
|
|
1037
|
+
* showError('Please select a standard fee tier');
|
|
1038
|
+
* return;
|
|
1039
|
+
* }
|
|
1040
|
+
*
|
|
1041
|
+
* createPool({ fee: basisPoints });
|
|
1042
|
+
* };
|
|
1043
|
+
* ```
|
|
1044
|
+
*
|
|
1045
|
+
* @example With fallback
|
|
1046
|
+
* ```typescript
|
|
1047
|
+
* const feeBasisPoints = normalizeFeeTier(userInput) ?? FEE_TIERS.MEDIUM;
|
|
1048
|
+
* ```
|
|
1049
|
+
*
|
|
1050
|
+
* @since 5.20.0
|
|
1051
|
+
*/
|
|
1052
|
+
export declare function normalizeFeeTier(percentage: number): number | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Extracts and concatenates error messages from Zod validation errors
|
|
1055
|
+
*
|
|
1056
|
+
* Consolidates the pattern of extracting error messages from Zod validation results:
|
|
1057
|
+
* `result.error.errors.map(e => e.message).join('; ')`
|
|
1058
|
+
*
|
|
1059
|
+
* @param errors - Array of Zod validation errors
|
|
1060
|
+
* @returns Array of error message strings
|
|
1061
|
+
*
|
|
1062
|
+
* @example
|
|
1063
|
+
* ```typescript
|
|
1064
|
+
* const result = schema.safeParse(data);
|
|
1065
|
+
* if (!result.success) {
|
|
1066
|
+
* const messages = collectValidationErrors(result.error.errors);
|
|
1067
|
+
* // Returns: ['Field is required', 'Must be at least 3 characters']
|
|
1068
|
+
* }
|
|
1069
|
+
* ```
|
|
1070
|
+
*
|
|
1071
|
+
* @since 6.30.0
|
|
1072
|
+
*/
|
|
1073
|
+
export declare function collectValidationErrors(errors: unknown[]): string[];
|
|
1074
|
+
//# sourceMappingURL=validation-helpers.d.ts.map
|