@gala-chain/launchpad-sdk 3.28.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/LaunchpadSDK.d.ts +186 -2
- package/dist/LaunchpadSDK.d.ts.map +1 -1
- package/dist/constants/version.generated.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/services/WebSocketService.d.ts +15 -0
- package/dist/services/WebSocketService.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @category Services
|
|
8
8
|
* @since 2.0.0
|
|
9
9
|
*/
|
|
10
|
+
import { Socket } from 'socket.io-client';
|
|
10
11
|
import { SDKTransactionStatus } from '../types/websocket.types';
|
|
11
12
|
export interface TransactionStatus {
|
|
12
13
|
transactionId: string;
|
|
@@ -66,5 +67,19 @@ export declare class WebSocketService {
|
|
|
66
67
|
* Check connection status
|
|
67
68
|
*/
|
|
68
69
|
isConnected(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Get the underlying Socket.IO socket instance for custom event subscriptions
|
|
72
|
+
*
|
|
73
|
+
* @returns The Socket.IO socket instance, or null if not connected
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* const socket = webSocketService.getSocket();
|
|
77
|
+
* if (socket) {
|
|
78
|
+
* socket.on('custom-event', (data) => {
|
|
79
|
+
* console.log('Event received:', data);
|
|
80
|
+
* });
|
|
81
|
+
* }
|
|
82
|
+
*/
|
|
83
|
+
getSocket(): Socket | null;
|
|
69
84
|
}
|
|
70
85
|
//# sourceMappingURL=WebSocketService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketService.d.ts","sourceRoot":"","sources":["../../src/services/WebSocketService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"WebS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aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAY3E;;OAEG;IACH,OAAO,CAAC,eAAe;IAKvB;;OAEG;YACW,eAAe;IAmB7B;;OAEG;IACH,UAAU,IAAI,IAAI;IA4BlB;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;;;;;;;;;;;OAYG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;CAG3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gala-chain/launchpad-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.0",
|
|
4
4
|
"description": "TypeScript SDK for Gala Launchpad Backend API - 66 methods supporting optional wallet (read-only and full-access modes). Production-ready DeFi token launchpad integration with AgentConfig setup, GalaChain trading, GSwap DEX integration, price history, token creation, DEX pool discovery, and comprehensive user operations. Multi-format output (ESM, CJS, UMD).",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
"demo:fetch-all-pools": "tsx examples/demo-fetch-all-pools.ts",
|
|
50
50
|
"demo:dex-trades": "tsx examples/demo-dex-trades.ts",
|
|
51
51
|
"demo:dex-pool-discovery": "tsx examples/demo-dex-pool-discovery.ts",
|
|
52
|
+
"demo:watch-pools": "tsx examples/demo-watch-pools.ts",
|
|
53
|
+
"demo:watch-tokens": "tsx examples/demo-watch-tokens.ts",
|
|
52
54
|
"lint": "eslint src tests scripts --ext .ts,.tsx --fix",
|
|
53
55
|
"lint:check": "eslint src tests scripts --ext .ts,.tsx",
|
|
54
56
|
"typecheck": "tsc --noEmit",
|