@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.
- package/package.json +4 -3
- package/src/accounting-commands.ts +621 -0
- package/src/backtest-batch-command.ts +1 -1
- package/src/backtest-command.ts +1 -1
- package/src/commands/buy.ts +1 -1
- package/src/commands/jupiter-swap.ts +1 -1
- package/src/commands/sell.ts +1 -1
- package/src/commands/trade-result.ts +5 -1
- package/src/commands/trade-targets.ts +1 -1
- package/src/commands/trade-venue.ts +1 -1
- package/src/commands/transfer.ts +1 -1
- package/src/fairfun-commands.ts +213 -61
- package/src/index.ts +246 -116
- package/src/meteora-commands.ts +1 -1
- package/src/pump/external-deployment-cli.ts +1 -1
- package/src/pump/spam-buy-cli.ts +1 -1
- package/src/pump/token-launch-cli.ts +3 -3
- package/src/pump/vamp-cli.ts +1 -1
- package/src/raydium-commands.ts +1 -1
- package/src/refs.ts +1 -1
- package/src/token-history-command.ts +11 -33
- package/src/vault-onboarding.ts +1 -1
package/src/pump/spam-buy-cli.ts
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
type TokenMetadata,
|
|
45
45
|
type TraderSubmitMode,
|
|
46
46
|
type VanityMintPoolReservation,
|
|
47
|
-
} from "@solard/
|
|
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
|
-
|
|
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
|
-
|
|
1712
|
+
onDeploymentSubmissionFailure:
|
|
1713
1713
|
armedEndpoints.length > 0
|
|
1714
1714
|
? async (error) => {
|
|
1715
1715
|
await abortArmedBuyerEndpoints({
|
package/src/pump/vamp-cli.ts
CHANGED
package/src/raydium-commands.ts
CHANGED
package/src/refs.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import type { Solard } from "@solard/
|
|
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/
|
|
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
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
)
|
|
222
|
-
}
|
|
223
|
-
|
|
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;
|
package/src/vault-onboarding.ts
CHANGED
|
@@ -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/
|
|
118
|
+
const { createTraderSolard } = await import("@solard/core");
|
|
119
119
|
const probe = createTraderSolard();
|
|
120
120
|
try {
|
|
121
121
|
const integrity = probe.wallets.integrity();
|