@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,1207 @@
|
|
|
1
|
+
import type { TokenClassKey } from '../types/common';
|
|
2
|
+
import type { AvailableDexTokensResult, DexToken, ExecuteSwapParams, ExecuteSwapResult, FetchAvailableDexTokensOptions, GetLiquidityPositionsOptions, GetLiquidityPositionsResult, GSwapPosition, GSwapServiceConfig, PoolInfo, PoolPriceData, PoolSlot0Data, SwapQuoteParams, SwapQuoteResult, UserAsset } from '../types/gswap.dto';
|
|
3
|
+
import type { GSwapAddLiquidityResult, GSwapEstimateRemoveLiquidityResult } from '../types/gswap-responses.types';
|
|
4
|
+
import { LoggerBase } from './BaseService';
|
|
5
|
+
import type { DexQuoteService } from './DexQuoteService';
|
|
6
|
+
import type { WebSocketService } from './WebSocketService';
|
|
7
|
+
export declare class GSwapService extends LoggerBase {
|
|
8
|
+
private gatewayClient;
|
|
9
|
+
private dexBackendClient;
|
|
10
|
+
private tokenConverter;
|
|
11
|
+
private webSocketService;
|
|
12
|
+
private dexQuoteService;
|
|
13
|
+
private getWalletAddress;
|
|
14
|
+
private galaChainBaseUrl;
|
|
15
|
+
private bundlerBaseUrl;
|
|
16
|
+
private gatewayBaseUrl;
|
|
17
|
+
private privateKey;
|
|
18
|
+
private pricingConcurrency;
|
|
19
|
+
constructor(config: GSwapServiceConfig, webSocketService: WebSocketService, dexQuoteService?: DexQuoteService);
|
|
20
|
+
/**
|
|
21
|
+
* Set the pricing concurrency level for liquidity position pricing operations
|
|
22
|
+
* This is set once at SDK initialization and applies to all pricing operations
|
|
23
|
+
* @param concurrency Number of concurrent pricing requests (default: 5, max recommended: 20)
|
|
24
|
+
*/
|
|
25
|
+
setPricingConcurrency(concurrency: number): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get swap quote for spending a known input amount (exact input swap quote)
|
|
28
|
+
*
|
|
29
|
+
* Calculates how much of the destination token you will receive when spending a specific amount
|
|
30
|
+
* of the source token. Uses dynamic fee tier discovery to find the best available liquidity pool,
|
|
31
|
+
* trying fee tiers in order of typical liquidity: 3000 (0.30%), 500 (0.05%), then 10000 (1.00%).
|
|
32
|
+
* All quotes are always fresh (never cached) to prevent MEV vulnerabilities in volatile markets.
|
|
33
|
+
*
|
|
34
|
+
* @param params - Quote request parameters
|
|
35
|
+
* @param params.fromToken - Source token identifier (pipe-delimited format: 'GALA|Unit|none|none')
|
|
36
|
+
* @param params.toToken - Destination token identifier (pipe-delimited format)
|
|
37
|
+
* @param params.amount - Input amount to spend (must be positive number string)
|
|
38
|
+
* @returns Promise<SwapQuoteResult> Quote with estimated output amount, fee tier, price impact, and execution price
|
|
39
|
+
* @throws {GSwapQuoteError} If DexQuoteService not configured or all fee tiers fail to provide a quote
|
|
40
|
+
* @since 4.0.4-beta.0
|
|
41
|
+
* @category Services
|
|
42
|
+
*
|
|
43
|
+
* @example Get quote for buying tokens with 100 GALA
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const quote = await gswapService.getSwapQuoteExactInput({
|
|
46
|
+
* fromToken: 'GALA|Unit|none|none',
|
|
47
|
+
* toToken: 'Token|Unit|BENE|client:123',
|
|
48
|
+
* amount: '100'
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
51
|
+
* console.log(`Spending ${quote.inputAmount} GALA`);
|
|
52
|
+
* console.log(`Receiving ~${quote.estimatedOutput} BENE tokens`);
|
|
53
|
+
* console.log(`Fee tier: ${quote.feeTier / 100}%`);
|
|
54
|
+
* console.log(`Price impact: ${(parseFloat(quote.priceImpact) * 100).toFixed(4)}%`);
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
getSwapQuoteExactInput(params: SwapQuoteParams): Promise<SwapQuoteResult>;
|
|
58
|
+
/**
|
|
59
|
+
* Get swap quote for receiving a known output amount (exact output swap quote)
|
|
60
|
+
*
|
|
61
|
+
* Calculates how much of the source token you need to spend to receive a specific amount
|
|
62
|
+
* of the destination token. Uses dynamic fee tier discovery to find the best available liquidity pool,
|
|
63
|
+
* trying fee tiers in order of typical liquidity: 3000 (0.30%), 500 (0.05%), then 10000 (1.00%).
|
|
64
|
+
* All quotes are always fresh (never cached) to prevent MEV vulnerabilities in volatile markets.
|
|
65
|
+
*
|
|
66
|
+
* @param params - Quote request parameters
|
|
67
|
+
* @param params.fromToken - Source token identifier (pipe-delimited format: 'GALA|Unit|none|none')
|
|
68
|
+
* @param params.toToken - Destination token identifier (pipe-delimited format)
|
|
69
|
+
* @param params.amount - Desired output amount to receive (must be positive number string)
|
|
70
|
+
* @returns Promise<SwapQuoteResult> Quote with required input amount, fee tier, price impact, and execution price
|
|
71
|
+
* @throws {GSwapQuoteError} If DexQuoteService not configured or all fee tiers fail to provide a quote
|
|
72
|
+
* @since 4.0.4-beta.0
|
|
73
|
+
* @category Services
|
|
74
|
+
*
|
|
75
|
+
* @example Get quote for receiving exactly 50 tokens
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const quote = await gswapService.getSwapQuoteExactOutput({
|
|
78
|
+
* fromToken: 'GALA|Unit|none|none',
|
|
79
|
+
* toToken: 'GUSDC|Unit|none|none',
|
|
80
|
+
* amount: '50'
|
|
81
|
+
* });
|
|
82
|
+
*
|
|
83
|
+
* console.log(`Need to spend ${quote.inputAmount} GALA`);
|
|
84
|
+
* console.log(`To receive exactly ${quote.estimatedOutput} GUSDC`);
|
|
85
|
+
* console.log(`Fee tier: ${quote.feeTier / 100}%`);
|
|
86
|
+
* console.log(`Price impact: ${(parseFloat(quote.priceImpact) * 100).toFixed(4)}%`);
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
getSwapQuoteExactOutput(params: SwapQuoteParams): Promise<SwapQuoteResult>;
|
|
90
|
+
/**
|
|
91
|
+
* Execute a token swap with slippage protection on GalaSwap DEX
|
|
92
|
+
*
|
|
93
|
+
* Performs a direct swap transaction between two tokens using the specified fee tier pool.
|
|
94
|
+
* Automatically calculates slippage-adjusted minimum output to protect against price movement,
|
|
95
|
+
* submits the transaction via the bundler, and monitors confirmation via WebSocket. Always get
|
|
96
|
+
* a fresh quote before executing to ensure accurate pricing and appropriate fee tier selection.
|
|
97
|
+
*
|
|
98
|
+
* @param params - Swap execution parameters
|
|
99
|
+
* @param params.fromToken - Source token to swap from (pipe-delimited format: 'GALA|Unit|none|none')
|
|
100
|
+
* @param params.toToken - Destination token to swap to (pipe-delimited format)
|
|
101
|
+
* @param params.inputAmount - Amount of source token to spend (string number)
|
|
102
|
+
* @param params.estimatedOutput - Expected output amount from quote (used for slippage calculation)
|
|
103
|
+
* @param params.feeTier - Pool fee tier in basis points (500 = 0.05%, 3000 = 0.30%, 10000 = 1.00%)
|
|
104
|
+
* @param params.slippageTolerance - Maximum acceptable slippage (default: 0.01 = 1%)
|
|
105
|
+
* @returns Promise<ExecuteSwapResult> Transaction result with status, amounts, and monitoring details
|
|
106
|
+
* @throws {Error} If private key not available, wallet address missing, or transaction fails
|
|
107
|
+
* @since 4.0.4-beta.0
|
|
108
|
+
* @category Services
|
|
109
|
+
*
|
|
110
|
+
* @example Complete swap workflow with quote and execution
|
|
111
|
+
* ```typescript
|
|
112
|
+
* // Step 1: Get fresh quote
|
|
113
|
+
* const quote = await gswapService.getSwapQuoteExactInput({
|
|
114
|
+
* fromToken: 'GALA|Unit|none|none',
|
|
115
|
+
* toToken: 'GUSDC|Unit|none|none',
|
|
116
|
+
* amount: '100'
|
|
117
|
+
* });
|
|
118
|
+
*
|
|
119
|
+
* // Step 2: Execute swap with 1% slippage tolerance
|
|
120
|
+
* const result = await gswapService.executeSwap({
|
|
121
|
+
* fromToken: 'GALA|Unit|none|none',
|
|
122
|
+
* toToken: 'GUSDC|Unit|none|none',
|
|
123
|
+
* inputAmount: '100',
|
|
124
|
+
* estimatedOutput: quote.estimatedOutput,
|
|
125
|
+
* feeTier: quote.feeTier, // Use fee tier from quote
|
|
126
|
+
* slippageTolerance: 0.01 // 1% max slippage
|
|
127
|
+
* });
|
|
128
|
+
*
|
|
129
|
+
* console.log(`Swap ${result.status}: ${result.transactionId}`);
|
|
130
|
+
* console.log(`Spent ${result.inputAmount} → Received ${result.outputAmount}`);
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
executeSwap(params: ExecuteSwapParams): Promise<ExecuteSwapResult>;
|
|
134
|
+
/**
|
|
135
|
+
* Get user's token assets/balances with rich metadata
|
|
136
|
+
*
|
|
137
|
+
* Fetches all tokens held by a user from the DEX API via /user/token-list endpoint.
|
|
138
|
+
* Returns enriched data including image, name, description, verification status.
|
|
139
|
+
* Only returns tokens where balance > 0.
|
|
140
|
+
*
|
|
141
|
+
* @param walletAddress User's wallet address (e.g., "eth|0x1234...")
|
|
142
|
+
* @param page Page number (1-based, default: 1)
|
|
143
|
+
* @param limit Results per page (max 20, default: 20)
|
|
144
|
+
* @returns Array of user assets with balances and rich metadata
|
|
145
|
+
* @throws {GSwapAssetError} When the API call itself fails or wallet address is invalid
|
|
146
|
+
* @since v4.1.0 Now returns rich metadata (image, name, description, verified)
|
|
147
|
+
*/
|
|
148
|
+
getUserAssets(walletAddress: string, page?: number, limit?: number): Promise<UserAsset[]>;
|
|
149
|
+
/**
|
|
150
|
+
* Get all user assets across all pages (auto-paginated with optimization)
|
|
151
|
+
*
|
|
152
|
+
* Fetches all tokens held by a user with automatic pagination.
|
|
153
|
+
* Optimization: Stops fetching when quantity=0 is encountered (results are ordered by quantity desc).
|
|
154
|
+
*
|
|
155
|
+
* @param walletAddress Wallet address to fetch assets for
|
|
156
|
+
* @returns All user assets with balances > 0
|
|
157
|
+
* @since v4.1.0 Now returns rich metadata and uses smart pagination optimization
|
|
158
|
+
*/
|
|
159
|
+
getAllUserAssets(walletAddress: string): Promise<UserAsset[]>;
|
|
160
|
+
/**
|
|
161
|
+
* Fetch available DEX tokens (token discovery)
|
|
162
|
+
*
|
|
163
|
+
* Fetches all tokens available on the DEX without requiring a wallet address.
|
|
164
|
+
* Use for token discovery, listings, and market analysis.
|
|
165
|
+
*
|
|
166
|
+
* @param options Fetch options (search, limit, page)
|
|
167
|
+
* @returns Paginated result with token metadata
|
|
168
|
+
* @throws {GSwapAssetError} When the API call fails
|
|
169
|
+
* @since v4.1.0
|
|
170
|
+
*/
|
|
171
|
+
fetchAvailableDexTokens(options?: FetchAvailableDexTokensOptions): Promise<AvailableDexTokensResult>;
|
|
172
|
+
/**
|
|
173
|
+
* Fetch all available DEX tokens (auto-paginated)
|
|
174
|
+
*
|
|
175
|
+
* Fetches ALL tokens available on the DEX with automatic pagination.
|
|
176
|
+
* Use for complete token listings and comprehensive market analysis.
|
|
177
|
+
*
|
|
178
|
+
* @param options Fetch options (search filter)
|
|
179
|
+
* @returns All available tokens on the DEX
|
|
180
|
+
* @throws {GSwapAssetError} When the API call fails
|
|
181
|
+
* @since v4.1.0
|
|
182
|
+
*/
|
|
183
|
+
fetchAllAvailableDexTokens(options?: Omit<FetchAvailableDexTokensOptions, 'page' | 'limit'>): Promise<DexToken[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Get pool information for token pair
|
|
186
|
+
* @param tokenA First token
|
|
187
|
+
* @param tokenB Second token
|
|
188
|
+
* @returns Pool information
|
|
189
|
+
*/
|
|
190
|
+
getPoolInfo(tokenA: string, tokenB: string): Promise<PoolInfo>;
|
|
191
|
+
/**
|
|
192
|
+
* Get all liquidity positions for a wallet
|
|
193
|
+
* @param ownerAddress User's wallet address
|
|
194
|
+
* @param limit Maximum number of positions to return (default 100)
|
|
195
|
+
* @param bookmark Pagination bookmark
|
|
196
|
+
* @returns Array of liquidity positions with full type safety
|
|
197
|
+
*/
|
|
198
|
+
/**
|
|
199
|
+
* Chunk array into smaller batches for concurrent processing
|
|
200
|
+
* @private
|
|
201
|
+
*/
|
|
202
|
+
private chunkArray;
|
|
203
|
+
/**
|
|
204
|
+
* Fetch real-time pricing for liquidity positions
|
|
205
|
+
* Deduplicates pools and processes in chunks for optimal performance
|
|
206
|
+
* @private
|
|
207
|
+
*/
|
|
208
|
+
private fetchPositionPrices;
|
|
209
|
+
/**
|
|
210
|
+
* Normalize GSwap API position response to match LiquidityPosition interface
|
|
211
|
+
* Handles different field naming conventions from the API
|
|
212
|
+
*
|
|
213
|
+
* @param rawPosition - Raw API response with varying field names (see RawPositionData docs)
|
|
214
|
+
* @param ownerAddress - Optional owner address to include in normalized result
|
|
215
|
+
*/
|
|
216
|
+
private normalizePositionResponse;
|
|
217
|
+
/**
|
|
218
|
+
* Parse token string flexibly - supports both delimited and simple formats
|
|
219
|
+
* @param tokenString Token in format "GALA" or "GALA|Unit|none|none"
|
|
220
|
+
* @returns TokenClassKey object
|
|
221
|
+
*/
|
|
222
|
+
private parseTokenFlexible;
|
|
223
|
+
/**
|
|
224
|
+
* Transform a raw token from API response to DexToken format
|
|
225
|
+
*
|
|
226
|
+
* Centralizes the transformation logic used by both getUserAssets and fetchAvailableDexTokens.
|
|
227
|
+
* Handles type coercion (decimals string to number, verify to verified).
|
|
228
|
+
*
|
|
229
|
+
* @param token Raw token from DEX Backend API
|
|
230
|
+
* @returns Transformed DexToken with proper types
|
|
231
|
+
* @since v4.1.0
|
|
232
|
+
*/
|
|
233
|
+
private transformRawTokenToDexToken;
|
|
234
|
+
/**
|
|
235
|
+
* Transform a raw token from API response to UserAsset format
|
|
236
|
+
*
|
|
237
|
+
* Extends the base DexToken transformation with tokenId parsing and balance formatting.
|
|
238
|
+
* Returns null if the token cannot be processed (parsing errors).
|
|
239
|
+
*
|
|
240
|
+
* @param token Raw token from DEX Backend API
|
|
241
|
+
* @returns Transformed UserAsset or null if processing fails
|
|
242
|
+
* @since v4.1.0
|
|
243
|
+
*/
|
|
244
|
+
private transformRawTokenToUserAsset;
|
|
245
|
+
/**
|
|
246
|
+
* Fetch user's liquidity positions with pagination and optional price enrichment
|
|
247
|
+
*
|
|
248
|
+
* Retrieves concentrated liquidity positions for a specific wallet address using bookmark-based
|
|
249
|
+
* cursor pagination. Supports optional real-time price enrichment to include current token prices
|
|
250
|
+
* and position value calculations. Use this method when you need manual pagination control or
|
|
251
|
+
* want to fetch positions incrementally.
|
|
252
|
+
*
|
|
253
|
+
* @param ownerAddress - Wallet address to query positions for (format: 'eth|0x...' or 'client|...')
|
|
254
|
+
* @param limit - Maximum positions per page (default: GSWAP_LIQUIDITY_POSITIONS_PAGE_SIZE)
|
|
255
|
+
* @param bookmark - Optional pagination cursor from previous result's nextBookmark field
|
|
256
|
+
* @param options - Optional configuration for price enrichment and additional data
|
|
257
|
+
* @param options.withPrices - If true, enriches positions with current token prices and USD values
|
|
258
|
+
* @returns Promise<GetLiquidityPositionsResult> Paginated positions with optional nextBookmark and prices
|
|
259
|
+
* @throws {GSwapPositionError} If API request fails or position normalization errors occur
|
|
260
|
+
* @since 4.0.4-beta.0
|
|
261
|
+
* @category Services
|
|
262
|
+
*
|
|
263
|
+
* @example Manual pagination without price enrichment
|
|
264
|
+
* ```typescript
|
|
265
|
+
* // Fetch first page
|
|
266
|
+
* const page1 = await gswapService.getUserLiquidityPositions(
|
|
267
|
+
* 'eth|0x1234...',
|
|
268
|
+
* 10
|
|
269
|
+
* );
|
|
270
|
+
*
|
|
271
|
+
* console.log(`Found ${page1.items.length} positions`);
|
|
272
|
+
*
|
|
273
|
+
* // Fetch next page if available
|
|
274
|
+
* if (page1.nextBookmark) {
|
|
275
|
+
* const page2 = await gswapService.getUserLiquidityPositions(
|
|
276
|
+
* 'eth|0x1234...',
|
|
277
|
+
* 10,
|
|
278
|
+
* page1.nextBookmark
|
|
279
|
+
* );
|
|
280
|
+
* }
|
|
281
|
+
* ```
|
|
282
|
+
*
|
|
283
|
+
* @example Fetch positions with real-time price enrichment
|
|
284
|
+
* ```typescript
|
|
285
|
+
* const positions = await gswapService.getUserLiquidityPositions(
|
|
286
|
+
* 'eth|0x1234...',
|
|
287
|
+
* 20,
|
|
288
|
+
* undefined,
|
|
289
|
+
* { withPrices: true }
|
|
290
|
+
* );
|
|
291
|
+
*
|
|
292
|
+
* // Prices map available at result.prices
|
|
293
|
+
* positions.items.forEach(pos => {
|
|
294
|
+
* const poolKey = `${pos.token0}/${pos.token1}`;
|
|
295
|
+
* const prices = positions.prices?.get(poolKey);
|
|
296
|
+
* if (prices) {
|
|
297
|
+
* console.log(`${poolKey}: Token0=$${prices.token0PriceUsd}, Token1=$${prices.token1PriceUsd}`);
|
|
298
|
+
* }
|
|
299
|
+
* });
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
302
|
+
getUserLiquidityPositions(ownerAddress: string, limit?: number, bookmark?: string, options?: GetLiquidityPositionsOptions): Promise<GetLiquidityPositionsResult>;
|
|
303
|
+
/**
|
|
304
|
+
* Fetch ALL user liquidity positions with automatic pagination and optional price enrichment
|
|
305
|
+
*
|
|
306
|
+
* Convenience method that automatically handles bookmark-based pagination to retrieve all
|
|
307
|
+
* concentrated liquidity positions for a wallet in a single call. Uses maximum page size
|
|
308
|
+
* internally for efficiency and combines results from all pages. Optionally enriches positions
|
|
309
|
+
* with real-time token prices and USD value calculations.
|
|
310
|
+
*
|
|
311
|
+
* @param ownerAddress - Wallet address to query positions for (format: 'eth|0x...' or 'client|...')
|
|
312
|
+
* @param options - Optional configuration for price enrichment and additional data
|
|
313
|
+
* @param options.withPrices - If true, enriches all positions with current token prices and USD values
|
|
314
|
+
* @returns Promise<GSwapPosition[] | GetLiquidityPositionsResult> All positions (array if no prices, result with prices if requested)
|
|
315
|
+
* @throws {GSwapPositionError} If API request fails or position normalization errors occur
|
|
316
|
+
* @since 4.0.4-beta.0
|
|
317
|
+
* @category Services
|
|
318
|
+
*
|
|
319
|
+
* @example Fetch all positions without prices (simple array)
|
|
320
|
+
* ```typescript
|
|
321
|
+
* const allPositions = await gswapService.getAllSwapUserLiquidityPositions(
|
|
322
|
+
* 'eth|0x1234...'
|
|
323
|
+
* );
|
|
324
|
+
*
|
|
325
|
+
* console.log(`Total positions: ${allPositions.length}`);
|
|
326
|
+
* allPositions.forEach(pos => {
|
|
327
|
+
* console.log(`Position ${pos.positionId}: ${pos.token0}/${pos.token1}`);
|
|
328
|
+
* console.log(` Liquidity: ${pos.liquidity}, Range: ${pos.tickLower}-${pos.tickUpper}`);
|
|
329
|
+
* });
|
|
330
|
+
* ```
|
|
331
|
+
*
|
|
332
|
+
* @example Fetch all positions with price enrichment (full result object)
|
|
333
|
+
* ```typescript
|
|
334
|
+
* const result = await gswapService.getAllSwapUserLiquidityPositions(
|
|
335
|
+
* 'eth|0x1234...',
|
|
336
|
+
* { withPrices: true }
|
|
337
|
+
* );
|
|
338
|
+
*
|
|
339
|
+
* // When withPrices=true, returns GetLiquidityPositionsResult with prices Map
|
|
340
|
+
* if ('prices' in result) {
|
|
341
|
+
* result.items.forEach(pos => {
|
|
342
|
+
* const poolKey = `${pos.token0}/${pos.token1}`;
|
|
343
|
+
* const prices = result.prices?.get(poolKey);
|
|
344
|
+
* if (prices) {
|
|
345
|
+
* console.log(`${poolKey}: $${prices.token0PriceUsd} / $${prices.token1PriceUsd}`);
|
|
346
|
+
* }
|
|
347
|
+
* });
|
|
348
|
+
* }
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
getAllSwapUserLiquidityPositions(ownerAddress: string, options?: GetLiquidityPositionsOptions): Promise<GSwapPosition[] | GetLiquidityPositionsResult>;
|
|
352
|
+
/**
|
|
353
|
+
* Fetch a specific liquidity position by its compound key (token pair, fee tier, and tick range)
|
|
354
|
+
*
|
|
355
|
+
* Retrieves detailed information about a single concentrated liquidity position using its
|
|
356
|
+
* compound key consisting of the token pair, fee tier, and tick boundaries. This method
|
|
357
|
+
* validates tick spacing for the given fee tier before making the API call to ensure the
|
|
358
|
+
* position parameters are valid for the specified pool.
|
|
359
|
+
*
|
|
360
|
+
* @param ownerAddress - Wallet address that owns the position (format: 'eth|0x...' or 'client|...')
|
|
361
|
+
* @param position - Compound key identifying the specific position
|
|
362
|
+
* @param position.token0 - First token identifier (pipe-delimited format: 'GALA|Unit|none|none')
|
|
363
|
+
* @param position.token1 - Second token identifier (pipe-delimited format)
|
|
364
|
+
* @param position.fee - Pool fee tier in basis points (500, 3000, or 10000)
|
|
365
|
+
* @param position.tickLower - Lower tick boundary of the position's price range
|
|
366
|
+
* @param position.tickUpper - Upper tick boundary of the position's price range
|
|
367
|
+
* @returns Promise<GSwapPosition> Complete position details with liquidity, amounts, and fees
|
|
368
|
+
* @throws {GSwapPositionError} If position not found, tick spacing invalid, or API request fails
|
|
369
|
+
* @since 4.0.4-beta.0
|
|
370
|
+
* @category Services
|
|
371
|
+
*
|
|
372
|
+
* @example Fetch position by compound key
|
|
373
|
+
* ```typescript
|
|
374
|
+
* const position = await gswapService.getLiquidityPosition(
|
|
375
|
+
* 'eth|0x1234...',
|
|
376
|
+
* {
|
|
377
|
+
* token0: 'GALA|Unit|none|none',
|
|
378
|
+
* token1: 'GUSDC|Unit|none|none',
|
|
379
|
+
* fee: 3000, // 0.30% fee tier
|
|
380
|
+
* tickLower: -276330,
|
|
381
|
+
* tickUpper: -276270
|
|
382
|
+
* }
|
|
383
|
+
* );
|
|
384
|
+
*
|
|
385
|
+
* console.log(`Position ID: ${position.positionId}`);
|
|
386
|
+
* console.log(`Liquidity: ${position.liquidity}`);
|
|
387
|
+
* console.log(`Token0 amount: ${position.amount0}`);
|
|
388
|
+
* console.log(`Token1 amount: ${position.amount1}`);
|
|
389
|
+
* console.log(`Uncollected fees: ${position.feeAmount0} / ${position.feeAmount1}`);
|
|
390
|
+
* ```
|
|
391
|
+
*/
|
|
392
|
+
getLiquidityPosition(ownerAddress: string, position: {
|
|
393
|
+
token0: string;
|
|
394
|
+
token1: string;
|
|
395
|
+
fee: number;
|
|
396
|
+
tickLower: number;
|
|
397
|
+
tickUpper: number;
|
|
398
|
+
}): Promise<GSwapPosition>;
|
|
399
|
+
/**
|
|
400
|
+
* Fetch a liquidity position by its unique position ID with automatic retry logic
|
|
401
|
+
*
|
|
402
|
+
* Retrieves detailed information about a concentrated liquidity position using its unique position ID.
|
|
403
|
+
* Includes automatic retry logic (5 attempts with 2-second delays) for newly created positions that
|
|
404
|
+
* may not be immediately indexed. Optionally accepts compound key parameters (token pair, fee tier,
|
|
405
|
+
* tick range) for faster compound key lookup instead of iterating through all positions.
|
|
406
|
+
*
|
|
407
|
+
* @param ownerAddress - Wallet address that owns the position (format: 'eth|0x...' or 'client|...')
|
|
408
|
+
* @param positionId - Unique position UUID returned when position was created
|
|
409
|
+
* @param token0 - Optional first token for compound key lookup (faster than ID scan)
|
|
410
|
+
* @param token1 - Optional second token for compound key lookup (faster than ID scan)
|
|
411
|
+
* @param feeTier - Optional fee tier in basis points for compound key lookup (500, 3000, or 10000)
|
|
412
|
+
* @param tickLower - Optional lower tick boundary for compound key lookup
|
|
413
|
+
* @param tickUpper - Optional upper tick boundary for compound key lookup
|
|
414
|
+
* @returns Promise<GSwapPosition> Complete position details with liquidity, amounts, fees, and metadata
|
|
415
|
+
* @throws {GSwapPositionError} If position not found after retries or API request fails
|
|
416
|
+
* @since 4.0.4-beta.0
|
|
417
|
+
* @category Services
|
|
418
|
+
*
|
|
419
|
+
* @example Fetch position by ID only (with automatic retry)
|
|
420
|
+
* ```typescript
|
|
421
|
+
* const position = await gswapService.getLiquidityPositionById(
|
|
422
|
+
* 'eth|0x1234...',
|
|
423
|
+
* 'abc123-position-uuid'
|
|
424
|
+
* );
|
|
425
|
+
*
|
|
426
|
+
* console.log(`Found position: ${position.token0}/${position.token1}`);
|
|
427
|
+
* console.log(`Liquidity: ${position.liquidity}`);
|
|
428
|
+
* ```
|
|
429
|
+
*
|
|
430
|
+
* @example Fetch position by ID with compound key for faster lookup
|
|
431
|
+
* ```typescript
|
|
432
|
+
* // Providing compound key parameters enables direct lookup (much faster)
|
|
433
|
+
* const position = await gswapService.getLiquidityPositionById(
|
|
434
|
+
* 'eth|0x1234...',
|
|
435
|
+
* 'abc123-position-uuid',
|
|
436
|
+
* 'GALA|Unit|none|none',
|
|
437
|
+
* 'GUSDC|Unit|none|none',
|
|
438
|
+
* 3000, // 0.30% fee tier
|
|
439
|
+
* -276330, // tickLower
|
|
440
|
+
* -276270 // tickUpper
|
|
441
|
+
* );
|
|
442
|
+
*
|
|
443
|
+
* console.log(`Position ${position.positionId} found via compound key`);
|
|
444
|
+
* ```
|
|
445
|
+
*/
|
|
446
|
+
getLiquidityPositionById(ownerAddress: string, positionId: string, token0?: string | Record<string, unknown>, token1?: string | Record<string, unknown>, feeTier?: number, tickLower?: number, tickUpper?: number): Promise<GSwapPosition>;
|
|
447
|
+
/**
|
|
448
|
+
* Fetch a single liquidity position using ONLY the compound key (direct HTTP call)
|
|
449
|
+
* Most efficient when you already have all position parameters
|
|
450
|
+
* @param params Position parameters - token0, token1, fee, tickLower, tickUpper, owner (ALL REQUIRED)
|
|
451
|
+
* @returns Detailed position information with full type safety
|
|
452
|
+
* @remarks
|
|
453
|
+
* - Does NOT use positionId (not needed or accepted)
|
|
454
|
+
* - Single direct HTTP call to GalaChain (no GSwap SDK)
|
|
455
|
+
* - Best for cases where caller has full position parameters
|
|
456
|
+
* - Requires: token0, token1, fee (500|3000|10000), tickLower, tickUpper, owner
|
|
457
|
+
*/
|
|
458
|
+
fetchSwapPositionDirect(params: {
|
|
459
|
+
token0: string;
|
|
460
|
+
token1: string;
|
|
461
|
+
fee: number;
|
|
462
|
+
tickLower: number;
|
|
463
|
+
tickUpper: number;
|
|
464
|
+
owner: string;
|
|
465
|
+
}): Promise<GSwapPosition>;
|
|
466
|
+
/**
|
|
467
|
+
* Estimate token amounts that will be received when removing liquidity from a position
|
|
468
|
+
*
|
|
469
|
+
* Calculates the expected token0 and token1 amounts that will be returned when removing a
|
|
470
|
+
* specific amount of liquidity from a concentrated liquidity position. This is useful for
|
|
471
|
+
* previewing the outcome before executing the actual removal transaction. Validates tick
|
|
472
|
+
* spacing for the given fee tier before making the API call to ensure valid parameters.
|
|
473
|
+
*
|
|
474
|
+
* @param args - Liquidity removal estimation parameters
|
|
475
|
+
* @param args.token0 - First token identifier (pipe-delimited format: 'GALA|Unit|none|none')
|
|
476
|
+
* @param args.token1 - Second token identifier (pipe-delimited format)
|
|
477
|
+
* @param args.fee - Pool fee tier in basis points (500, 3000, or 10000)
|
|
478
|
+
* @param args.liquidity - Amount of liquidity to remove (string number from position.liquidity)
|
|
479
|
+
* @param args.tickLower - Lower tick boundary of the position
|
|
480
|
+
* @param args.tickUpper - Upper tick boundary of the position
|
|
481
|
+
* @param args.owner - Wallet address that owns the position (format: 'eth|0x...' or 'client|...')
|
|
482
|
+
* @returns Promise<GSwapEstimateRemoveLiquidityResult> Estimated token0 and token1 amounts to be received
|
|
483
|
+
* @throws {GSwapPositionError} If tick spacing invalid, parameters incorrect, or API request fails
|
|
484
|
+
* @since 4.0.4-beta.0
|
|
485
|
+
* @category Services
|
|
486
|
+
*
|
|
487
|
+
* @example Estimate removal before executing
|
|
488
|
+
* ```typescript
|
|
489
|
+
* // First, get the position details
|
|
490
|
+
* const position = await gswapService.getLiquidityPositionById(
|
|
491
|
+
* 'eth|0x1234...',
|
|
492
|
+
* 'position-uuid'
|
|
493
|
+
* );
|
|
494
|
+
*
|
|
495
|
+
* // Estimate what you'll receive from removing all liquidity
|
|
496
|
+
* const estimate = await gswapService.estimateRemoveLiquidity({
|
|
497
|
+
* token0: position.token0,
|
|
498
|
+
* token1: position.token1,
|
|
499
|
+
* fee: position.feeTier,
|
|
500
|
+
* liquidity: position.liquidity, // Remove all liquidity
|
|
501
|
+
* tickLower: position.tickLower,
|
|
502
|
+
* tickUpper: position.tickUpper,
|
|
503
|
+
* owner: 'eth|0x1234...'
|
|
504
|
+
* });
|
|
505
|
+
*
|
|
506
|
+
* console.log(`Removing liquidity will return:`);
|
|
507
|
+
* console.log(` Token0: ${estimate.amount0}`);
|
|
508
|
+
* console.log(` Token1: ${estimate.amount1}`);
|
|
509
|
+
*
|
|
510
|
+
* // Then execute actual removal if amounts look good
|
|
511
|
+
* const result = await gswapService.removeLiquidity({
|
|
512
|
+
* token0: position.token0,
|
|
513
|
+
* token1: position.token1,
|
|
514
|
+
* fee: position.feeTier,
|
|
515
|
+
* liquidity: position.liquidity,
|
|
516
|
+
* tickLower: position.tickLower,
|
|
517
|
+
* tickUpper: position.tickUpper
|
|
518
|
+
* });
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
estimateRemoveLiquidity(args: {
|
|
522
|
+
token0: string;
|
|
523
|
+
token1: string;
|
|
524
|
+
fee: number;
|
|
525
|
+
liquidity: string;
|
|
526
|
+
tickLower: number;
|
|
527
|
+
tickUpper: number;
|
|
528
|
+
owner: string;
|
|
529
|
+
}): Promise<GSwapEstimateRemoveLiquidityResult>;
|
|
530
|
+
/**
|
|
531
|
+
* Add concentrated liquidity to a DEX pool using user-friendly price ranges
|
|
532
|
+
*
|
|
533
|
+
* Creates a new liquidity position in a GalaSwap concentrated liquidity pool by specifying minimum
|
|
534
|
+
* and maximum prices instead of raw tick values. Automatically converts price ranges to tick boundaries
|
|
535
|
+
* using the pool's tick spacing, submits the transaction via bundler, and monitors confirmation via
|
|
536
|
+
* WebSocket. Returns a result object with transaction details and an optional wait() method for
|
|
537
|
+
* tracking on-chain confirmation.
|
|
538
|
+
*
|
|
539
|
+
* @param args - Liquidity addition parameters with price range
|
|
540
|
+
* @param args.token0 - First token identifier (pipe-delimited format: 'GALA|Unit|none|none')
|
|
541
|
+
* @param args.token1 - Second token identifier (pipe-delimited format)
|
|
542
|
+
* @param args.fee - Pool fee tier in basis points (500 = 0.05%, 3000 = 0.30%, 10000 = 1.00%)
|
|
543
|
+
* @param args.minPrice - Minimum price for the liquidity range (string number, token1 per token0)
|
|
544
|
+
* @param args.maxPrice - Maximum price for the liquidity range (string number, token1 per token0)
|
|
545
|
+
* @param args.amount0Desired - Desired amount of token0 to deposit (string number)
|
|
546
|
+
* @param args.amount1Desired - Desired amount of token1 to deposit (string number)
|
|
547
|
+
* @param args.amount0Min - Optional minimum amount0 to accept (default: '0')
|
|
548
|
+
* @param args.amount1Min - Optional minimum amount1 to accept (default: '0')
|
|
549
|
+
* @returns Promise<GSwapAddLiquidityResult> Transaction result with positionId, liquidity amounts, status, and wait() helper
|
|
550
|
+
* @throws {Error} If private key not available, wallet address missing, or transaction fails
|
|
551
|
+
* @since 4.0.4-beta.0
|
|
552
|
+
* @category Services
|
|
553
|
+
*
|
|
554
|
+
* @example Add liquidity with price range (user-friendly approach)
|
|
555
|
+
* ```typescript
|
|
556
|
+
* // Add liquidity to GALA/GUSDC pool with price range $0.025 to $0.035
|
|
557
|
+
* const result = await gswapService.addLiquidityByPrice({
|
|
558
|
+
* token0: 'GALA|Unit|none|none',
|
|
559
|
+
* token1: 'GUSDC|Unit|none|none',
|
|
560
|
+
* fee: 3000, // 0.30% fee tier
|
|
561
|
+
* minPrice: '0.025', // Minimum price: $0.025 per GALA
|
|
562
|
+
* maxPrice: '0.035', // Maximum price: $0.035 per GALA
|
|
563
|
+
* amount0Desired: '1000', // Deposit up to 1000 GALA
|
|
564
|
+
* amount1Desired: '30', // Deposit up to 30 GUSDC
|
|
565
|
+
* amount0Min: '900', // Accept minimum 900 GALA
|
|
566
|
+
* amount1Min: '25' // Accept minimum 25 GUSDC
|
|
567
|
+
* });
|
|
568
|
+
*
|
|
569
|
+
* console.log(`Position created: ${result.positionId}`);
|
|
570
|
+
* console.log(`Transaction: ${result.transactionId}`);
|
|
571
|
+
*
|
|
572
|
+
* // Wait for on-chain confirmation
|
|
573
|
+
* await result.wait?.();
|
|
574
|
+
* console.log(`Position confirmed with liquidity: ${result.liquidity}`);
|
|
575
|
+
* ```
|
|
576
|
+
*/
|
|
577
|
+
addLiquidityByPrice(args: {
|
|
578
|
+
token0: string;
|
|
579
|
+
token1: string;
|
|
580
|
+
fee: number;
|
|
581
|
+
minPrice: string;
|
|
582
|
+
maxPrice: string;
|
|
583
|
+
amount0Desired: string;
|
|
584
|
+
amount1Desired: string;
|
|
585
|
+
amount0Min?: string;
|
|
586
|
+
amount1Min?: string;
|
|
587
|
+
}): Promise<GSwapAddLiquidityResult & {
|
|
588
|
+
timestamp?: Date;
|
|
589
|
+
wait?: (timeoutMs?: number) => Promise<void>;
|
|
590
|
+
}>;
|
|
591
|
+
/**
|
|
592
|
+
* Add concentrated liquidity to a DEX pool using precise tick boundaries (advanced)
|
|
593
|
+
*
|
|
594
|
+
* Creates a new liquidity position in a GalaSwap concentrated liquidity pool using raw tick
|
|
595
|
+
* boundaries instead of price ranges. This advanced method gives precise control over position
|
|
596
|
+
* range but requires understanding of Uniswap V3 tick mechanics and tick spacing constraints.
|
|
597
|
+
* Automatically connects WebSocket before transaction submission to prevent missed confirmations,
|
|
598
|
+
* then monitors position discovery with retry logic to handle indexing delays.
|
|
599
|
+
*
|
|
600
|
+
* @param args - Liquidity addition parameters with tick boundaries
|
|
601
|
+
* @param args.token0 - First token (pipe-delimited string or TokenClassKey object)
|
|
602
|
+
* @param args.token1 - Second token (pipe-delimited string or TokenClassKey object)
|
|
603
|
+
* @param args.fee - Pool fee tier in basis points (500 = 0.05%, 3000 = 0.30%, 10000 = 1.00%)
|
|
604
|
+
* @param args.tickLower - Lower tick boundary (must be multiple of tickSpacing, supports negative values)
|
|
605
|
+
* @param args.tickUpper - Upper tick boundary (must be multiple of tickSpacing)
|
|
606
|
+
* @param args.amount0Desired - Desired amount of token0 to deposit (string number)
|
|
607
|
+
* @param args.amount1Desired - Desired amount of token1 to deposit (string number)
|
|
608
|
+
* @param args.amount0Min - Optional minimum amount0 to accept (default: '0')
|
|
609
|
+
* @param args.amount1Min - Optional minimum amount1 to accept (default: '0')
|
|
610
|
+
* @returns Promise<GSwapAddLiquidityResult> Transaction result with positionId, liquidity amounts, status, and wait() helper
|
|
611
|
+
* @throws {Error} If private key not available, wallet address missing, tick spacing invalid, or transaction fails
|
|
612
|
+
* @since 4.0.4-beta.0
|
|
613
|
+
* @category Services
|
|
614
|
+
*
|
|
615
|
+
* @example Add liquidity with precise tick range (advanced users)
|
|
616
|
+
* ```typescript
|
|
617
|
+
* // Add liquidity to GALA/GUSDC pool with exact tick boundaries
|
|
618
|
+
* // Tick spacing for fee=3000 (0.30%) is 60, so ticks must be multiples of 60
|
|
619
|
+
* const result = await gswapService.addSwapLiquidityByTicks({
|
|
620
|
+
* token0: 'GALA|Unit|none|none',
|
|
621
|
+
* token1: 'GUSDC|Unit|none|none',
|
|
622
|
+
* fee: 3000, // 0.30% fee tier → tickSpacing=60
|
|
623
|
+
* tickLower: -276360, // Must be multiple of 60
|
|
624
|
+
* tickUpper: -276240, // Must be multiple of 60
|
|
625
|
+
* amount0Desired: '1000',
|
|
626
|
+
* amount1Desired: '30',
|
|
627
|
+
* amount0Min: '900',
|
|
628
|
+
* amount1Min: '25'
|
|
629
|
+
* });
|
|
630
|
+
*
|
|
631
|
+
* console.log(`Position ${result.positionId} created`);
|
|
632
|
+
* console.log(`Liquidity: ${result.liquidity}`);
|
|
633
|
+
*
|
|
634
|
+
* // Wait for on-chain confirmation
|
|
635
|
+
* await result.wait?.();
|
|
636
|
+
* console.log(`Position confirmed: ${result.status}`);
|
|
637
|
+
* ```
|
|
638
|
+
*
|
|
639
|
+
* @example Tick spacing constraints by fee tier
|
|
640
|
+
* ```typescript
|
|
641
|
+
* // Fee tier determines required tick spacing:
|
|
642
|
+
* // - Fee 500 (0.05%): tickSpacing = 10
|
|
643
|
+
* // - Fee 3000 (0.30%): tickSpacing = 60
|
|
644
|
+
* // - Fee 10000 (1.00%): tickSpacing = 200
|
|
645
|
+
*
|
|
646
|
+
* // Valid ticks for fee=3000: -276360, -276300, -276240, etc.
|
|
647
|
+
* // Invalid: -276350 (not multiple of 60)
|
|
648
|
+
* ```
|
|
649
|
+
*/
|
|
650
|
+
addSwapLiquidityByTicks(args: {
|
|
651
|
+
token0: string | TokenClassKey;
|
|
652
|
+
token1: string | TokenClassKey;
|
|
653
|
+
fee: number;
|
|
654
|
+
tickLower: number;
|
|
655
|
+
tickUpper: number;
|
|
656
|
+
amount0Desired: string;
|
|
657
|
+
amount1Desired: string;
|
|
658
|
+
amount0Min?: string;
|
|
659
|
+
amount1Min?: string;
|
|
660
|
+
}): Promise<GSwapAddLiquidityResult & {
|
|
661
|
+
timestamp?: Date;
|
|
662
|
+
wait?: (timeoutMs?: number) => Promise<void>;
|
|
663
|
+
}>;
|
|
664
|
+
/**
|
|
665
|
+
* Monitor a bundler transaction with graceful fallback on timeout
|
|
666
|
+
*
|
|
667
|
+
* **Pattern Overview**
|
|
668
|
+
* This helper consolidates the common error handling pattern used by all bundler-direct
|
|
669
|
+
* operations (removeSwapLiquidity, collectSwapPositionFees, etc.):
|
|
670
|
+
*
|
|
671
|
+
* 1. Set up WebSocket listener BEFORE bundler submission (already done by caller)
|
|
672
|
+
* 2. Try to await transaction confirmation via WebSocket
|
|
673
|
+
* 3. If timeout occurs: Return partial result with status: 'SUBMITTED'
|
|
674
|
+
* 4. If successful: Return confirmed result with on-chain status
|
|
675
|
+
* 5. Both cases include a .wait() method for retry/manual monitoring
|
|
676
|
+
*
|
|
677
|
+
* **Why This Pattern Matters**
|
|
678
|
+
* - Prevents race conditions (listener active before transaction confirmation)
|
|
679
|
+
* - Handles network timeouts gracefully (users still get transaction ID)
|
|
680
|
+
* - Provides flexibility (users can call .wait() again if needed)
|
|
681
|
+
* - Consistent error handling across all bundler operations
|
|
682
|
+
*
|
|
683
|
+
* @param transactionId Transaction ID from bundler submission
|
|
684
|
+
* @param transactionPromise WebSocket monitoring promise (already created before bundler call)
|
|
685
|
+
* @param operationName Operation name for logging context (e.g., 'liquidity removal')
|
|
686
|
+
* @returns Bundler operation result with status and wait() method
|
|
687
|
+
* @private
|
|
688
|
+
*/
|
|
689
|
+
private monitorBundlerTransaction;
|
|
690
|
+
/**
|
|
691
|
+
* Remove liquidity from an existing concentrated liquidity position (partial or complete)
|
|
692
|
+
*
|
|
693
|
+
* Withdraws liquidity from a GalaSwap concentrated liquidity position, returning the underlying
|
|
694
|
+
* token0 and token1 amounts to your wallet. Supports both partial removal (reduce position size)
|
|
695
|
+
* and complete removal (close position). Validates liquidity amount to prevent zero-value removals
|
|
696
|
+
* that would waste gas fees. Automatically connects WebSocket before transaction submission to
|
|
697
|
+
* monitor confirmation, with graceful timeout handling if monitoring fails.
|
|
698
|
+
*
|
|
699
|
+
* @param args - Liquidity removal parameters
|
|
700
|
+
* @param args.token0 - First token (pipe-delimited string or TokenClassKey object)
|
|
701
|
+
* @param args.token1 - Second token (pipe-delimited string or TokenClassKey object)
|
|
702
|
+
* @param args.fee - Pool fee tier in basis points (500 = 0.05%, 3000 = 0.30%, 10000 = 1.00%)
|
|
703
|
+
* @param args.tickLower - Lower tick boundary of the position
|
|
704
|
+
* @param args.tickUpper - Upper tick boundary of the position
|
|
705
|
+
* @param args.liquidity - Amount of liquidity to remove (must be > 0, use position.liquidity for full removal)
|
|
706
|
+
* @param args.amount0Min - Optional minimum token0 to accept for slippage protection (default: '0')
|
|
707
|
+
* @param args.amount1Min - Optional minimum token1 to accept for slippage protection (default: '0')
|
|
708
|
+
* @param args.positionId - Optional position ID for tracking and error messaging
|
|
709
|
+
* @returns Promise<GSwapAddLiquidityResult> Transaction result with transactionId, status, timestamp, and wait() helper
|
|
710
|
+
* @throws {Error} If private key not available, liquidity is zero, or transaction fails
|
|
711
|
+
* @since 4.0.4-beta.0
|
|
712
|
+
* @category Services
|
|
713
|
+
*
|
|
714
|
+
* @example Remove 50% of liquidity from a position (partial removal)
|
|
715
|
+
* ```typescript
|
|
716
|
+
* // Step 1: Get position details
|
|
717
|
+
* const positions = await gswapService.getUserLiquidityPositions('eth|0x1234...');
|
|
718
|
+
* const position = positions.items[0];
|
|
719
|
+
*
|
|
720
|
+
* // Step 2: Calculate 50% of liquidity to remove
|
|
721
|
+
* const halfLiquidity = (parseFloat(position.liquidity) * 0.5).toString();
|
|
722
|
+
*
|
|
723
|
+
* // Step 3: Remove partial liquidity
|
|
724
|
+
* const result = await gswapService.removeLiquidity({
|
|
725
|
+
* token0: position.token0,
|
|
726
|
+
* token1: position.token1,
|
|
727
|
+
* fee: position.feeTier,
|
|
728
|
+
* tickLower: position.tickLower,
|
|
729
|
+
* tickUpper: position.tickUpper,
|
|
730
|
+
* liquidity: halfLiquidity,
|
|
731
|
+
* amount0Min: '0', // Accept any amount (consider slippage for production)
|
|
732
|
+
* amount1Min: '0',
|
|
733
|
+
* positionId: position.positionId
|
|
734
|
+
* });
|
|
735
|
+
*
|
|
736
|
+
* console.log(`Removed half liquidity: ${result.transactionId}`);
|
|
737
|
+
* await result.wait?.();
|
|
738
|
+
* ```
|
|
739
|
+
*
|
|
740
|
+
* @example Remove all liquidity to close position (complete removal)
|
|
741
|
+
* ```typescript
|
|
742
|
+
* // Close position completely by removing all liquidity
|
|
743
|
+
* const result = await gswapService.removeLiquidity({
|
|
744
|
+
* token0: 'GALA|Unit|none|none',
|
|
745
|
+
* token1: 'GUSDC|Unit|none|none',
|
|
746
|
+
* fee: 3000,
|
|
747
|
+
* tickLower: -276360,
|
|
748
|
+
* tickUpper: -276240,
|
|
749
|
+
* liquidity: position.liquidity, // Remove ALL liquidity
|
|
750
|
+
* positionId: position.positionId
|
|
751
|
+
* });
|
|
752
|
+
*
|
|
753
|
+
* console.log(`Position closed: ${result.status}`);
|
|
754
|
+
* ```
|
|
755
|
+
*/
|
|
756
|
+
removeLiquidity(args: {
|
|
757
|
+
token0: string | TokenClassKey;
|
|
758
|
+
token1: string | TokenClassKey;
|
|
759
|
+
fee: number;
|
|
760
|
+
tickLower: number;
|
|
761
|
+
tickUpper: number;
|
|
762
|
+
liquidity: string;
|
|
763
|
+
amount0Min?: string;
|
|
764
|
+
amount1Min?: string;
|
|
765
|
+
positionId?: string;
|
|
766
|
+
}): Promise<GSwapAddLiquidityResult>;
|
|
767
|
+
/**
|
|
768
|
+
* Collect accumulated trading fees from a concentrated liquidity position (partial or complete)
|
|
769
|
+
*
|
|
770
|
+
* Claims trading fees that have accumulated in your liquidity position without affecting the
|
|
771
|
+
* position's liquidity. Fees only accumulate when your position is in-range (current price within
|
|
772
|
+
* your tick boundaries) and trades execute in that range. Supports collecting all fees at once
|
|
773
|
+
* (default with '0' amounts) or specific amounts for capital management strategies. Automatically
|
|
774
|
+
* connects WebSocket before transaction submission to monitor confirmation.
|
|
775
|
+
*
|
|
776
|
+
* @param args - Fee collection parameters (supports two patterns: direct parameters or position lookup)
|
|
777
|
+
* @param args.token0 - First token (pipe-delimited string or TokenClassKey, required unless using ownerAddress pattern)
|
|
778
|
+
* @param args.token1 - Second token (pipe-delimited string or TokenClassKey, required unless using ownerAddress pattern)
|
|
779
|
+
* @param args.fee - Pool fee tier in basis points (500, 3000, or 10000, required unless using ownerAddress pattern)
|
|
780
|
+
* @param args.tickLower - Lower tick boundary of the position (required unless using ownerAddress pattern)
|
|
781
|
+
* @param args.tickUpper - Upper tick boundary of the position (required unless using ownerAddress pattern)
|
|
782
|
+
* @param args.amount0Requested - Optional token0 fee amount to collect (default: '0' = collect all)
|
|
783
|
+
* @param args.amount1Requested - Optional token1 fee amount to collect (default: '0' = collect all)
|
|
784
|
+
* @param args.positionId - Optional position ID for tracking and verification
|
|
785
|
+
* @param args.ownerAddress - Alternative pattern: fetch position details first using this address and positionId
|
|
786
|
+
* @param args.amount0Max - Alternative naming for amount0Requested (MCP tool compatibility)
|
|
787
|
+
* @param args.amount1Max - Alternative naming for amount1Requested (MCP tool compatibility)
|
|
788
|
+
* @returns Promise<GSwapAddLiquidityResult> Transaction result with transactionId, status, timestamp, and wait() helper
|
|
789
|
+
* @throws {Error} If private key not available, position not found, or transaction fails
|
|
790
|
+
* @since 4.0.4-beta.0
|
|
791
|
+
* @category Services
|
|
792
|
+
*
|
|
793
|
+
* @example Collect all accumulated fees from a position
|
|
794
|
+
* ```typescript
|
|
795
|
+
* // Step 1: Get position details to check accumulated fees
|
|
796
|
+
* const positions = await gswapService.getUserLiquidityPositions('eth|0x1234...');
|
|
797
|
+
* const position = positions.items[0];
|
|
798
|
+
*
|
|
799
|
+
* console.log(`Token0 fees: ${position.feeAmount0}`);
|
|
800
|
+
* console.log(`Token1 fees: ${position.feeAmount1}`);
|
|
801
|
+
*
|
|
802
|
+
* // Step 2: Collect all fees if there are any
|
|
803
|
+
* if (parseFloat(position.feeAmount0) > 0 || parseFloat(position.feeAmount1) > 0) {
|
|
804
|
+
* const result = await gswapService.collectPositionFees({
|
|
805
|
+
* token0: position.token0,
|
|
806
|
+
* token1: position.token1,
|
|
807
|
+
* fee: position.feeTier,
|
|
808
|
+
* tickLower: position.tickLower,
|
|
809
|
+
* tickUpper: position.tickUpper,
|
|
810
|
+
* amount0Requested: '0', // '0' means collect ALL token0 fees
|
|
811
|
+
* amount1Requested: '0', // '0' means collect ALL token1 fees
|
|
812
|
+
* positionId: position.positionId
|
|
813
|
+
* });
|
|
814
|
+
*
|
|
815
|
+
* console.log(`Fee collection submitted: ${result.transactionId}`);
|
|
816
|
+
* await result.wait?.();
|
|
817
|
+
* console.log('All fees collected successfully');
|
|
818
|
+
* }
|
|
819
|
+
* ```
|
|
820
|
+
*
|
|
821
|
+
* @example Collect fees using position lookup pattern (MCP tool compatible)
|
|
822
|
+
* ```typescript
|
|
823
|
+
* // Alternative pattern that fetches position details automatically
|
|
824
|
+
* const result = await gswapService.collectPositionFees({
|
|
825
|
+
* ownerAddress: 'eth|0x1234...',
|
|
826
|
+
* positionId: 'position-uuid',
|
|
827
|
+
* amount0Max: '0', // Collect all token0 fees (MCP naming)
|
|
828
|
+
* amount1Max: '0' // Collect all token1 fees (MCP naming)
|
|
829
|
+
* });
|
|
830
|
+
*
|
|
831
|
+
* console.log(`Fees collected: ${result.status}`);
|
|
832
|
+
* ```
|
|
833
|
+
*/
|
|
834
|
+
collectPositionFees(args: {
|
|
835
|
+
token0?: string | TokenClassKey;
|
|
836
|
+
token1?: string | TokenClassKey;
|
|
837
|
+
fee?: number;
|
|
838
|
+
tickLower?: number;
|
|
839
|
+
tickUpper?: number;
|
|
840
|
+
amount0Requested?: string;
|
|
841
|
+
amount1Requested?: string;
|
|
842
|
+
positionId?: string;
|
|
843
|
+
ownerAddress?: string;
|
|
844
|
+
amount0Max?: string;
|
|
845
|
+
amount1Max?: string;
|
|
846
|
+
}): Promise<GSwapAddLiquidityResult>;
|
|
847
|
+
/**
|
|
848
|
+
* Get real-time pool state with liquidity depth and current price
|
|
849
|
+
* @param tokenA First token symbol (e.g., 'GALA')
|
|
850
|
+
* @param tokenB Second token symbol (e.g., 'GUSDC')
|
|
851
|
+
* @param feeTier Fee tier (500, 3000, or 10000 basis points)
|
|
852
|
+
* @returns Pool data with liquidity, current tick, and price
|
|
853
|
+
*/
|
|
854
|
+
getPoolData(tokenA: string, tokenB: string, feeTier: number): Promise<{
|
|
855
|
+
tokenA: string;
|
|
856
|
+
tokenB: string;
|
|
857
|
+
feeTier: number;
|
|
858
|
+
liquidity: string;
|
|
859
|
+
sqrtPriceX96: string;
|
|
860
|
+
tick: number;
|
|
861
|
+
feeGrowthGlobal0X128: string;
|
|
862
|
+
feeGrowthGlobal1X128: string;
|
|
863
|
+
currentPrice: string;
|
|
864
|
+
}>;
|
|
865
|
+
/**
|
|
866
|
+
* Calculate current market price for a token pair from DEX pool
|
|
867
|
+
* @param tokenA First token symbol
|
|
868
|
+
* @param tokenB Second token symbol
|
|
869
|
+
* @param feeTier Fee tier (500, 3000, or 10000 basis points)
|
|
870
|
+
* @returns Current spot price without executing trade
|
|
871
|
+
*/
|
|
872
|
+
calculateDexPoolSpotPrice(tokenA: string, tokenB: string, feeTier: number): Promise<{
|
|
873
|
+
tokenA: string;
|
|
874
|
+
tokenB: string;
|
|
875
|
+
feeTier: number;
|
|
876
|
+
price: string;
|
|
877
|
+
invertedPrice: string;
|
|
878
|
+
tick: number;
|
|
879
|
+
liquidity: string;
|
|
880
|
+
}>;
|
|
881
|
+
/**
|
|
882
|
+
* Calculate optimal token amounts for concentrated liquidity position
|
|
883
|
+
* @param tokenA First token symbol
|
|
884
|
+
* @param tokenB Second token symbol
|
|
885
|
+
* @param feeTier Fee tier (500, 3000, or 10000 basis points)
|
|
886
|
+
* @param desiredAmount0 Desired amount of token A
|
|
887
|
+
* @param desiredAmount1 Desired amount of token B
|
|
888
|
+
* @param tickLower Lower tick boundary
|
|
889
|
+
* @param tickUpper Upper tick boundary
|
|
890
|
+
* @returns Optimal amounts and utilization percentages
|
|
891
|
+
*/
|
|
892
|
+
calculateOptimalPositionSize(tokenA: string, tokenB: string, feeTier: number, desiredAmount0: string, desiredAmount1: string, tickLower: number, tickUpper: number): Promise<{
|
|
893
|
+
amount0: string;
|
|
894
|
+
amount1: string;
|
|
895
|
+
liquidity: string;
|
|
896
|
+
ratio: string;
|
|
897
|
+
utilizationPercent: {
|
|
898
|
+
amount0: string;
|
|
899
|
+
amount1: string;
|
|
900
|
+
};
|
|
901
|
+
}>;
|
|
902
|
+
/**
|
|
903
|
+
* Validate liquidity position parameters before creation
|
|
904
|
+
* @param tokenA First token symbol
|
|
905
|
+
* @param tokenB Second token symbol
|
|
906
|
+
* @param feeTier Fee tier (500, 3000, or 10000 basis points)
|
|
907
|
+
* @param tickLower Lower tick boundary
|
|
908
|
+
* @param tickUpper Upper tick boundary
|
|
909
|
+
* @param amount0 Token A amount
|
|
910
|
+
* @param amount1 Token B amount
|
|
911
|
+
* @returns Validation result with errors and warnings
|
|
912
|
+
*/
|
|
913
|
+
validatePositionParameters(tokenA: string, tokenB: string, feeTier: number, tickLower: number, tickUpper: number, amount0: string, amount1: string): Promise<{
|
|
914
|
+
valid: boolean;
|
|
915
|
+
errors: string[];
|
|
916
|
+
warnings: string[];
|
|
917
|
+
gasEstimate: number;
|
|
918
|
+
tickSpacing?: number;
|
|
919
|
+
currentTick?: number;
|
|
920
|
+
poolLiquidity?: string;
|
|
921
|
+
}>;
|
|
922
|
+
/**
|
|
923
|
+
* Convert human-readable price range to tick boundaries
|
|
924
|
+
* @param tokenA First token symbol
|
|
925
|
+
* @param tokenB Second token symbol
|
|
926
|
+
* @param minPrice Minimum price boundary
|
|
927
|
+
* @param maxPrice Maximum price boundary
|
|
928
|
+
* @param feeTier Fee tier (500, 3000, or 10000 basis points)
|
|
929
|
+
* @returns Calculated tick boundaries and price deviations
|
|
930
|
+
*/
|
|
931
|
+
calculateTicksForPrice(tokenA: string, tokenB: string, minPrice: string, maxPrice: string, feeTier: number): {
|
|
932
|
+
tokenA: string;
|
|
933
|
+
tokenB: string;
|
|
934
|
+
feeTier: number;
|
|
935
|
+
tickLower: number;
|
|
936
|
+
tickUpper: number;
|
|
937
|
+
tickSpacing: number;
|
|
938
|
+
requestedMinPrice: string;
|
|
939
|
+
requestedMaxPrice: string;
|
|
940
|
+
actualMinPrice: string;
|
|
941
|
+
actualMaxPrice: string;
|
|
942
|
+
priceDeviation: {
|
|
943
|
+
minPriceDeviation: string;
|
|
944
|
+
maxPriceDeviation: string;
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
* Convert tick boundaries back to human-readable prices
|
|
949
|
+
* @param tokenA First token symbol
|
|
950
|
+
* @param tokenB Second token symbol
|
|
951
|
+
* @param tickLower Lower tick boundary
|
|
952
|
+
* @param tickUpper Upper tick boundary
|
|
953
|
+
* @returns Price range and current price
|
|
954
|
+
*/
|
|
955
|
+
calculatePriceForTicks(tokenA: string, tokenB: string, tickLower: number, tickUpper: number): Promise<{
|
|
956
|
+
tokenA: string;
|
|
957
|
+
tokenB: string;
|
|
958
|
+
tickLower: number;
|
|
959
|
+
tickUpper: number;
|
|
960
|
+
minPrice: string;
|
|
961
|
+
maxPrice: string;
|
|
962
|
+
currentPrice?: string;
|
|
963
|
+
priceRange?: string;
|
|
964
|
+
tickSpread?: number;
|
|
965
|
+
}>;
|
|
966
|
+
/**
|
|
967
|
+
* Calculate execution price (output per unit input)
|
|
968
|
+
*/
|
|
969
|
+
private calculateExecutionPrice;
|
|
970
|
+
/**
|
|
971
|
+
* Get tick spacing for a given fee tier (Uniswap v3 standard)
|
|
972
|
+
* @private
|
|
973
|
+
*/
|
|
974
|
+
private getTickSpacing;
|
|
975
|
+
/**
|
|
976
|
+
* Validate that tick values are valid multiples of the tick spacing for the given fee tier
|
|
977
|
+
* @param tickLower - Lower tick boundary
|
|
978
|
+
* @param tickUpper - Upper tick boundary
|
|
979
|
+
* @param feeTier - Fee tier (500, 3000, or 10000)
|
|
980
|
+
* @throws Error if ticks are not valid multiples of tick spacing
|
|
981
|
+
* @private
|
|
982
|
+
*/
|
|
983
|
+
private validateTickSpacing;
|
|
984
|
+
/**
|
|
985
|
+
* Calculate price from sqrtPriceX96 format (Uniswap v3 standard)
|
|
986
|
+
* price = (sqrtPriceX96 / 2^96)^2
|
|
987
|
+
* @private
|
|
988
|
+
*/
|
|
989
|
+
private calculatePriceFromSqrtPriceX96;
|
|
990
|
+
/**
|
|
991
|
+
* Calculate price from sqrtPrice in decimal format (GetSlot0 API)
|
|
992
|
+
* Different from sqrtPriceX96 - GetSlot0 returns already-decoded decimal
|
|
993
|
+
* Formula: price = sqrtPrice²
|
|
994
|
+
* @private
|
|
995
|
+
*/
|
|
996
|
+
private calculatePriceFromSqrtPriceDecimal;
|
|
997
|
+
/**
|
|
998
|
+
* Get current pool state (slot0 data) for a token pair
|
|
999
|
+
* Fetches sqrtPrice, tick, and liquidity from GalaChain Gateway
|
|
1000
|
+
* @param token0 First token symbol or TokenClassKey
|
|
1001
|
+
* Accepts: "GALA" (plain), "GALA|Unit|none|none" (pipe), "GALA$Unit$none$none" (dollar)
|
|
1002
|
+
* @param token1 Second token symbol or TokenClassKey
|
|
1003
|
+
* Accepts: "GALA" (plain), "GALA|Unit|none|none" (pipe), "GALA$Unit$none$none" (dollar)
|
|
1004
|
+
* @param fee Fee tier in basis points (500, 3000, 10000)
|
|
1005
|
+
* @returns PoolSlot0Data with current sqrtPrice, tick, liquidity, and feeGrowth
|
|
1006
|
+
*/
|
|
1007
|
+
getPoolSlot0(token0: string | TokenClassKey, token1: string | TokenClassKey, fee: number): Promise<PoolSlot0Data>;
|
|
1008
|
+
/**
|
|
1009
|
+
* Get current price for a liquidity position's pool
|
|
1010
|
+
* Fetches slot0 data and calculates token0/token1 price ratio
|
|
1011
|
+
* @param position Position token pair and fee tier
|
|
1012
|
+
*/
|
|
1013
|
+
getPositionCurrentPrice(position: {
|
|
1014
|
+
token0: string;
|
|
1015
|
+
token1: string;
|
|
1016
|
+
feeTier: number;
|
|
1017
|
+
}): Promise<PoolPriceData>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Calculate liquidity from amount0 (Uniswap v3 math)
|
|
1020
|
+
* Uses @gala-chain/dex liquidity0() function for production-accurate calculation
|
|
1021
|
+
* @private
|
|
1022
|
+
*/
|
|
1023
|
+
private _calculateLiquidityFromAmount0;
|
|
1024
|
+
/**
|
|
1025
|
+
* Calculate liquidity from amount1 (Uniswap v3 math)
|
|
1026
|
+
* Uses @gala-chain/dex liquidity1() function for production-accurate calculation
|
|
1027
|
+
* @private
|
|
1028
|
+
*/
|
|
1029
|
+
private _calculateLiquidityFromAmount1;
|
|
1030
|
+
/**
|
|
1031
|
+
* Calculate amount0 from liquidity (Uniswap v3 math)
|
|
1032
|
+
* Uses @gala-chain/dex getAmount0Delta() function for production-accurate calculation
|
|
1033
|
+
* @private
|
|
1034
|
+
*/
|
|
1035
|
+
private _calculateAmount0FromLiquidity;
|
|
1036
|
+
/**
|
|
1037
|
+
* Calculate amount1 from liquidity (Uniswap v3 math)
|
|
1038
|
+
* Uses @gala-chain/dex getAmount1Delta() function for production-accurate calculation
|
|
1039
|
+
* @private
|
|
1040
|
+
*/
|
|
1041
|
+
private _calculateAmount1FromLiquidity;
|
|
1042
|
+
/**
|
|
1043
|
+
* Convert a token pair from Launchpad format to GSwap format
|
|
1044
|
+
*
|
|
1045
|
+
* Converts both tokens in a pair simultaneously for cleaner, more readable code
|
|
1046
|
+
* when working with token swaps and pool queries.
|
|
1047
|
+
*
|
|
1048
|
+
* @param token0 - First token in any supported format
|
|
1049
|
+
* @param token1 - Second token in any supported format
|
|
1050
|
+
* @returns Object with converted tokens as gswapToken0 and gswapToken1
|
|
1051
|
+
*
|
|
1052
|
+
* @private
|
|
1053
|
+
*/
|
|
1054
|
+
private convertTokenPair;
|
|
1055
|
+
/**
|
|
1056
|
+
* Send AddLiquidity transaction directly to bundler (bypassing gswap-sdk)
|
|
1057
|
+
*
|
|
1058
|
+
* Creates a liquidity position by signing a DTO and posting it directly to the
|
|
1059
|
+
* GalaChain bundler. This method replaces the gswap-sdk wrapper with a direct
|
|
1060
|
+
* implementation following the same pattern as CreateSale.
|
|
1061
|
+
*
|
|
1062
|
+
* @param params - AddLiquidity parameters including token pair, fee, tick range, and amounts
|
|
1063
|
+
* @returns Transaction ID from bundler response
|
|
1064
|
+
* @throws Error if not in full-access mode or if bundler request fails
|
|
1065
|
+
*
|
|
1066
|
+
* @private
|
|
1067
|
+
*/
|
|
1068
|
+
private sendAddLiquidityToBundler;
|
|
1069
|
+
/**
|
|
1070
|
+
* Send RemoveLiquidity transaction directly to bundler
|
|
1071
|
+
*
|
|
1072
|
+
* Bypasses GSwap SDK and posts signed EIP-712 RemoveLiquidity DTO directly to bundler.
|
|
1073
|
+
* Supports full tick ranges including negative values.
|
|
1074
|
+
*
|
|
1075
|
+
* @param tickLower Lower tick boundary (int256, supports negative)
|
|
1076
|
+
* @param tickUpper Upper tick boundary (int256, supports negative)
|
|
1077
|
+
* @param amount Liquidity amount to remove
|
|
1078
|
+
* @param token0 First token class key
|
|
1079
|
+
* @param token1 Second token class key
|
|
1080
|
+
* @param fee Fee tier (500, 3000, or 10000)
|
|
1081
|
+
* @param amount0Min Minimum amount0 to receive (slippage protection)
|
|
1082
|
+
* @param amount1Min Minimum amount1 to receive (slippage protection)
|
|
1083
|
+
* @param positionId Unique position identifier
|
|
1084
|
+
* @returns Transaction ID from bundler response
|
|
1085
|
+
*
|
|
1086
|
+
* @private
|
|
1087
|
+
* @throws Error if signing or bundler submission fails
|
|
1088
|
+
*/
|
|
1089
|
+
private sendRemoveLiquidityToBundler;
|
|
1090
|
+
/**
|
|
1091
|
+
* Send CollectPositionFees transaction directly to bundler
|
|
1092
|
+
*
|
|
1093
|
+
* Bypasses GSwap SDK and posts signed EIP-712 CollectPositionFees DTO directly to bundler.
|
|
1094
|
+
* Collects accumulated trading fees from a liquidity position independently of the position itself.
|
|
1095
|
+
*
|
|
1096
|
+
* @param token0 First token class key
|
|
1097
|
+
* @param token1 Second token class key
|
|
1098
|
+
* @param fee Fee tier (500, 3000, or 10000)
|
|
1099
|
+
* @param amount0Requested Requested amount0 to collect (0 to collect all available)
|
|
1100
|
+
* @param amount1Requested Requested amount1 to collect (0 to collect all available)
|
|
1101
|
+
* @param tickLower Lower tick boundary (int256, supports negative)
|
|
1102
|
+
* @param tickUpper Upper tick boundary (int256, supports negative)
|
|
1103
|
+
* @param positionId Unique position identifier
|
|
1104
|
+
* @returns Transaction ID from bundler response
|
|
1105
|
+
*
|
|
1106
|
+
* @private
|
|
1107
|
+
* @throws Error if signing or bundler submission fails
|
|
1108
|
+
*/
|
|
1109
|
+
private sendCollectPositionFeesToBundler;
|
|
1110
|
+
/**
|
|
1111
|
+
* Send Swap transaction directly to bundler
|
|
1112
|
+
*
|
|
1113
|
+
* Bypasses GSwap SDK and posts signed EIP-712 Swap DTO directly to bundler.
|
|
1114
|
+
* Implements exact input swapping (sell exact amount of input token, receive output token).
|
|
1115
|
+
*
|
|
1116
|
+
* @param fromToken Input token (token being sold) in GSwap format
|
|
1117
|
+
* @param toToken Output token (token being bought) in GSwap format
|
|
1118
|
+
* @param inputAmount Amount of input token to sell
|
|
1119
|
+
* @param minOutput Minimum amount of output token to receive (slippage protection)
|
|
1120
|
+
* @param feeTier Fee tier (500, 3000, or 10000)
|
|
1121
|
+
* @param walletAddress Wallet address executing the swap
|
|
1122
|
+
* @returns Transaction ID from bundler response
|
|
1123
|
+
*
|
|
1124
|
+
* @private
|
|
1125
|
+
* @throws Error if signing or bundler submission fails
|
|
1126
|
+
*/
|
|
1127
|
+
private sendSwapToBundler;
|
|
1128
|
+
/**
|
|
1129
|
+
* Build strings instructions for AddLiquidity state locking
|
|
1130
|
+
*
|
|
1131
|
+
* Strings instructions are used by the bundler to lock the necessary state
|
|
1132
|
+
* fields during transaction execution. This ensures atomicity of the operation.
|
|
1133
|
+
*
|
|
1134
|
+
* @param token0 First token class key
|
|
1135
|
+
* @param token1 Second token class key
|
|
1136
|
+
* @param fee Fee tier (500, 3000, or 10000 basis points)
|
|
1137
|
+
* @param ownerAddress Wallet address creating the position
|
|
1138
|
+
* @returns Array of strings instructions for state locking
|
|
1139
|
+
*
|
|
1140
|
+
* @private
|
|
1141
|
+
*/
|
|
1142
|
+
private buildLiquidityStringsInstructions;
|
|
1143
|
+
/**
|
|
1144
|
+
* Create error handler for withErrorHandling wrapper
|
|
1145
|
+
* Provides a reusable error handler that logs and throws GSwap-specific errors
|
|
1146
|
+
*
|
|
1147
|
+
* @param ErrorClass - Error constructor (GSwapQuoteError, GSwapAssetError, etc.)
|
|
1148
|
+
* @param additionalFields - Optional context for error message
|
|
1149
|
+
* @returns Function that logs and throws appropriate error
|
|
1150
|
+
*
|
|
1151
|
+
* @private
|
|
1152
|
+
*/
|
|
1153
|
+
private createGSwapErrorHandler;
|
|
1154
|
+
/**
|
|
1155
|
+
* Handle GSwap SDK errors with consistent logging and error transformation
|
|
1156
|
+
*
|
|
1157
|
+
* Centralizes error handling for GSwap operations by:
|
|
1158
|
+
* 1. Logging the error with context
|
|
1159
|
+
* 2. Extracting error code from original error
|
|
1160
|
+
* 3. Creating typed GSwap error with standardized message
|
|
1161
|
+
*
|
|
1162
|
+
* @param logMessage - Message to log when error occurs
|
|
1163
|
+
* @param ErrorClass - Error constructor to throw (GSwapQuoteError, GSwapSwapError, etc.)
|
|
1164
|
+
* @param originalError - Original error from GSwap SDK
|
|
1165
|
+
* @param additionalFields - Optional additional context (e.g., { transactionHash: txHash })
|
|
1166
|
+
* @throws Throws instance of provided ErrorClass with formatted message
|
|
1167
|
+
*
|
|
1168
|
+
* @private
|
|
1169
|
+
*/
|
|
1170
|
+
private handleGSwapError;
|
|
1171
|
+
/**
|
|
1172
|
+
* Extract error code from GSwap SDK error
|
|
1173
|
+
*
|
|
1174
|
+
* Maps GSwapSDKError instances to standard error codes for consistent
|
|
1175
|
+
* error handling across SDK operations. Preserves error code information
|
|
1176
|
+
* from the original GSwap SDK error.
|
|
1177
|
+
*
|
|
1178
|
+
* @param error - Error thrown by GSwap SDK operations
|
|
1179
|
+
* @returns Error code string if available, undefined otherwise
|
|
1180
|
+
*
|
|
1181
|
+
* @private
|
|
1182
|
+
*/
|
|
1183
|
+
private extractGSwapErrorCode;
|
|
1184
|
+
/**
|
|
1185
|
+
* Ensure WebSocket connection is established before transaction monitoring
|
|
1186
|
+
*
|
|
1187
|
+
* Checks if WebSocketService is already connected, and connects if needed.
|
|
1188
|
+
* This prevents unnecessary connection attempts while ensuring transactions can be monitored.
|
|
1189
|
+
*
|
|
1190
|
+
* @private
|
|
1191
|
+
* @throws Error if connection fails
|
|
1192
|
+
*/
|
|
1193
|
+
private ensureWebSocketConnected;
|
|
1194
|
+
/**
|
|
1195
|
+
* Calculate personal sign prefix for GalaChain compatibility
|
|
1196
|
+
*
|
|
1197
|
+
* Builds the prefix string required by GalaChain for EIP-712 signing.
|
|
1198
|
+
* This matches the format used in production working payloads.
|
|
1199
|
+
*
|
|
1200
|
+
* @param payload The payload being signed
|
|
1201
|
+
* @returns Prefix string for signing
|
|
1202
|
+
*
|
|
1203
|
+
* @private
|
|
1204
|
+
*/
|
|
1205
|
+
private calculatePersonalSignPrefix;
|
|
1206
|
+
}
|
|
1207
|
+
//# sourceMappingURL=GSwapService.d.ts.map
|