logiqical 0.0.9 → 0.0.10
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/dist/index.d.mts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +47 -0
- package/dist/index.mjs +47 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -195,6 +195,32 @@ interface LaunchpadSellResponse {
|
|
|
195
195
|
summary?: string;
|
|
196
196
|
note?: string;
|
|
197
197
|
}
|
|
198
|
+
interface ArenaCommunity {
|
|
199
|
+
id: string;
|
|
200
|
+
signer: string;
|
|
201
|
+
isTemporary: boolean;
|
|
202
|
+
name: string;
|
|
203
|
+
tokenName: string;
|
|
204
|
+
ticker: string;
|
|
205
|
+
photoURL: string;
|
|
206
|
+
paymentToken: string;
|
|
207
|
+
contractAddress: string | null;
|
|
208
|
+
createdOn: string;
|
|
209
|
+
}
|
|
210
|
+
interface LaunchTokenResponse {
|
|
211
|
+
community: ArenaCommunity;
|
|
212
|
+
imageUrl: string;
|
|
213
|
+
transaction: UnsignedTx;
|
|
214
|
+
nextTokenId: string;
|
|
215
|
+
instructions: string[];
|
|
216
|
+
}
|
|
217
|
+
interface UploadImageResponse {
|
|
218
|
+
imageUrl: string;
|
|
219
|
+
}
|
|
220
|
+
interface BuildCreateResponse {
|
|
221
|
+
transaction: UnsignedTx;
|
|
222
|
+
nextTokenId: string;
|
|
223
|
+
}
|
|
198
224
|
interface DexTokenEntry {
|
|
199
225
|
symbol: string;
|
|
200
226
|
address: string;
|
|
@@ -407,6 +433,36 @@ declare class LaunchpadModule {
|
|
|
407
433
|
* @param offset - Pagination offset
|
|
408
434
|
*/
|
|
409
435
|
getTrades(count?: number, offset?: number): Promise<GlobalTradesResponse>;
|
|
436
|
+
/**
|
|
437
|
+
* Launch a new token on Arena — uploads image, creates community, and returns the unsigned createToken transaction.
|
|
438
|
+
*
|
|
439
|
+
* @param wallet - Creator wallet address
|
|
440
|
+
* @param name - Token name (also used as community name)
|
|
441
|
+
* @param symbol - Token ticker symbol
|
|
442
|
+
* @param imageBase64 - Token image as base64 string (optional)
|
|
443
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
444
|
+
* @param initialBuyAvax - AVAX amount for initial buy at creation (default: "0")
|
|
445
|
+
*/
|
|
446
|
+
launch(wallet: string, name: string, symbol: string, imageBase64?: string, paymentToken?: "avax" | "arena", initialBuyAvax?: string): Promise<LaunchTokenResponse>;
|
|
447
|
+
/**
|
|
448
|
+
* Upload a token image to Arena's CDN and get the hosted URL.
|
|
449
|
+
* Use this before launch() if you want to preview the image URL first.
|
|
450
|
+
*
|
|
451
|
+
* @param imageBase64 - Image as base64 string
|
|
452
|
+
* @param fileType - MIME type (default: "image/jpeg")
|
|
453
|
+
*/
|
|
454
|
+
uploadImage(imageBase64: string, fileType?: string): Promise<UploadImageResponse>;
|
|
455
|
+
/**
|
|
456
|
+
* Build only the createToken transaction (no image or community creation).
|
|
457
|
+
* Useful if you want to handle image upload and community creation separately.
|
|
458
|
+
*
|
|
459
|
+
* @param wallet - Creator wallet address
|
|
460
|
+
* @param name - Token name
|
|
461
|
+
* @param symbol - Token ticker symbol
|
|
462
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
463
|
+
* @param initialBuyAvax - AVAX for initial buy (default: "0")
|
|
464
|
+
*/
|
|
465
|
+
buildCreate(wallet: string, name: string, symbol: string, paymentToken?: "avax" | "arena", initialBuyAvax?: string): Promise<BuildCreateResponse>;
|
|
410
466
|
/**
|
|
411
467
|
* Build unsigned transaction to buy a launchpad token with AVAX.
|
|
412
468
|
*
|
|
@@ -549,4 +605,4 @@ declare class LogiqicalAuthError extends LogiqicalError {
|
|
|
549
605
|
constructor(endpoint: string);
|
|
550
606
|
}
|
|
551
607
|
|
|
552
|
-
export { type BalancesResponse, type BroadcastResponse, type BuyQuoteResponse, type DexBalanceResponse, DexModule, type DexQuoteResponse, type DexSwapResponse, type DexTokenEntry, type DexTokenInfoResponse, type DexTokensResponse, type GlobalTradeEntry, type GlobalTradesResponse, type HealthResponse, type HolderEntry, type LaunchpadBuyResponse, type LaunchpadListResponse, LaunchpadModule, type LaunchpadQuoteResponse, type LaunchpadSellResponse, type LaunchpadToken, LogiqicalAuthError, LogiqicalClient, type LogiqicalConfig, LogiqicalError, type RegisterResponse, type SellQuoteResponse, type StakeBuildResponse, type StakeInfoResponse, StakingModule, type SwapBuyResponse, SwapModule, type SwapSellResponse, type TokenActivityResponse, type TokenCreator, type TokenDetailResponse, type TokenHoldersResponse, type TokenStatsTimeframes, type TradeEntry, type UnsignedTx };
|
|
608
|
+
export { type ArenaCommunity, type BalancesResponse, type BroadcastResponse, type BuildCreateResponse, type BuyQuoteResponse, type DexBalanceResponse, DexModule, type DexQuoteResponse, type DexSwapResponse, type DexTokenEntry, type DexTokenInfoResponse, type DexTokensResponse, type GlobalTradeEntry, type GlobalTradesResponse, type HealthResponse, type HolderEntry, type LaunchTokenResponse, type LaunchpadBuyResponse, type LaunchpadListResponse, LaunchpadModule, type LaunchpadQuoteResponse, type LaunchpadSellResponse, type LaunchpadToken, LogiqicalAuthError, LogiqicalClient, type LogiqicalConfig, LogiqicalError, type RegisterResponse, type SellQuoteResponse, type StakeBuildResponse, type StakeInfoResponse, StakingModule, type SwapBuyResponse, SwapModule, type SwapSellResponse, type TokenActivityResponse, type TokenCreator, type TokenDetailResponse, type TokenHoldersResponse, type TokenStatsTimeframes, type TradeEntry, type UnsignedTx, type UploadImageResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -195,6 +195,32 @@ interface LaunchpadSellResponse {
|
|
|
195
195
|
summary?: string;
|
|
196
196
|
note?: string;
|
|
197
197
|
}
|
|
198
|
+
interface ArenaCommunity {
|
|
199
|
+
id: string;
|
|
200
|
+
signer: string;
|
|
201
|
+
isTemporary: boolean;
|
|
202
|
+
name: string;
|
|
203
|
+
tokenName: string;
|
|
204
|
+
ticker: string;
|
|
205
|
+
photoURL: string;
|
|
206
|
+
paymentToken: string;
|
|
207
|
+
contractAddress: string | null;
|
|
208
|
+
createdOn: string;
|
|
209
|
+
}
|
|
210
|
+
interface LaunchTokenResponse {
|
|
211
|
+
community: ArenaCommunity;
|
|
212
|
+
imageUrl: string;
|
|
213
|
+
transaction: UnsignedTx;
|
|
214
|
+
nextTokenId: string;
|
|
215
|
+
instructions: string[];
|
|
216
|
+
}
|
|
217
|
+
interface UploadImageResponse {
|
|
218
|
+
imageUrl: string;
|
|
219
|
+
}
|
|
220
|
+
interface BuildCreateResponse {
|
|
221
|
+
transaction: UnsignedTx;
|
|
222
|
+
nextTokenId: string;
|
|
223
|
+
}
|
|
198
224
|
interface DexTokenEntry {
|
|
199
225
|
symbol: string;
|
|
200
226
|
address: string;
|
|
@@ -407,6 +433,36 @@ declare class LaunchpadModule {
|
|
|
407
433
|
* @param offset - Pagination offset
|
|
408
434
|
*/
|
|
409
435
|
getTrades(count?: number, offset?: number): Promise<GlobalTradesResponse>;
|
|
436
|
+
/**
|
|
437
|
+
* Launch a new token on Arena — uploads image, creates community, and returns the unsigned createToken transaction.
|
|
438
|
+
*
|
|
439
|
+
* @param wallet - Creator wallet address
|
|
440
|
+
* @param name - Token name (also used as community name)
|
|
441
|
+
* @param symbol - Token ticker symbol
|
|
442
|
+
* @param imageBase64 - Token image as base64 string (optional)
|
|
443
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
444
|
+
* @param initialBuyAvax - AVAX amount for initial buy at creation (default: "0")
|
|
445
|
+
*/
|
|
446
|
+
launch(wallet: string, name: string, symbol: string, imageBase64?: string, paymentToken?: "avax" | "arena", initialBuyAvax?: string): Promise<LaunchTokenResponse>;
|
|
447
|
+
/**
|
|
448
|
+
* Upload a token image to Arena's CDN and get the hosted URL.
|
|
449
|
+
* Use this before launch() if you want to preview the image URL first.
|
|
450
|
+
*
|
|
451
|
+
* @param imageBase64 - Image as base64 string
|
|
452
|
+
* @param fileType - MIME type (default: "image/jpeg")
|
|
453
|
+
*/
|
|
454
|
+
uploadImage(imageBase64: string, fileType?: string): Promise<UploadImageResponse>;
|
|
455
|
+
/**
|
|
456
|
+
* Build only the createToken transaction (no image or community creation).
|
|
457
|
+
* Useful if you want to handle image upload and community creation separately.
|
|
458
|
+
*
|
|
459
|
+
* @param wallet - Creator wallet address
|
|
460
|
+
* @param name - Token name
|
|
461
|
+
* @param symbol - Token ticker symbol
|
|
462
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
463
|
+
* @param initialBuyAvax - AVAX for initial buy (default: "0")
|
|
464
|
+
*/
|
|
465
|
+
buildCreate(wallet: string, name: string, symbol: string, paymentToken?: "avax" | "arena", initialBuyAvax?: string): Promise<BuildCreateResponse>;
|
|
410
466
|
/**
|
|
411
467
|
* Build unsigned transaction to buy a launchpad token with AVAX.
|
|
412
468
|
*
|
|
@@ -549,4 +605,4 @@ declare class LogiqicalAuthError extends LogiqicalError {
|
|
|
549
605
|
constructor(endpoint: string);
|
|
550
606
|
}
|
|
551
607
|
|
|
552
|
-
export { type BalancesResponse, type BroadcastResponse, type BuyQuoteResponse, type DexBalanceResponse, DexModule, type DexQuoteResponse, type DexSwapResponse, type DexTokenEntry, type DexTokenInfoResponse, type DexTokensResponse, type GlobalTradeEntry, type GlobalTradesResponse, type HealthResponse, type HolderEntry, type LaunchpadBuyResponse, type LaunchpadListResponse, LaunchpadModule, type LaunchpadQuoteResponse, type LaunchpadSellResponse, type LaunchpadToken, LogiqicalAuthError, LogiqicalClient, type LogiqicalConfig, LogiqicalError, type RegisterResponse, type SellQuoteResponse, type StakeBuildResponse, type StakeInfoResponse, StakingModule, type SwapBuyResponse, SwapModule, type SwapSellResponse, type TokenActivityResponse, type TokenCreator, type TokenDetailResponse, type TokenHoldersResponse, type TokenStatsTimeframes, type TradeEntry, type UnsignedTx };
|
|
608
|
+
export { type ArenaCommunity, type BalancesResponse, type BroadcastResponse, type BuildCreateResponse, type BuyQuoteResponse, type DexBalanceResponse, DexModule, type DexQuoteResponse, type DexSwapResponse, type DexTokenEntry, type DexTokenInfoResponse, type DexTokensResponse, type GlobalTradeEntry, type GlobalTradesResponse, type HealthResponse, type HolderEntry, type LaunchTokenResponse, type LaunchpadBuyResponse, type LaunchpadListResponse, LaunchpadModule, type LaunchpadQuoteResponse, type LaunchpadSellResponse, type LaunchpadToken, LogiqicalAuthError, LogiqicalClient, type LogiqicalConfig, LogiqicalError, type RegisterResponse, type SellQuoteResponse, type StakeBuildResponse, type StakeInfoResponse, StakingModule, type SwapBuyResponse, SwapModule, type SwapSellResponse, type TokenActivityResponse, type TokenCreator, type TokenDetailResponse, type TokenHoldersResponse, type TokenStatsTimeframes, type TradeEntry, type UnsignedTx, type UploadImageResponse };
|
package/dist/index.js
CHANGED
|
@@ -327,6 +327,53 @@ var LaunchpadModule = class {
|
|
|
327
327
|
await this.auth();
|
|
328
328
|
return this.http.get("/launchpad/trades", { count, offset });
|
|
329
329
|
}
|
|
330
|
+
// ── Token Launch ──
|
|
331
|
+
/**
|
|
332
|
+
* Launch a new token on Arena — uploads image, creates community, and returns the unsigned createToken transaction.
|
|
333
|
+
*
|
|
334
|
+
* @param wallet - Creator wallet address
|
|
335
|
+
* @param name - Token name (also used as community name)
|
|
336
|
+
* @param symbol - Token ticker symbol
|
|
337
|
+
* @param imageBase64 - Token image as base64 string (optional)
|
|
338
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
339
|
+
* @param initialBuyAvax - AVAX amount for initial buy at creation (default: "0")
|
|
340
|
+
*/
|
|
341
|
+
async launch(wallet, name, symbol, imageBase64, paymentToken = "arena", initialBuyAvax = "0") {
|
|
342
|
+
await this.auth();
|
|
343
|
+
return this.http.post("/launchpad/launch", {
|
|
344
|
+
wallet,
|
|
345
|
+
name,
|
|
346
|
+
symbol,
|
|
347
|
+
imageBase64,
|
|
348
|
+
paymentToken,
|
|
349
|
+
initialBuyAvax
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Upload a token image to Arena's CDN and get the hosted URL.
|
|
354
|
+
* Use this before launch() if you want to preview the image URL first.
|
|
355
|
+
*
|
|
356
|
+
* @param imageBase64 - Image as base64 string
|
|
357
|
+
* @param fileType - MIME type (default: "image/jpeg")
|
|
358
|
+
*/
|
|
359
|
+
async uploadImage(imageBase64, fileType = "image/jpeg") {
|
|
360
|
+
await this.auth();
|
|
361
|
+
return this.http.post("/launchpad/upload-image", { imageBase64, fileType });
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Build only the createToken transaction (no image or community creation).
|
|
365
|
+
* Useful if you want to handle image upload and community creation separately.
|
|
366
|
+
*
|
|
367
|
+
* @param wallet - Creator wallet address
|
|
368
|
+
* @param name - Token name
|
|
369
|
+
* @param symbol - Token ticker symbol
|
|
370
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
371
|
+
* @param initialBuyAvax - AVAX for initial buy (default: "0")
|
|
372
|
+
*/
|
|
373
|
+
async buildCreate(wallet, name, symbol, paymentToken = "arena", initialBuyAvax = "0") {
|
|
374
|
+
await this.auth();
|
|
375
|
+
return this.http.get("/launchpad/build/create", { wallet, name, symbol, paymentToken, initialBuyAvax });
|
|
376
|
+
}
|
|
330
377
|
// ── Trading ──
|
|
331
378
|
/**
|
|
332
379
|
* Build unsigned transaction to buy a launchpad token with AVAX.
|
package/dist/index.mjs
CHANGED
|
@@ -295,6 +295,53 @@ var LaunchpadModule = class {
|
|
|
295
295
|
await this.auth();
|
|
296
296
|
return this.http.get("/launchpad/trades", { count, offset });
|
|
297
297
|
}
|
|
298
|
+
// ── Token Launch ──
|
|
299
|
+
/**
|
|
300
|
+
* Launch a new token on Arena — uploads image, creates community, and returns the unsigned createToken transaction.
|
|
301
|
+
*
|
|
302
|
+
* @param wallet - Creator wallet address
|
|
303
|
+
* @param name - Token name (also used as community name)
|
|
304
|
+
* @param symbol - Token ticker symbol
|
|
305
|
+
* @param imageBase64 - Token image as base64 string (optional)
|
|
306
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
307
|
+
* @param initialBuyAvax - AVAX amount for initial buy at creation (default: "0")
|
|
308
|
+
*/
|
|
309
|
+
async launch(wallet, name, symbol, imageBase64, paymentToken = "arena", initialBuyAvax = "0") {
|
|
310
|
+
await this.auth();
|
|
311
|
+
return this.http.post("/launchpad/launch", {
|
|
312
|
+
wallet,
|
|
313
|
+
name,
|
|
314
|
+
symbol,
|
|
315
|
+
imageBase64,
|
|
316
|
+
paymentToken,
|
|
317
|
+
initialBuyAvax
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Upload a token image to Arena's CDN and get the hosted URL.
|
|
322
|
+
* Use this before launch() if you want to preview the image URL first.
|
|
323
|
+
*
|
|
324
|
+
* @param imageBase64 - Image as base64 string
|
|
325
|
+
* @param fileType - MIME type (default: "image/jpeg")
|
|
326
|
+
*/
|
|
327
|
+
async uploadImage(imageBase64, fileType = "image/jpeg") {
|
|
328
|
+
await this.auth();
|
|
329
|
+
return this.http.post("/launchpad/upload-image", { imageBase64, fileType });
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Build only the createToken transaction (no image or community creation).
|
|
333
|
+
* Useful if you want to handle image upload and community creation separately.
|
|
334
|
+
*
|
|
335
|
+
* @param wallet - Creator wallet address
|
|
336
|
+
* @param name - Token name
|
|
337
|
+
* @param symbol - Token ticker symbol
|
|
338
|
+
* @param paymentToken - "avax" or "arena" (default: "arena")
|
|
339
|
+
* @param initialBuyAvax - AVAX for initial buy (default: "0")
|
|
340
|
+
*/
|
|
341
|
+
async buildCreate(wallet, name, symbol, paymentToken = "arena", initialBuyAvax = "0") {
|
|
342
|
+
await this.auth();
|
|
343
|
+
return this.http.get("/launchpad/build/create", { wallet, name, symbol, paymentToken, initialBuyAvax });
|
|
344
|
+
}
|
|
298
345
|
// ── Trading ──
|
|
299
346
|
/**
|
|
300
347
|
* Build unsigned transaction to buy a launchpad token with AVAX.
|