@gala-chain/launchpad-sdk 3.26.0 → 3.26.4
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 +26 -0
- package/dist/LaunchpadSDK.d.ts +3 -3
- 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/GSwapService.d.ts +7 -7
- package/dist/services/GSwapService.d.ts.map +1 -1
- package/dist/types/gswap.dto.d.ts +6 -0
- package/dist/types/gswap.dto.d.ts.map +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -1841,6 +1841,32 @@ npm run lint
|
|
|
1841
1841
|
- [API Documentation](../../API.md) - Detailed API documentation
|
|
1842
1842
|
- [Examples](./examples/) - Code examples and demos
|
|
1843
1843
|
|
|
1844
|
+
### GSwap Liquidity Operations
|
|
1845
|
+
|
|
1846
|
+
- [Liquidity Operations Guide](./docs/LIQUIDITY_OPERATIONS.md) - Complete guide for managing liquidity positions (viewing, adding, collecting fees, removing)
|
|
1847
|
+
- [Liquidity Response Structures](./docs/LIQUIDITY_RESPONSES.md) - Detailed reference for all liquidity operation response formats and error handling
|
|
1848
|
+
- [GSwap SDK Integration](./docs/GSWAP_INTEGRATION.md) - Deep dive into GSwap patterns, token formats, and advanced trading workflows
|
|
1849
|
+
|
|
1850
|
+
### Demo Scripts
|
|
1851
|
+
|
|
1852
|
+
**Liquidity Operations:**
|
|
1853
|
+
```bash
|
|
1854
|
+
# View all liquidity positions
|
|
1855
|
+
npm run demo:liquidity view
|
|
1856
|
+
|
|
1857
|
+
# Add liquidity to GALA/GUSDC pool
|
|
1858
|
+
npm run demo:liquidity add
|
|
1859
|
+
|
|
1860
|
+
# Collect fees from a position
|
|
1861
|
+
npm run demo:liquidity collect <position-id>
|
|
1862
|
+
|
|
1863
|
+
# Remove liquidity (100% or partial percentage)
|
|
1864
|
+
npm run demo:liquidity remove <position-id> [percentage]
|
|
1865
|
+
|
|
1866
|
+
# Show detailed transaction responses (multiple swaps)
|
|
1867
|
+
npm run demo:liquidity:detailed
|
|
1868
|
+
```
|
|
1869
|
+
|
|
1844
1870
|
## Architecture
|
|
1845
1871
|
|
|
1846
1872
|
The SDK uses a **service-based architecture** with backend-aligned services:
|
package/dist/LaunchpadSDK.d.ts
CHANGED
|
@@ -1773,7 +1773,7 @@ export declare class LaunchpadSDK {
|
|
|
1773
1773
|
* });
|
|
1774
1774
|
* ```
|
|
1775
1775
|
*/
|
|
1776
|
-
getSwapUserLiquidityPositions(ownerAddress: string, limit?: number, bookmark?: string): Promise<
|
|
1776
|
+
getSwapUserLiquidityPositions(ownerAddress: string, limit?: number, bookmark?: string): Promise<import("./types/gswap.dto").LiquidityPosition[]>;
|
|
1777
1777
|
/**
|
|
1778
1778
|
* Get specific liquidity position by token pair
|
|
1779
1779
|
*
|
|
@@ -1806,7 +1806,7 @@ export declare class LaunchpadSDK {
|
|
|
1806
1806
|
fee: number;
|
|
1807
1807
|
tickLower: number;
|
|
1808
1808
|
tickUpper: number;
|
|
1809
|
-
}): Promise<
|
|
1809
|
+
}): Promise<import("./types/gswap.dto").LiquidityPosition>;
|
|
1810
1810
|
/**
|
|
1811
1811
|
* Get liquidity position by position ID
|
|
1812
1812
|
*
|
|
@@ -1827,7 +1827,7 @@ export declare class LaunchpadSDK {
|
|
|
1827
1827
|
* );
|
|
1828
1828
|
* ```
|
|
1829
1829
|
*/
|
|
1830
|
-
getSwapLiquidityPositionById(ownerAddress: string, positionId: string): Promise<
|
|
1830
|
+
getSwapLiquidityPositionById(ownerAddress: string, positionId: string): Promise<import("./types/gswap.dto").LiquidityPosition>;
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Estimate tokens to receive when removing liquidity
|
|
1833
1833
|
*
|