@gala-chain/launchpad-sdk 3.0.0 → 3.0.2

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.
@@ -216,13 +216,13 @@ export declare class LaunchpadAPI {
216
216
  * ```typescript
217
217
  * // Calculate tokens received when spending 1 GALA
218
218
  * const result = await sdk.launchpad.getBuyTokenAmount("dragnrkti", {
219
- * amount: "1000000000000000000", // 1 GALA in wei
219
+ * amount: "1", // 1 GALA
220
220
  * type: "native"
221
221
  * });
222
222
  *
223
223
  * // Calculate GALA cost for buying 100 tokens
224
224
  * const result = await sdk.launchpad.getBuyTokenAmount("dragnrkti", {
225
- * amount: "100000000000000000000", // 100 tokens in wei
225
+ * amount: "100", // 100 tokens
226
226
  * type: "exact"
227
227
  * });
228
228
  * ```
@@ -242,13 +242,13 @@ export declare class LaunchpadAPI {
242
242
  * ```typescript
243
243
  * // Calculate GALA received when selling 50 tokens
244
244
  * const result = await sdk.launchpad.getSellTokenAmount("dragnrkti", {
245
- * amount: "50000000000000000000", // 50 tokens in wei
245
+ * amount: "50", // 50 tokens
246
246
  * type: "exact"
247
247
  * });
248
248
  *
249
249
  * // Calculate tokens needed to receive 0.5 GALA
250
250
  * const result = await sdk.launchpad.getSellTokenAmount("dragnrkti", {
251
- * amount: "500000000000000000", // 0.5 GALA in wei
251
+ * amount: "0.5", // 0.5 GALA
252
252
  * type: "native"
253
253
  * });
254
254
  * ```
@@ -21,5 +21,5 @@ export type { TransferGalaData, TransferTokenData, TransferError, TransferErrorT
21
21
  export type { FetchVolumeDataOptions, FetchTradesOptions, FetchCommentsOptions, PostCommentOptions, CalculateBuyAmountOptions, CalculateSellAmountOptions, BuyTokenOptions, SellTokenOptions, UploadImageByTokenNameOptions, FetchTokensHeldOptions, FetchTokensCreatedOptions, } from './types/options.dto';
22
22
  export type { BaseTransactionResult, TokenLaunchResult, TradeResult, TransferResult, CommentResult, TransactionResult, } from './types/result.types';
23
23
  export { SDKTransactionStatus, } from './types/websocket.types';
24
- export declare const SDK_VERSION = "3.0.0";
24
+ export declare const SDK_VERSION = "3.0.2";
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -162,7 +162,7 @@ export declare class GalaChainService {
162
162
  * ```typescript
163
163
  * const transactionId = await galaChainService.transferGala({
164
164
  * recipientAddress: 'eth|1234567890abcdef1234567890abcdef12345678',
165
- * amount: '1000000000000000000' // 1 GALA in wei
165
+ * amount: '1' // 1 GALA
166
166
  * });
167
167
  *
168
168
  * console.log('GALA transfer successful:', transactionId);
@@ -389,7 +389,7 @@ export declare class LaunchpadService {
389
389
  * ```typescript
390
390
  * await service.transferFaucets({
391
391
  * walletAddress: "eth|1234567890abcdef1234567890abcdef12345678",
392
- * amount: "1000000000000000000" // 1 token with 18 decimals
392
+ * amount: "1" // 1 token
393
393
  * });
394
394
  * ```
395
395
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-sdk",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "TypeScript SDK for Gala Launchpad Backend API - Production-ready DeFi token launchpad integration with wallet-based authentication, GalaChain trading, and comprehensive user operations. 100% tested (22/22 endpoints working).",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -124,12 +124,11 @@
124
124
  "not ie 11"
125
125
  ],
126
126
  "dependencies": {
127
- "@gala-chain/api": "^1.10.10",
127
+ "@gala-chain/api": "^2.4.3",
128
128
  "@gala-chain/connect": "^2.4.3",
129
129
  "@types/uuid": "^10.0.0",
130
130
  "axios": "^1.12.2",
131
131
  "bignumber.js": "^9.1.2",
132
- "chalk": "^4.1.2",
133
132
  "crypto-js": "^4.2.0",
134
133
  "dotenv": "^17.2.3",
135
134
  "ethers": "^6.15.0",