@gala-chain/launchpad-sdk 3.0.0 → 3.0.1
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 +9 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/api/LaunchpadAPI.d.ts +4 -4
- package/dist/src/index.d.ts +1 -1
- package/dist/src/services/GalaChainService.d.ts +1 -1
- package/dist/src/services/LaunchpadService.d.ts +1 -1
- package/package.json +2 -3
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
251
|
+
* amount: "0.5", // 0.5 GALA
|
|
252
252
|
* type: "native"
|
|
253
253
|
* });
|
|
254
254
|
* ```
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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.
|
|
24
|
+
export declare const SDK_VERSION = "3.0.1";
|
|
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: '
|
|
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: "
|
|
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.
|
|
3
|
+
"version": "3.0.1",
|
|
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": "^
|
|
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",
|