@solard/cli 0.2.16 → 0.2.19

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.
@@ -5,7 +5,7 @@ import {
5
5
  buildPumpExternalDeployment,
6
6
  createTraderSolard,
7
7
  type PumpExternalDeploymentBuild,
8
- } from "@solard/sdk";
8
+ } from "@solard/core";
9
9
 
10
10
  export type ExternalPumpFlags = Map<string, string>;
11
11
 
@@ -13,7 +13,7 @@ import {
13
13
  type PumpSpamBuyRunResult,
14
14
  type PumpSpamBuySettings,
15
15
  type SenderId,
16
- } from "@solard/sdk";
16
+ } from "@solard/core";
17
17
  import {
18
18
  bigintFlag,
19
19
  enabled,
@@ -44,7 +44,7 @@ import {
44
44
  type TokenMetadata,
45
45
  type TraderSubmitMode,
46
46
  type VanityMintPoolReservation,
47
- } from "@solard/sdk";
47
+ } from "@solard/core";
48
48
 
49
49
  export type Flags = Map<string, string[]>;
50
50
 
@@ -1697,7 +1697,7 @@ export async function runPumpTokenLaunchFromArgs(
1697
1697
  spam,
1698
1698
  kind: `cli:launch:pump:${input.alias}`,
1699
1699
  reporter: report,
1700
- beforeDeploymentBroadcast:
1700
+ beforeDeploymentSubmission:
1701
1701
  armedEndpoints.length > 0
1702
1702
  ? async () => {
1703
1703
  await releaseArmedBuyerEndpoints({
@@ -1709,7 +1709,7 @@ export async function runPumpTokenLaunchFromArgs(
1709
1709
  });
1710
1710
  }
1711
1711
  : undefined,
1712
- onDeploymentBroadcastFailure:
1712
+ onDeploymentSubmissionFailure:
1713
1713
  armedEndpoints.length > 0
1714
1714
  ? async (error) => {
1715
1715
  await abortArmedBuyerEndpoints({
@@ -9,7 +9,7 @@ import {
9
9
  uploadPumpMetadata,
10
10
  type MetadataUploaderId,
11
11
  type PumpVampSourceMetadata,
12
- } from "@solard/sdk";
12
+ } from "@solard/core";
13
13
 
14
14
  import {
15
15
  first,
@@ -15,7 +15,7 @@ import {
15
15
  tokenAmount,
16
16
  type Solard,
17
17
  type TradeAsset,
18
- } from "@solard/sdk";
18
+ } from "@solard/core";
19
19
 
20
20
  type Flags = Map<string, string>;
21
21
  type Emit = (value: string) => void;
package/src/refs.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { findExternalContact } from "@solard/sdk";
1
+ import { findExternalContact } from "@solard/core";
2
2
 
3
3
  export type ResolvedDestinationRef = {
4
4
  input: string;
@@ -1,16 +1,13 @@
1
- import type { Solard } from "@solard/sdk";
1
+ import type { Solard } from "@solard/core";
2
2
  import {
3
3
  analyzeTokenHistory,
4
4
  analyzeTokenHistoryForensicsFromStore,
5
- backfillTokenHistory,
6
- backfillRaydiumTokenHistory,
7
5
  getTokenHistoryCoverage,
8
6
  loadTokenHistoryTrades,
9
- TokenHistoryError,
10
7
  type BackfillTokenHistoryOptions,
11
8
  type TokenHistoryCoverage,
12
9
  type TokenHistoryTrade,
13
- } from "@solard/sdk";
10
+ } from "@solard/core";
14
11
 
15
12
  export type TokenHistoryCliFlags = Map<string, string>;
16
13
 
@@ -212,34 +209,15 @@ async function runBackfill(args: {
212
209
  }
213
210
  },
214
211
  };
215
- let result: TokenHistoryCoverage;
216
- try {
217
- result = await backfillTokenHistory(
218
- args.slrd.connection(),
219
- args.mint,
220
- backfillOptions,
221
- );
222
- } catch (error) {
223
- if (
224
- !(error instanceof TokenHistoryError) ||
225
- error.code !== "UNSUPPORTED_TOKEN"
226
- )
227
- throw error;
228
- progress(
229
- "VENUE Pump history unsupported; trying Raydium/LaunchLab discovery",
230
- );
231
- result = await backfillRaydiumTokenHistory(
232
- args.slrd.connection(),
233
- args.mint,
234
- {
235
- ...backfillOptions,
236
- maxRaydiumPools: Math.max(
237
- 1,
238
- Math.trunc(numberFlag(args.flags, "raydium-pools", 8) ?? 8),
239
- ),
240
- },
241
- );
242
- }
212
+ const market = await args.slrd.history.market(args.mint, {
213
+ ...backfillOptions,
214
+ backfill: true,
215
+ maxRaydiumPools: Math.max(
216
+ 1,
217
+ Math.trunc(numberFlag(args.flags, "raydium-pools", 8) ?? 8),
218
+ ),
219
+ });
220
+ const result: TokenHistoryCoverage = market.coverage;
243
221
  if (jsonMode) {
244
222
  args.emit(`${json(result)}\n`);
245
223
  return;
@@ -115,7 +115,7 @@ async function confirmNewPassword(): Promise<string> {
115
115
 
116
116
  async function validateAllStoredWallets(password: string): Promise<void> {
117
117
  setMasterKey(password);
118
- const { createTraderSolard } = await import("@solard/sdk");
118
+ const { createTraderSolard } = await import("@solard/core");
119
119
  const probe = createTraderSolard();
120
120
  try {
121
121
  const integrity = probe.wallets.integrity();