@gala-chain/launchpad-sdk 5.0.4-beta.14 → 5.0.4-beta.15
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/README.md +66 -48
- package/README.md.bak +3174 -0
- package/dist/ai-docs.json +2 -2
- package/dist/index.browser.esm.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/LaunchpadSDK.d.ts +210 -97
- package/dist/src/LaunchpadSDK.d.ts.map +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +2 -2
- package/dist/src/api/LaunchpadAPI.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 +7 -3
- package/dist/src/auth/SessionAuthService.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/constants/endpoints.d.ts +78 -97
- package/dist/src/constants/endpoints.d.ts.map +1 -1
- package/dist/src/constants/version.generated.d.ts +1 -1
- package/dist/src/index.browser.d.ts +4 -1
- package/dist/src/index.browser.d.ts.map +1 -1
- package/dist/src/services/ApiKeyService.d.ts +12 -7
- package/dist/src/services/ApiKeyService.d.ts.map +1 -1
- package/dist/src/services/BanService.d.ts +8 -10
- package/dist/src/services/BanService.d.ts.map +1 -1
- package/dist/src/services/BridgeableTokenService.d.ts +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 +2 -3
- package/dist/src/services/ContentFlagService.d.ts.map +1 -1
- package/dist/src/services/DexPoolService.d.ts +7 -9
- package/dist/src/services/DexPoolService.d.ts.map +1 -1
- package/dist/src/services/GSwapAssetService.d.ts +17 -0
- package/dist/src/services/GSwapAssetService.d.ts.map +1 -1
- package/dist/src/services/GSwapService.d.ts +1 -1
- package/dist/src/services/GSwapService.d.ts.map +1 -1
- package/dist/src/services/ImageService.d.ts +0 -13
- package/dist/src/services/ImageService.d.ts.map +1 -1
- package/dist/src/services/LaunchpadService.d.ts +12 -19
- package/dist/src/services/LaunchpadService.d.ts.map +1 -1
- package/dist/src/services/MessagesService.d.ts +1 -1
- package/dist/src/services/MessagesService.d.ts.map +1 -1
- package/dist/src/services/ModeratorService.d.ts +11 -15
- package/dist/src/services/ModeratorService.d.ts.map +1 -1
- package/dist/src/services/OverseerService.d.ts +23 -21
- package/dist/src/services/OverseerService.d.ts.map +1 -1
- package/dist/src/services/PoolService.d.ts +14 -29
- package/dist/src/services/PoolService.d.ts.map +1 -1
- package/dist/src/services/PriceHistoryService.d.ts +10 -11
- package/dist/src/services/PriceHistoryService.d.ts.map +1 -1
- package/dist/src/services/StreamTokenServiceBase.d.ts +11 -9
- package/dist/src/services/StreamTokenServiceBase.d.ts.map +1 -1
- package/dist/src/services/StreamWebSocketService.d.ts +65 -0
- package/dist/src/services/StreamWebSocketService.d.ts.map +1 -1
- package/dist/src/services/StreamingService.d.ts.map +1 -1
- package/dist/src/services/TokenBanService.d.ts +7 -9
- package/dist/src/services/TokenBanService.d.ts.map +1 -1
- package/dist/src/services/TradeService.d.ts +15 -15
- package/dist/src/services/TradeService.d.ts.map +1 -1
- package/dist/src/services/UserService.d.ts +18 -21
- package/dist/src/services/UserService.d.ts.map +1 -1
- package/dist/src/services/WebSocketAdminService.d.ts +515 -0
- package/dist/src/services/WebSocketAdminService.d.ts.map +1 -0
- package/dist/src/services/WrappableTokenService.d.ts +1 -1
- package/dist/src/services/shared/pagination-helpers.d.ts +17 -18
- package/dist/src/services/shared/pagination-helpers.d.ts.map +1 -1
- package/dist/src/types/api-key.dto.d.ts +11 -11
- package/dist/src/types/api-key.dto.d.ts.map +1 -1
- package/dist/src/types/chat-messages.dto.d.ts +4 -4
- package/dist/src/types/chat-messages.dto.d.ts.map +1 -1
- package/dist/src/types/comments.dto.d.ts +5 -7
- package/dist/src/types/comments.dto.d.ts.map +1 -1
- package/dist/src/types/common.d.ts +5 -11
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/dex-pool.dto.d.ts +19 -7
- package/dist/src/types/dex-pool.dto.d.ts.map +1 -1
- package/dist/src/types/global-feed.dto.d.ts +196 -0
- package/dist/src/types/global-feed.dto.d.ts.map +1 -0
- package/dist/src/types/gswap.dto.d.ts +8 -2
- package/dist/src/types/gswap.dto.d.ts.map +1 -1
- package/dist/src/types/launchpad.dto.d.ts +20 -75
- package/dist/src/types/launchpad.dto.d.ts.map +1 -1
- package/dist/src/types/messages.dto.d.ts +21 -3
- package/dist/src/types/messages.dto.d.ts.map +1 -1
- package/dist/src/types/overseer.dto.d.ts.map +1 -1
- 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/user.dto.d.ts +51 -32
- package/dist/src/types/user.dto.d.ts.map +1 -1
- package/dist/src/types/websocket-admin.dto.d.ts +307 -0
- package/dist/src/types/websocket-admin.dto.d.ts.map +1 -0
- package/dist/src/utils/adapters.d.ts.map +1 -1
- package/dist/src/utils/agent-config.d.ts.map +1 -1
- package/dist/src/utils/http.d.ts +1 -1
- package/dist/src/utils/http.d.ts.map +1 -1
- package/dist/src/utils/pagination-validation.d.ts.map +1 -1
- package/dist/src/utils/validation-helpers.d.ts +1 -1
- package/dist/src/utils/validation-helpers.d.ts.map +1 -1
- package/package.json +36 -1
- package/dist/examples/api-keys/advanced-configuration.d.ts +0 -19
- package/dist/examples/api-keys/advanced-configuration.d.ts.map +0 -1
- package/dist/examples/api-keys/complete-lifecycle.d.ts +0 -18
- package/dist/examples/api-keys/complete-lifecycle.d.ts.map +0 -1
- package/dist/examples/api-keys/crud.d.ts +0 -22
- package/dist/examples/api-keys/crud.d.ts.map +0 -1
- package/dist/examples/api-keys/token-delegation.d.ts +0 -19
- package/dist/examples/api-keys/token-delegation.d.ts.map +0 -1
- package/dist/examples/bans/ban-management.d.ts +0 -24
- package/dist/examples/bans/ban-management.d.ts.map +0 -1
- package/dist/examples/bans/demo-global-user-bans.d.ts +0 -27
- package/dist/examples/bans/demo-global-user-bans.d.ts.map +0 -1
- package/dist/examples/bonding-curve/basic-trading.d.ts +0 -20
- package/dist/examples/bonding-curve/basic-trading.d.ts.map +0 -1
- package/dist/examples/bonding-curve/graduation-workflow.d.ts +0 -19
- package/dist/examples/bonding-curve/graduation-workflow.d.ts.map +0 -1
- package/dist/examples/bonding-curve/orchestrator.d.ts +0 -23
- package/dist/examples/bonding-curve/orchestrator.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pagination-variants.d.ts +0 -17
- package/dist/examples/bonding-curve/pagination-variants.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pool-analysis.d.ts +0 -19
- package/dist/examples/bonding-curve/pool-analysis.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pool-creator-filtering.d.ts +0 -17
- package/dist/examples/bonding-curve/pool-creator-filtering.d.ts.map +0 -1
- package/dist/examples/bonding-curve/pool-discovery.d.ts +0 -19
- package/dist/examples/bonding-curve/pool-discovery.d.ts.map +0 -1
- package/dist/examples/bonding-curve/price-impact.d.ts +0 -18
- package/dist/examples/bonding-curve/price-impact.d.ts.map +0 -1
- package/dist/examples/bonding-curve/token-launch.d.ts +0 -19
- package/dist/examples/bonding-curve/token-launch.d.ts.map +0 -1
- package/dist/examples/bonding-curve/user-holder-context.d.ts +0 -18
- package/dist/examples/bonding-curve/user-holder-context.d.ts.map +0 -1
- package/dist/examples/bonding-curve/volume-trading.d.ts +0 -19
- package/dist/examples/bonding-curve/volume-trading.d.ts.map +0 -1
- package/dist/examples/bridge/bridge-operations.d.ts +0 -50
- package/dist/examples/bridge/bridge-operations.d.ts.map +0 -1
- package/dist/examples/bridge/bridgeable-tokens.d.ts +0 -28
- package/dist/examples/bridge/bridgeable-tokens.d.ts.map +0 -1
- package/dist/examples/bridge/check-balances.d.ts +0 -13
- package/dist/examples/bridge/check-balances.d.ts.map +0 -1
- package/dist/examples/bridge/ethereum-in.d.ts +0 -18
- package/dist/examples/bridge/ethereum-in.d.ts.map +0 -1
- package/dist/examples/bridge/ethereum-out.d.ts +0 -18
- package/dist/examples/bridge/ethereum-out.d.ts.map +0 -1
- package/dist/examples/bridge/ethereum-roundtrip.d.ts +0 -21
- package/dist/examples/bridge/ethereum-roundtrip.d.ts.map +0 -1
- package/dist/examples/bridge/external-balances.d.ts +0 -46
- package/dist/examples/bridge/external-balances.d.ts.map +0 -1
- package/dist/examples/bridge/fee-estimation.d.ts +0 -15
- package/dist/examples/bridge/fee-estimation.d.ts.map +0 -1
- package/dist/examples/bridge/orchestrator.d.ts +0 -20
- package/dist/examples/bridge/orchestrator.d.ts.map +0 -1
- package/dist/examples/bridge/solana-in.d.ts +0 -19
- package/dist/examples/bridge/solana-in.d.ts.map +0 -1
- package/dist/examples/bridge/solana-out.d.ts +0 -19
- package/dist/examples/bridge/solana-out.d.ts.map +0 -1
- package/dist/examples/bridge/solana-roundtrip.d.ts +0 -22
- package/dist/examples/bridge/solana-roundtrip.d.ts.map +0 -1
- package/dist/examples/bridge/status-tracking.d.ts +0 -17
- package/dist/examples/bridge/status-tracking.d.ts.map +0 -1
- package/dist/examples/bridge/supported-tokens.d.ts +0 -15
- package/dist/examples/bridge/supported-tokens.d.ts.map +0 -1
- package/dist/examples/bridge/test-debug-unwrap.d.ts +0 -13
- package/dist/examples/bridge/test-debug-unwrap.d.ts.map +0 -1
- package/dist/examples/bridge/test-unwrap-execution.d.ts +0 -13
- package/dist/examples/bridge/test-unwrap-execution.d.ts.map +0 -1
- package/dist/examples/bridge/test-wrap-debug.d.ts +0 -13
- package/dist/examples/bridge/test-wrap-debug.d.ts.map +0 -1
- package/dist/examples/bridge/test-wrap-execution.d.ts +0 -13
- package/dist/examples/bridge/test-wrap-execution.d.ts.map +0 -1
- package/dist/examples/bridge/test-wrap-roundtrip.d.ts +0 -13
- package/dist/examples/bridge/test-wrap-roundtrip.d.ts.map +0 -1
- package/dist/examples/bridge/transaction-status.d.ts +0 -49
- package/dist/examples/bridge/transaction-status.d.ts.map +0 -1
- package/dist/examples/bridge/wallet-balances.d.ts +0 -45
- package/dist/examples/bridge/wallet-balances.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-discovery.d.ts +0 -16
- package/dist/examples/bridge/wrap-discovery.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-fee-estimation.d.ts +0 -16
- package/dist/examples/bridge/wrap-fee-estimation.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-unwrap.d.ts +0 -17
- package/dist/examples/bridge/wrap-unwrap.d.ts.map +0 -1
- package/dist/examples/bridge/wrap-utilities.d.ts +0 -21
- package/dist/examples/bridge/wrap-utilities.d.ts.map +0 -1
- package/dist/examples/chat/basic-chat.d.ts +0 -17
- package/dist/examples/chat/basic-chat.d.ts.map +0 -1
- package/dist/examples/chat/chat-demo.d.ts +0 -25
- package/dist/examples/chat/chat-demo.d.ts.map +0 -1
- package/dist/examples/chat/chat-lifecycle.d.ts +0 -25
- package/dist/examples/chat/chat-lifecycle.d.ts.map +0 -1
- package/dist/examples/chat/demo-pin-messages.d.ts +0 -17
- package/dist/examples/chat/demo-pin-messages.d.ts.map +0 -1
- package/dist/examples/chat/typing-indicators.d.ts +0 -23
- package/dist/examples/chat/typing-indicators.d.ts.map +0 -1
- package/dist/examples/chat/websocket-chat.d.ts +0 -21
- package/dist/examples/chat/websocket-chat.d.ts.map +0 -1
- package/dist/examples/comments/basic-comments.d.ts +0 -19
- package/dist/examples/comments/basic-comments.d.ts.map +0 -1
- package/dist/examples/comments/comments-demo.d.ts +0 -34
- package/dist/examples/comments/comments-demo.d.ts.map +0 -1
- package/dist/examples/comments/comments-lifecycle.d.ts +0 -24
- package/dist/examples/comments/comments-lifecycle.d.ts.map +0 -1
- package/dist/examples/content-flags/flag-management.d.ts +0 -28
- package/dist/examples/content-flags/flag-management.d.ts.map +0 -1
- package/dist/examples/content-reactions/advanced-reactions.d.ts +0 -24
- package/dist/examples/content-reactions/advanced-reactions.d.ts.map +0 -1
- package/dist/examples/content-reactions/basic-reactions.d.ts +0 -21
- package/dist/examples/content-reactions/basic-reactions.d.ts.map +0 -1
- package/dist/examples/core/authenticated-operations.d.ts +0 -14
- package/dist/examples/core/authenticated-operations.d.ts.map +0 -1
- package/dist/examples/core/complete-sdk-demo.d.ts +0 -22
- package/dist/examples/core/complete-sdk-demo.d.ts.map +0 -1
- package/dist/examples/core/image-uploads.d.ts +0 -27
- package/dist/examples/core/image-uploads.d.ts.map +0 -1
- package/dist/examples/core/orchestrator.d.ts +0 -23
- package/dist/examples/core/orchestrator.d.ts.map +0 -1
- package/dist/examples/core/privatekey-override-pattern.d.ts +0 -16
- package/dist/examples/core/privatekey-override-pattern.d.ts.map +0 -1
- package/dist/examples/core/read-only-operations.d.ts +0 -15
- package/dist/examples/core/read-only-operations.d.ts.map +0 -1
- package/dist/examples/core/session-auth-demo.d.ts +0 -15
- package/dist/examples/core/session-auth-demo.d.ts.map +0 -1
- package/dist/examples/core/session-auth-lifecycle.d.ts +0 -19
- package/dist/examples/core/session-auth-lifecycle.d.ts.map +0 -1
- package/dist/examples/core/test-pagination-fix.d.ts +0 -14
- package/dist/examples/core/test-pagination-fix.d.ts.map +0 -1
- package/dist/examples/core/token-refresh-utilities.d.ts +0 -18
- package/dist/examples/core/token-refresh-utilities.d.ts.map +0 -1
- package/dist/examples/core/token-validation.d.ts +0 -18
- package/dist/examples/core/token-validation.d.ts.map +0 -1
- package/dist/examples/core/wallet-management.d.ts +0 -17
- package/dist/examples/core/wallet-management.d.ts.map +0 -1
- package/dist/examples/debug/debug-comment.d.ts +0 -2
- package/dist/examples/debug/debug-comment.d.ts.map +0 -1
- package/dist/examples/debug/test-volume-data-bounds-prod.d.ts +0 -10
- package/dist/examples/debug/test-volume-data-bounds-prod.d.ts.map +0 -1
- package/dist/examples/debug/test-volume-data-bounds.d.ts +0 -9
- package/dist/examples/debug/test-volume-data-bounds.d.ts.map +0 -1
- package/dist/examples/debug/websocket-event-discovery.d.ts +0 -26
- package/dist/examples/debug/websocket-event-discovery.d.ts.map +0 -1
- package/dist/examples/debug/websocket-monitor.d.ts +0 -15
- package/dist/examples/debug/websocket-monitor.d.ts.map +0 -1
- package/dist/examples/demo-librarian.d.ts +0 -18
- package/dist/examples/demo-librarian.d.ts.map +0 -1
- package/dist/examples/demo-runner.d.ts +0 -22
- package/dist/examples/demo-runner.d.ts.map +0 -1
- package/dist/examples/dex/demo-roundtrip-liquidity.d.ts +0 -16
- package/dist/examples/dex/demo-roundtrip-liquidity.d.ts.map +0 -1
- package/dist/examples/dex/leaderboard.d.ts +0 -13
- package/dist/examples/dex/leaderboard.d.ts.map +0 -1
- package/dist/examples/dex/orchestrator.d.ts +0 -15
- package/dist/examples/dex/orchestrator.d.ts.map +0 -1
- package/dist/examples/dex/pool-discovery.d.ts +0 -25
- package/dist/examples/dex/pool-discovery.d.ts.map +0 -1
- package/dist/examples/dex/pools-with-pricing.d.ts +0 -28
- package/dist/examples/dex/pools-with-pricing.d.ts.map +0 -1
- package/dist/examples/dex/quote-comparison.d.ts +0 -16
- package/dist/examples/dex/quote-comparison.d.ts.map +0 -1
- package/dist/examples/dex/swap-workflow.d.ts +0 -20
- package/dist/examples/dex/swap-workflow.d.ts.map +0 -1
- package/dist/examples/dex/token-discovery.d.ts +0 -28
- package/dist/examples/dex/token-discovery.d.ts.map +0 -1
- package/dist/examples/dex/volume-summary.d.ts +0 -13
- package/dist/examples/dex/volume-summary.d.ts.map +0 -1
- package/dist/examples/fees/complete-fee-test.d.ts +0 -13
- package/dist/examples/fees/complete-fee-test.d.ts.map +0 -1
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts +0 -27
- package/dist/examples/fees/demo-fee-generation-and-collection.d.ts.map +0 -1
- package/dist/examples/fees/demo-fees-high-volume.d.ts +0 -13
- package/dist/examples/fees/demo-fees-high-volume.d.ts.map +0 -1
- package/dist/examples/fees/demo-multi-wallet-fee-generation.d.ts +0 -13
- package/dist/examples/fees/demo-multi-wallet-fee-generation.d.ts.map +0 -1
- package/dist/examples/fees/trade-and-collect-fees.d.ts +0 -13
- package/dist/examples/fees/trade-and-collect-fees.d.ts.map +0 -1
- package/dist/examples/launchpad/demo-socials.d.ts +0 -16
- package/dist/examples/launchpad/demo-socials.d.ts.map +0 -1
- package/dist/examples/launchpad/fetch-token-stats.d.ts +0 -15
- package/dist/examples/launchpad/fetch-token-stats.d.ts.map +0 -1
- package/dist/examples/launchpad/update-token-config.d.ts +0 -14
- package/dist/examples/launchpad/update-token-config.d.ts.map +0 -1
- package/dist/examples/liquidity/apr-calculator.d.ts +0 -18
- package/dist/examples/liquidity/apr-calculator.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-bundler-operations.d.ts +0 -15
- package/dist/examples/liquidity/demo-bundler-operations.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-fetch-all-positions.d.ts +0 -2
- package/dist/examples/liquidity/demo-fetch-all-positions.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-position-direct.d.ts +0 -14
- package/dist/examples/liquidity/demo-position-direct.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-positions-with-chunked-pricing.d.ts +0 -26
- package/dist/examples/liquidity/demo-positions-with-chunked-pricing.d.ts.map +0 -1
- package/dist/examples/liquidity/demo-roundtrip-remove.d.ts +0 -21
- package/dist/examples/liquidity/demo-roundtrip-remove.d.ts.map +0 -1
- package/dist/examples/liquidity/detailed.d.ts +0 -21
- package/dist/examples/liquidity/detailed.d.ts.map +0 -1
- package/dist/examples/liquidity/errors.d.ts +0 -18
- package/dist/examples/liquidity/errors.d.ts.map +0 -1
- package/dist/examples/liquidity/fee-collection.d.ts +0 -22
- package/dist/examples/liquidity/fee-collection.d.ts.map +0 -1
- package/dist/examples/liquidity/multi-position.d.ts +0 -23
- package/dist/examples/liquidity/multi-position.d.ts.map +0 -1
- package/dist/examples/liquidity/orchestrator.d.ts +0 -23
- package/dist/examples/liquidity/orchestrator.d.ts.map +0 -1
- package/dist/examples/liquidity/positions-cli.d.ts +0 -41
- package/dist/examples/liquidity/positions-cli.d.ts.map +0 -1
- package/dist/examples/liquidity/ticks.d.ts +0 -18
- package/dist/examples/liquidity/ticks.d.ts.map +0 -1
- package/dist/examples/locks/burn-tokens.d.ts +0 -25
- package/dist/examples/locks/burn-tokens.d.ts.map +0 -1
- package/dist/examples/locks/lock-unlock-workflow.d.ts +0 -20
- package/dist/examples/locks/lock-unlock-workflow.d.ts.map +0 -1
- package/dist/examples/moderators/claim-invite.d.ts +0 -28
- package/dist/examples/moderators/claim-invite.d.ts.map +0 -1
- package/dist/examples/moderators/invite-management.d.ts +0 -30
- package/dist/examples/moderators/invite-management.d.ts.map +0 -1
- package/dist/examples/moderators/moderated-tokens-portfolio.d.ts +0 -18
- package/dist/examples/moderators/moderated-tokens-portfolio.d.ts.map +0 -1
- package/dist/examples/monitoring/demo-stream-events.d.ts +0 -17
- package/dist/examples/monitoring/demo-stream-events.d.ts.map +0 -1
- package/dist/examples/monitoring/demo-watch-pools.d.ts +0 -18
- package/dist/examples/monitoring/demo-watch-pools.d.ts.map +0 -1
- package/dist/examples/monitoring/demo-watch-tokens.d.ts +0 -18
- package/dist/examples/monitoring/demo-watch-tokens.d.ts.map +0 -1
- package/dist/examples/monitoring/fees-collection-e2e.d.ts +0 -36
- package/dist/examples/monitoring/fees-collection-e2e.d.ts.map +0 -1
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts +0 -49
- package/dist/examples/monitoring/fees-collection-guaranteed.d.ts.map +0 -1
- package/dist/examples/monitoring/liquidity-e2e-test.d.ts +0 -37
- package/dist/examples/monitoring/liquidity-e2e-test.d.ts.map +0 -1
- package/dist/examples/monitoring/liquidity-monitor.d.ts +0 -17
- package/dist/examples/monitoring/liquidity-monitor.d.ts.map +0 -1
- package/dist/examples/monitoring/orchestrator.d.ts +0 -36
- package/dist/examples/monitoring/orchestrator.d.ts.map +0 -1
- package/dist/examples/monitoring/pool-creation-integration.d.ts +0 -27
- package/dist/examples/monitoring/pool-creation-integration.d.ts.map +0 -1
- package/dist/examples/monitoring/pool-liquidity-tracker.d.ts +0 -15
- package/dist/examples/monitoring/pool-liquidity-tracker.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-liquidity-added.d.ts +0 -30
- package/dist/examples/monitoring/subscribe-liquidity-added.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-liquidity-removed.d.ts +0 -30
- package/dist/examples/monitoring/subscribe-liquidity-removed.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-pool-creations.d.ts +0 -26
- package/dist/examples/monitoring/subscribe-pool-creations.d.ts.map +0 -1
- package/dist/examples/monitoring/subscribe-token-creations.d.ts +0 -21
- package/dist/examples/monitoring/subscribe-token-creations.d.ts.map +0 -1
- package/dist/examples/monitoring/token-creation-integration.d.ts +0 -32
- package/dist/examples/monitoring/token-creation-integration.d.ts.map +0 -1
- package/dist/examples/monitoring/websocket-event-handlers.d.ts +0 -22
- package/dist/examples/monitoring/websocket-event-handlers.d.ts.map +0 -1
- package/dist/examples/nft/demo-collection-management.d.ts +0 -13
- package/dist/examples/nft/demo-collection-management.d.ts.map +0 -1
- package/dist/examples/nft/demo-fee-calculations.d.ts +0 -13
- package/dist/examples/nft/demo-fee-calculations.d.ts.map +0 -1
- package/dist/examples/nft/demo-minting.d.ts +0 -13
- package/dist/examples/nft/demo-minting.d.ts.map +0 -1
- package/dist/examples/nft/demo-orchestrator.d.ts +0 -19
- package/dist/examples/nft/demo-orchestrator.d.ts.map +0 -1
- package/dist/examples/nft/demo-portfolio-query.d.ts +0 -14
- package/dist/examples/nft/demo-portfolio-query.d.ts.map +0 -1
- package/dist/examples/orchestrator-master.d.ts +0 -22
- package/dist/examples/orchestrator-master.d.ts.map +0 -1
- package/dist/examples/overseers/claim-invite.d.ts +0 -31
- package/dist/examples/overseers/claim-invite.d.ts.map +0 -1
- package/dist/examples/overseers/demo-list-users.d.ts +0 -19
- package/dist/examples/overseers/demo-list-users.d.ts.map +0 -1
- package/dist/examples/overseers/invite-management.d.ts +0 -38
- package/dist/examples/overseers/invite-management.d.ts.map +0 -1
- package/dist/examples/streaming/admin-controls.d.ts +0 -29
- package/dist/examples/streaming/admin-controls.d.ts.map +0 -1
- package/dist/examples/streaming/basic-stream.d.ts +0 -17
- package/dist/examples/streaming/basic-stream.d.ts.map +0 -1
- package/dist/examples/streaming/demo-countdown.d.ts +0 -16
- package/dist/examples/streaming/demo-countdown.d.ts.map +0 -1
- package/dist/examples/streaming/demo-get-stream-credentials.d.ts +0 -28
- package/dist/examples/streaming/demo-get-stream-credentials.d.ts.map +0 -1
- package/dist/examples/streaming/demo-platform-config.d.ts +0 -20
- package/dist/examples/streaming/demo-platform-config.d.ts.map +0 -1
- package/dist/examples/streaming/engagement-stats.d.ts +0 -25
- package/dist/examples/streaming/engagement-stats.d.ts.map +0 -1
- package/dist/examples/streaming/recordings.d.ts +0 -16
- package/dist/examples/streaming/recordings.d.ts.map +0 -1
- package/dist/examples/streaming/simulcast.d.ts +0 -19
- package/dist/examples/streaming/simulcast.d.ts.map +0 -1
- package/dist/examples/streaming/stream-control.d.ts +0 -25
- package/dist/examples/streaming/stream-control.d.ts.map +0 -1
- package/dist/examples/streaming/stream-key-management.d.ts +0 -18
- package/dist/examples/streaming/stream-key-management.d.ts.map +0 -1
- package/dist/examples/streaming/streaming-lifecycle.d.ts +0 -25
- package/dist/examples/streaming/streaming-lifecycle.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/arbitrage-monitor.d.ts +0 -20
- package/dist/examples/swap-monitoring/arbitrage-monitor.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts +0 -50
- package/dist/examples/swap-monitoring/e2e-trading-demo.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/health-monitor.d.ts +0 -10
- package/dist/examples/swap-monitoring/health-monitor.d.ts.map +0 -1
- package/dist/examples/swap-monitoring/volume-monitor.d.ts +0 -20
- package/dist/examples/swap-monitoring/volume-monitor.d.ts.map +0 -1
- package/dist/examples/testing/demo-test-runner.d.ts +0 -33
- package/dist/examples/testing/demo-test-runner.d.ts.map +0 -1
- package/dist/examples/testing/error-classifier.d.ts +0 -23
- package/dist/examples/testing/error-classifier.d.ts.map +0 -1
- package/dist/examples/testing/index.d.ts +0 -14
- package/dist/examples/testing/index.d.ts.map +0 -1
- package/dist/examples/testing/memory-manager.d.ts +0 -31
- package/dist/examples/testing/memory-manager.d.ts.map +0 -1
- package/dist/examples/testing/report-generator.d.ts +0 -31
- package/dist/examples/testing/report-generator.d.ts.map +0 -1
- package/dist/examples/testing/test-result-types.d.ts +0 -158
- package/dist/examples/testing/test-result-types.d.ts.map +0 -1
- package/dist/examples/token-bans/token-ban-management.d.ts +0 -32
- package/dist/examples/token-bans/token-ban-management.d.ts.map +0 -1
- package/dist/examples/users/fetch-user-balances.d.ts +0 -15
- package/dist/examples/users/fetch-user-balances.d.ts.map +0 -1
- package/dist/examples/users/fetch-user-report.d.ts +0 -17
- package/dist/examples/users/fetch-user-report.d.ts.map +0 -1
- package/dist/examples/utilities/account.d.ts +0 -20
- package/dist/examples/utilities/account.d.ts.map +0 -1
- package/dist/examples/utilities/balance.d.ts +0 -5
- package/dist/examples/utilities/balance.d.ts.map +0 -1
- package/dist/examples/utilities/balances.d.ts +0 -7
- package/dist/examples/utilities/balances.d.ts.map +0 -1
- package/dist/examples/utilities/demo-cache.d.ts +0 -12
- package/dist/examples/utilities/demo-cache.d.ts.map +0 -1
- package/dist/examples/utilities/demo-token-supply.d.ts +0 -14
- package/dist/examples/utilities/demo-token-supply.d.ts.map +0 -1
- package/dist/examples/utilities/key-derivation.d.ts +0 -12
- package/dist/examples/utilities/key-derivation.d.ts.map +0 -1
- package/dist/examples/utilities/multi-token-portfolio.d.ts +0 -18
- package/dist/examples/utilities/multi-token-portfolio.d.ts.map +0 -1
- package/dist/examples/utilities/price-history.d.ts +0 -22
- package/dist/examples/utilities/price-history.d.ts.map +0 -1
- package/dist/examples/utilities/referrals.d.ts +0 -21
- package/dist/examples/utilities/referrals.d.ts.map +0 -1
- package/dist/examples/utilities/trade-history.d.ts +0 -18
- package/dist/examples/utilities/trade-history.d.ts.map +0 -1
- package/dist/examples/utilities/transfers.d.ts +0 -29
- package/dist/examples/utilities/transfers.d.ts.map +0 -1
- package/dist/examples/utilities/wrappable-tokens.d.ts +0 -28
- package/dist/examples/utilities/wrappable-tokens.d.ts.map +0 -1
- package/dist/examples/utils/balance-checking.d.ts +0 -158
- package/dist/examples/utils/balance-checking.d.ts.map +0 -1
- package/dist/examples/utils/bridge-formatters.d.ts +0 -188
- package/dist/examples/utils/bridge-formatters.d.ts.map +0 -1
- package/dist/examples/utils/bridge-setup.d.ts +0 -184
- package/dist/examples/utils/bridge-setup.d.ts.map +0 -1
- package/dist/examples/utils/demo-runner.d.ts +0 -159
- package/dist/examples/utils/demo-runner.d.ts.map +0 -1
- package/dist/examples/utils/error-handler.d.ts +0 -85
- package/dist/examples/utils/error-handler.d.ts.map +0 -1
- package/dist/examples/utils/formatting.d.ts +0 -195
- package/dist/examples/utils/formatting.d.ts.map +0 -1
- package/dist/examples/utils/get-environment.d.ts +0 -17
- package/dist/examples/utils/get-environment.d.ts.map +0 -1
- package/dist/examples/utils/index.d.ts +0 -43
- package/dist/examples/utils/index.d.ts.map +0 -1
- package/dist/examples/utils/indexing.d.ts +0 -140
- package/dist/examples/utils/indexing.d.ts.map +0 -1
- package/dist/examples/utils/load-env.d.ts +0 -90
- package/dist/examples/utils/load-env.d.ts.map +0 -1
- package/dist/examples/utils/pool-helpers.d.ts +0 -226
- package/dist/examples/utils/pool-helpers.d.ts.map +0 -1
- package/dist/examples/utils/sdk-setup.d.ts +0 -415
- package/dist/examples/utils/sdk-setup.d.ts.map +0 -1
- package/dist/examples/utils/suppress-logging.d.ts +0 -11
- package/dist/examples/utils/suppress-logging.d.ts.map +0 -1
- package/dist/examples/utils/token-naming.d.ts +0 -117
- package/dist/examples/utils/token-naming.d.ts.map +0 -1
- package/dist/examples/utils/trade-helpers.d.ts +0 -195
- package/dist/examples/utils/trade-helpers.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ console.log(pools.meta.page < pools.meta.totalPages); // Has more pages
|
|
|
77
77
|
- **External Wallet Balances**: Query Ethereum and Solana wallet balances (single-token or full portfolio)
|
|
78
78
|
- **Live Streaming**: Start/stop streams, manage recordings and simulcast targets for token pools (v5.1.0+)
|
|
79
79
|
- **Stream Chat**: Real-time chat messaging via REST and WebSocket with admin controls (v5.1.0+)
|
|
80
|
+
- **Global Feed**: Unified real-time event stream for token updates and site configuration changes (v7.0.0+)
|
|
80
81
|
- **Overseer System**: Global platform oversight with CCTV dashboard, invite management, and platform summary (v5.9.0+)
|
|
81
82
|
- **Moderator System**: Token-scoped moderation with magic link invites (v5.7.0+)
|
|
82
83
|
- **Content Flags**: Report and manage flagged content with two-tier review system (v5.8.0+)
|
|
@@ -560,12 +561,11 @@ const pools = await sdk.fetchDexPools({
|
|
|
560
561
|
search: 'GALA', // Filter by token symbol
|
|
561
562
|
sortBy: 'tvl', // Sort options: tvl, volume30d, volume1d
|
|
562
563
|
sortOrder: 'desc', // asc or desc
|
|
563
|
-
|
|
564
|
-
limit: 10 // Results per page (default: 10, max: 20)
|
|
564
|
+
pageSize: 20 // Results per page (default: 20, max: 50)
|
|
565
565
|
});
|
|
566
566
|
|
|
567
|
-
console.log(`Found ${pools.meta
|
|
568
|
-
console.log(`Showing ${pools.items.length} pools
|
|
567
|
+
console.log(`Found ${pools.meta?.total || 'many'} pools`);
|
|
568
|
+
console.log(`Showing ${pools.items.length} pools with cursor-based pagination`);
|
|
569
569
|
|
|
570
570
|
// Fetch ALL pools with automatic pagination
|
|
571
571
|
const allPools = await sdk.fetchAllDexPools({
|
|
@@ -623,7 +623,7 @@ console.log(`APR: ${topPool.apr1d.toFixed(2)}%`);
|
|
|
623
623
|
const galaPools = await sdk.fetchDexPools({
|
|
624
624
|
search: 'GALA',
|
|
625
625
|
sortBy: 'tvl',
|
|
626
|
-
|
|
626
|
+
pageSize: 20
|
|
627
627
|
});
|
|
628
628
|
|
|
629
629
|
galaPools.items.forEach(pool => {
|
|
@@ -655,20 +655,35 @@ bestAprPools.forEach(pool => {
|
|
|
655
655
|
|
|
656
656
|
### Pagination
|
|
657
657
|
|
|
658
|
-
The SDK
|
|
658
|
+
The SDK uses cursor-based pagination with configurable page sizes. Use `fetchAllDexPools()` for complete enumeration:
|
|
659
659
|
|
|
660
660
|
```typescript
|
|
661
|
-
//
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
console.log(`
|
|
665
|
-
console.log(`Has next: ${
|
|
661
|
+
// Cursor-based discovery (20 max per page)
|
|
662
|
+
let cursor: string | undefined;
|
|
663
|
+
const result = await sdk.fetchDexPools({ pageSize: 20, cursor });
|
|
664
|
+
console.log(`Showing: ${result.items.length} pools`);
|
|
665
|
+
console.log(`Has next: ${result.pageInfo?.hasNextPage}`);
|
|
666
|
+
if (result.pageInfo?.hasNextPage) cursor = result.pageInfo?.nextCursor;
|
|
666
667
|
|
|
667
668
|
// Automatic pagination - get all at once
|
|
668
669
|
const allAtOnce = await sdk.fetchAllDexPools();
|
|
669
670
|
console.log(`All pools: ${allAtOnce.items.length}`);
|
|
670
671
|
```
|
|
671
672
|
|
|
673
|
+
**Cursor-Based Pagination Loop:**
|
|
674
|
+
```typescript
|
|
675
|
+
// Manually iterate through paginated results using cursors
|
|
676
|
+
let cursor: string | undefined;
|
|
677
|
+
const allPools = [];
|
|
678
|
+
while (true) {
|
|
679
|
+
const result = await sdk.fetchDexPools({ pageSize: 20, cursor });
|
|
680
|
+
allPools.push(...result.items);
|
|
681
|
+
if (!result.pageInfo?.hasNextPage) break;
|
|
682
|
+
cursor = result.pageInfo?.nextCursor;
|
|
683
|
+
}
|
|
684
|
+
console.log(`Retrieved ${allPools.length} total pools`);
|
|
685
|
+
```
|
|
686
|
+
|
|
672
687
|
### Development vs Production Environments
|
|
673
688
|
|
|
674
689
|
The SDK automatically uses the correct DEX backend based on your environment configuration:
|
|
@@ -865,9 +880,9 @@ const sdk = createLaunchpadSDK({
|
|
|
865
880
|
// Clean, direct result access - All methods use options objects
|
|
866
881
|
|
|
867
882
|
// Pool Management - Direct result properties
|
|
868
|
-
const pools = await sdk.fetchPools({ type: 'recent',
|
|
869
|
-
console.log(`Found ${pools.total} pools
|
|
870
|
-
console.log(`
|
|
883
|
+
const pools = await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
884
|
+
console.log(`Found ${pools.meta?.total} pools`);
|
|
885
|
+
console.log(`Has next page: ${pools.pageInfo?.hasNextPage}`);
|
|
871
886
|
|
|
872
887
|
const badges = await sdk.fetchTokenBadges('dragnrkti');
|
|
873
888
|
console.log(`Volume badges: ${badges.volumeBadges.length}`);
|
|
@@ -944,18 +959,18 @@ const sdk = createLaunchpadSDK({
|
|
|
944
959
|
|
|
945
960
|
// MODE 1: Single Page (backward compatible)
|
|
946
961
|
// Limit <= 20: Single API call
|
|
947
|
-
const recent = await sdk.fetchPools({ type: 'recent',
|
|
962
|
+
const recent = await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
948
963
|
console.log(`Fetched ${recent.items.length} pools in one request`);
|
|
949
964
|
|
|
950
965
|
// MODE 2: Multi-Page Auto-Fetch
|
|
951
966
|
// Limit > 20: Automatic concurrent multi-page fetching
|
|
952
|
-
const large = await sdk.fetchPools({ type: 'popular',
|
|
967
|
+
const large = await sdk.fetchPools({ type: 'popular', pageSize: 100 });
|
|
953
968
|
console.log(`Fetched ${large.items.length} pools across multiple pages`);
|
|
954
|
-
// Internally
|
|
969
|
+
// Internally uses cursor-based pagination to efficiently fetch all items
|
|
955
970
|
|
|
956
971
|
// MODE 3: Infinite Fetch
|
|
957
972
|
// Limit = 0: Fetches ALL available pools
|
|
958
|
-
const all = await sdk.
|
|
973
|
+
const all = await sdk.fetchAllPools();
|
|
959
974
|
console.log(`Fetched all ${all.items.length} pools from the platform`);
|
|
960
975
|
|
|
961
976
|
// Convenience method for "fetch all" pattern
|
|
@@ -1040,7 +1055,7 @@ const dragons = await sdk.fetchAllPools({ search: 'dragon' });
|
|
|
1040
1055
|
// Fetch specific token across all results
|
|
1041
1056
|
const specific = await sdk.fetchAllPools({ tokenName: 'anime' });
|
|
1042
1057
|
|
|
1043
|
-
//
|
|
1058
|
+
// Automatic pagination handles all pages internally
|
|
1044
1059
|
const all = await sdk.fetchAllPools();
|
|
1045
1060
|
```
|
|
1046
1061
|
|
|
@@ -1107,10 +1122,10 @@ const sdk = createLaunchpadSDK({
|
|
|
1107
1122
|
// 2. Check available pools - direct access to results
|
|
1108
1123
|
const pools = await sdk.fetchPools({
|
|
1109
1124
|
type: 'recent',
|
|
1110
|
-
|
|
1125
|
+
pageSize: 20
|
|
1111
1126
|
});
|
|
1112
1127
|
|
|
1113
|
-
console.log(`Found ${pools.meta.total} pools
|
|
1128
|
+
console.log(`Found ${pools.meta.total} pools`);
|
|
1114
1129
|
pools.items.forEach(pool => {
|
|
1115
1130
|
console.log(`Pool: ${pool.tokenName} created at ${pool.createdAt}`);
|
|
1116
1131
|
});
|
|
@@ -1544,12 +1559,12 @@ const invalidKey3 = '0x123'; // Too short
|
|
|
1544
1559
|
```typescript
|
|
1545
1560
|
// Pool Management
|
|
1546
1561
|
fetchPools(options?): Promise<PoolsResult>
|
|
1547
|
-
// Returns: {
|
|
1548
|
-
// Supports
|
|
1562
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1563
|
+
// Supports cursor-based pagination with configurable pageSize
|
|
1549
1564
|
|
|
1550
1565
|
fetchAllPools(options?): Promise<PoolsResult>
|
|
1551
|
-
// Returns: {
|
|
1552
|
-
// Convenience method that fetches ALL pools
|
|
1566
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage } }
|
|
1567
|
+
// Convenience method that fetches ALL pools using cursor-based pagination
|
|
1553
1568
|
|
|
1554
1569
|
fetchTokenDistribution(tokenName): Promise<TokenDistributionResult>
|
|
1555
1570
|
// Returns: { holders, totalSupply, totalHolders, lastUpdated }
|
|
@@ -1569,7 +1584,7 @@ fetchVolumeData(options): Promise<GraphDataResult>
|
|
|
1569
1584
|
|
|
1570
1585
|
// Trade & User Data
|
|
1571
1586
|
fetchTrades(options): Promise<TradesResult>
|
|
1572
|
-
// Returns: {
|
|
1587
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1573
1588
|
|
|
1574
1589
|
fetchGalaBalance(address?): Promise<GalaBalanceInfo>
|
|
1575
1590
|
// Returns: { userAddress, balance, decimals, lastUpdated }
|
|
@@ -1578,7 +1593,7 @@ fetchTokenBalance(options): Promise<TokenBalanceInfo>
|
|
|
1578
1593
|
// Returns: { quantity, holdingPriceUsd, holdingPriceGala, isFinalized, ... }
|
|
1579
1594
|
|
|
1580
1595
|
fetchComments(options): Promise<CommentsResult>
|
|
1581
|
-
// Returns: {
|
|
1596
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1582
1597
|
|
|
1583
1598
|
fetchProfile(address?): Promise<UserProfile>
|
|
1584
1599
|
// Returns: { fullName, profileImage, address, ... }
|
|
@@ -1630,7 +1645,7 @@ fetchPriceHistory(options): Promise<PriceHistoryResult>
|
|
|
1630
1645
|
// Token identification (provide EXACTLY ONE):
|
|
1631
1646
|
// - tokenName: Simple token name (e.g., "demonkpop") - auto-resolves to tokenId
|
|
1632
1647
|
// - tokenId: Full token class key (e.g., "Token|Unit|DKP|eth:...")
|
|
1633
|
-
// Returns: {
|
|
1648
|
+
// Returns: { items, meta: { total }, pageInfo: { hasNextPage, nextCursor } }
|
|
1634
1649
|
// Fetches paginated historical price snapshots from DEX Backend API
|
|
1635
1650
|
|
|
1636
1651
|
fetchAllPriceHistory(options): Promise<PriceHistoryResult>
|
|
@@ -1897,7 +1912,7 @@ let cacheInfo = sdk.getCacheInfo();
|
|
|
1897
1912
|
console.log('Cached tokens:', cacheInfo.totalTokens); // 0
|
|
1898
1913
|
|
|
1899
1914
|
// Fetch pools - automatically warms cache with RBC fees and vault addresses
|
|
1900
|
-
await sdk.fetchPools({ type: 'recent',
|
|
1915
|
+
await sdk.fetchPools({ type: 'recent', pageSize: 20 });
|
|
1901
1916
|
|
|
1902
1917
|
// After fetching - cache is warmed with 20 tokens
|
|
1903
1918
|
cacheInfo = sdk.getCacheInfo();
|
|
@@ -1945,9 +1960,9 @@ console.log('Instant result:', calc.amount); // <1ms, used cached RBC fees
|
|
|
1945
1960
|
|
|
1946
1961
|
```typescript
|
|
1947
1962
|
// Cache automatically manages size
|
|
1948
|
-
await sdk.fetchPools({
|
|
1949
|
-
await sdk.fetchPools({
|
|
1950
|
-
await sdk.fetchPools({
|
|
1963
|
+
await sdk.fetchPools({ pageSize: 100 }); // Fetches 100 tokens
|
|
1964
|
+
await sdk.fetchPools({ pageSize: 100 }); // Fetches 100 more tokens
|
|
1965
|
+
await sdk.fetchPools({ pageSize: 100 }); // ... continues
|
|
1951
1966
|
|
|
1952
1967
|
// When 10,000 limit reached, oldest tokens are evicted automatically
|
|
1953
1968
|
const stats = sdk.getCacheInfo();
|
|
@@ -2013,7 +2028,7 @@ const sdk = createLaunchpadSDK({
|
|
|
2013
2028
|
|
|
2014
2029
|
// 1. Warm cache by fetching pools
|
|
2015
2030
|
console.log('Warming cache...');
|
|
2016
|
-
await sdk.fetchPools({ type: 'popular',
|
|
2031
|
+
await sdk.fetchPools({ type: 'popular', pageSize: 50 });
|
|
2017
2032
|
|
|
2018
2033
|
// 2. Check cache statistics
|
|
2019
2034
|
const stats = sdk.getCacheInfo();
|
|
@@ -2082,8 +2097,7 @@ const sdk = createLaunchpadSDK({
|
|
|
2082
2097
|
// ✅ NEW: Use simple token name (auto-resolves to full token ID)
|
|
2083
2098
|
const recentHistory = await sdk.fetchPriceHistory({
|
|
2084
2099
|
tokenName: 'demonkpop', // Simple, intuitive token name
|
|
2085
|
-
|
|
2086
|
-
limit: 20
|
|
2100
|
+
pageSize: 20
|
|
2087
2101
|
});
|
|
2088
2102
|
|
|
2089
2103
|
console.log(`Latest price: $${recentHistory.snapshots[0].price}`);
|
|
@@ -2092,8 +2106,7 @@ console.log(`Total snapshots: ${recentHistory.total}`);
|
|
|
2092
2106
|
// ✅ STILL WORKS: Direct token ID (for advanced use cases)
|
|
2093
2107
|
const historyWithId = await sdk.fetchPriceHistory({
|
|
2094
2108
|
tokenId: 'Token|Unit|DKP|eth:4A65D29213de2939373ff9eB63AC38730F192C84',
|
|
2095
|
-
|
|
2096
|
-
limit: 20
|
|
2109
|
+
pageSize: 20
|
|
2097
2110
|
});
|
|
2098
2111
|
```
|
|
2099
2112
|
|
|
@@ -2106,7 +2119,7 @@ const monthlyHistory = await sdk.fetchPriceHistory({
|
|
|
2106
2119
|
from: new Date('2025-01-01'),
|
|
2107
2120
|
to: new Date('2025-02-01'),
|
|
2108
2121
|
sortOrder: 'ASC', // Chronological order for analysis
|
|
2109
|
-
|
|
2122
|
+
pageSize: 50
|
|
2110
2123
|
});
|
|
2111
2124
|
|
|
2112
2125
|
const prices = monthlyHistory.snapshots.map(s => parseFloat(s.price));
|
|
@@ -2129,7 +2142,7 @@ const recentData = await sdk.fetchPriceHistory({
|
|
|
2129
2142
|
tokenName: 'demonkpop',
|
|
2130
2143
|
from: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), // Last 7 days
|
|
2131
2144
|
sortOrder: 'DESC',
|
|
2132
|
-
|
|
2145
|
+
pageSize: 20
|
|
2133
2146
|
});
|
|
2134
2147
|
|
|
2135
2148
|
const ma7 = recentData.snapshots
|
|
@@ -2171,15 +2184,13 @@ try {
|
|
|
2171
2184
|
// ❌ BEFORE (v3.19 and earlier) - Had to provide full token class key
|
|
2172
2185
|
const history = await sdk.fetchPriceHistory({
|
|
2173
2186
|
tokenId: 'Token|Unit|DKP|eth:4A65D29213de2939373ff9eB63AC38730F192C84',
|
|
2174
|
-
|
|
2175
|
-
limit: 10
|
|
2187
|
+
pageSize: 10
|
|
2176
2188
|
});
|
|
2177
2189
|
|
|
2178
2190
|
// ✅ AFTER (v3.20+) - Simple token name, auto-resolves internally
|
|
2179
2191
|
const history = await sdk.fetchPriceHistory({
|
|
2180
2192
|
tokenName: 'demonkpop',
|
|
2181
|
-
|
|
2182
|
-
limit: 10
|
|
2193
|
+
pageSize: 10
|
|
2183
2194
|
});
|
|
2184
2195
|
```
|
|
2185
2196
|
|
|
@@ -2721,6 +2732,13 @@ npm run lint
|
|
|
2721
2732
|
- [NFT Quick Reference](./docs/NFT_QUICK_REFERENCE.md) - Quick lookup for NFT collection, token class, and minting operations with fee schedules
|
|
2722
2733
|
- [NFT Operations Guide](./docs/NFT_OPERATIONS.md) - Complete guide for claiming collections, creating token classes, minting NFTs, and querying NFT data
|
|
2723
2734
|
|
|
2735
|
+
### WebSocket & Real-Time Events
|
|
2736
|
+
|
|
2737
|
+
- [WebSocket Documentation Hub](./docs/websocket/) - Complete guide to WebSocket connections and real-time events
|
|
2738
|
+
- [Global Feed Quick Start](./docs/websocket/QUICKSTART.md) - Get real-time updates in 5 minutes
|
|
2739
|
+
- [Global Feed Guide](./docs/websocket/GLOBAL-FEED.md) - Comprehensive guide to unified event streaming
|
|
2740
|
+
- [WebSocket Authentication](./docs/websocket/AUTHENTICATION.md) - JWT authentication and security best practices
|
|
2741
|
+
|
|
2724
2742
|
### Demo Scripts
|
|
2725
2743
|
|
|
2726
2744
|
The SDK includes 36 comprehensive demo scripts organized into logical categories for easy discovery and learning.
|
|
@@ -2947,7 +2965,7 @@ LaunchpadService uses a **facade pattern** internally, delegating to specialized
|
|
|
2947
2965
|
LaunchpadService (facade)
|
|
2948
2966
|
├── PoolService - Pool queries, distribution, badges, volume data
|
|
2949
2967
|
│ ├── fetchPools() - Supports auto-pagination (v3.11.0+)
|
|
2950
|
-
│ ├── fetchAllPools() - Convenience method for
|
|
2968
|
+
│ ├── fetchAllPools() - Convenience method for fetching all pools
|
|
2951
2969
|
│ └── ...other pool operations
|
|
2952
2970
|
├── TradeService - Trade history and queries
|
|
2953
2971
|
├── CommentService - Comments with vault resolution
|
|
@@ -3029,7 +3047,7 @@ For comprehensive AI agent integration, see:
|
|
|
3029
3047
|
✅ **Direct Property Access**: No more `result.data.success` chains
|
|
3030
3048
|
✅ **Type Safety**: Full TypeScript IntelliSense for all result properties
|
|
3031
3049
|
✅ **Semantic Types**: Dates as Date objects, numbers as numbers
|
|
3032
|
-
✅ **
|
|
3050
|
+
✅ **Cursor Pagination**: `pageInfo.hasNextPage`, `pageInfo.nextCursor` for cursor-based navigation
|
|
3033
3051
|
✅ **Zero Wrapper Overhead**: Clean, direct access to all result data
|
|
3034
3052
|
✅ **Options Object Pattern**: All multi-parameter methods use options objects
|
|
3035
3053
|
|
|
@@ -3039,9 +3057,9 @@ For comprehensive AI agent integration, see:
|
|
|
3039
3057
|
// Pool results with pagination
|
|
3040
3058
|
interface PoolsResult {
|
|
3041
3059
|
pools: PoolData[]; // Direct pool array
|
|
3042
|
-
|
|
3060
|
+
cursor?: string; // Cursor for pagination
|
|
3043
3061
|
total: number; // Total items
|
|
3044
|
-
|
|
3062
|
+
pageSize: number; // Items returned per page
|
|
3045
3063
|
// ... more properties
|
|
3046
3064
|
}
|
|
3047
3065
|
|
|
@@ -3099,7 +3117,7 @@ New methods for accessing user information:
|
|
|
3099
3117
|
// Fetch user token balances
|
|
3100
3118
|
const balances = await sdk.fetchUserBalances({
|
|
3101
3119
|
address: '0x...',
|
|
3102
|
-
|
|
3120
|
+
pageSize: 50
|
|
3103
3121
|
});
|
|
3104
3122
|
|
|
3105
3123
|
// Get comprehensive user report (Overseer only)
|