madeonsol 2.26.1 → 2.28.0
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 +1635 -1606
- package/dist/index.d.ts +126 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/dist/stream.d.ts +313 -17
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +672 -31
- package/dist/stream.js.map +1 -1
- package/package.json +72 -71
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MadeOnSolStream } from "./stream.js";
|
|
2
2
|
import type { StreamClientOptions } from "./stream.js";
|
|
3
|
-
export { MadeOnSolStream } from "./stream.js";
|
|
4
|
-
export type { StreamClientOptions, StreamChannel, StreamEventName, StreamEvent, StreamLifecycleEvent, } from "./stream.js";
|
|
3
|
+
export { MadeOnSolStream, STREAM_CHANNELS } from "./stream.js";
|
|
4
|
+
export type { StreamClientOptions, StreamChannel, StreamEventName, StreamEvent, StreamLifecycleEvent, StreamWarning, StreamCursor, StreamReplayResult, StreamGap, StreamFatal, } from "./stream.js";
|
|
5
5
|
export declare class MadeOnSolError extends Error {
|
|
6
6
|
readonly status: number;
|
|
7
7
|
readonly body: unknown;
|
|
@@ -1192,6 +1192,112 @@ export interface DeployerHistoryResponse {
|
|
|
1192
1192
|
wallet: string;
|
|
1193
1193
|
snapshots: DeployerHistorySnapshot[];
|
|
1194
1194
|
}
|
|
1195
|
+
export interface DeployerAsOfParams {
|
|
1196
|
+
/** YYYY-MM-DD (UTC). Default: today. Must be >= 2026-04-07 and not in the future. */
|
|
1197
|
+
date?: string;
|
|
1198
|
+
}
|
|
1199
|
+
/** The reputation snapshot current on the requested date — `snapshot_date` can be
|
|
1200
|
+
* earlier than `requested_date` (snapshots are write-on-change); `carried: true`
|
|
1201
|
+
* means the state was recorded earlier and had not changed by then. */
|
|
1202
|
+
export interface DeployerAsOfSnapshot {
|
|
1203
|
+
snapshot_date: string;
|
|
1204
|
+
carried: boolean;
|
|
1205
|
+
tier: string | null;
|
|
1206
|
+
is_tracked: boolean | null;
|
|
1207
|
+
total_deployed: number | null;
|
|
1208
|
+
total_bonded: number | null;
|
|
1209
|
+
bonding_rate: number | null;
|
|
1210
|
+
recent_bond_rate: number | null;
|
|
1211
|
+
avg_peak_mc: number | null;
|
|
1212
|
+
best_token_peak_mc: number | null;
|
|
1213
|
+
captured_at: string | null;
|
|
1214
|
+
}
|
|
1215
|
+
export interface DeployerAsOfResponse {
|
|
1216
|
+
is_deployer: boolean;
|
|
1217
|
+
wallet: string;
|
|
1218
|
+
requested_date: string;
|
|
1219
|
+
/** true when a snapshot at or before requested_date exists. */
|
|
1220
|
+
as_of: boolean;
|
|
1221
|
+
/** null when no snapshot exists at or before requested_date — nothing is ever synthesized. */
|
|
1222
|
+
snapshot: DeployerAsOfSnapshot | null;
|
|
1223
|
+
first_snapshot_date: string | null;
|
|
1224
|
+
note: string;
|
|
1225
|
+
}
|
|
1226
|
+
/** sol / usdc are summed separately (never mixed); usd is null (not 0) when a SOL
|
|
1227
|
+
* amount exists and no SOL price was available. */
|
|
1228
|
+
export interface DeployerRewardsMoney {
|
|
1229
|
+
sol: number;
|
|
1230
|
+
usdc: number;
|
|
1231
|
+
usd: number | null;
|
|
1232
|
+
}
|
|
1233
|
+
export interface DeployerRewardsRail extends DeployerRewardsMoney {
|
|
1234
|
+
count: number;
|
|
1235
|
+
first_at: string | null;
|
|
1236
|
+
last_at: string | null;
|
|
1237
|
+
}
|
|
1238
|
+
export interface DeployerRewardsSocial {
|
|
1239
|
+
platform: number;
|
|
1240
|
+
user_id: string;
|
|
1241
|
+
}
|
|
1242
|
+
export interface DeployerRewardsTopToken {
|
|
1243
|
+
mint: string;
|
|
1244
|
+
quote: "SOL" | "USDC";
|
|
1245
|
+
total: number;
|
|
1246
|
+
total_usd: number | null;
|
|
1247
|
+
to_self: number;
|
|
1248
|
+
to_self_usd: number | null;
|
|
1249
|
+
payouts: number;
|
|
1250
|
+
recipients: number;
|
|
1251
|
+
last_at: string;
|
|
1252
|
+
}
|
|
1253
|
+
export interface DeployerRewardsTopRecipient {
|
|
1254
|
+
address: string;
|
|
1255
|
+
quote: "SOL" | "USDC";
|
|
1256
|
+
total: number;
|
|
1257
|
+
total_usd: number | null;
|
|
1258
|
+
tokens: number;
|
|
1259
|
+
payouts: number;
|
|
1260
|
+
last_at: string;
|
|
1261
|
+
is_self: boolean;
|
|
1262
|
+
is_social_pda: boolean;
|
|
1263
|
+
social: DeployerRewardsSocial | null;
|
|
1264
|
+
}
|
|
1265
|
+
export interface DeployerRewardsResponse {
|
|
1266
|
+
wallet: string;
|
|
1267
|
+
is_deployer: boolean;
|
|
1268
|
+
/** Tokens attributed to this wallet in our token table — the universe `attributed`
|
|
1269
|
+
* is computed over. NOT the same count as the deployer profile's total deploys. */
|
|
1270
|
+
tokens_in_scope: number;
|
|
1271
|
+
collected: DeployerRewardsMoney & {
|
|
1272
|
+
direct_claims: DeployerRewardsRail & {
|
|
1273
|
+
window_days: number;
|
|
1274
|
+
};
|
|
1275
|
+
social_claims: DeployerRewardsRail;
|
|
1276
|
+
share_payouts: DeployerRewardsRail & {
|
|
1277
|
+
tokens: number;
|
|
1278
|
+
on_own_tokens: DeployerRewardsMoney;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
attributed: DeployerRewardsRail & {
|
|
1282
|
+
to_self: DeployerRewardsMoney;
|
|
1283
|
+
to_others: DeployerRewardsMoney;
|
|
1284
|
+
/** Share of attributed fees redirected away from the deployer, 0–100. Null with no attributed fees. */
|
|
1285
|
+
redirected_pct: number | null;
|
|
1286
|
+
tokens_with_payouts: number;
|
|
1287
|
+
distributions: number;
|
|
1288
|
+
recipients: number;
|
|
1289
|
+
};
|
|
1290
|
+
top_tokens: DeployerRewardsTopToken[];
|
|
1291
|
+
top_recipients: DeployerRewardsTopRecipient[];
|
|
1292
|
+
quote: {
|
|
1293
|
+
sol_usd: number | null;
|
|
1294
|
+
};
|
|
1295
|
+
coverage: {
|
|
1296
|
+
payouts_since: string;
|
|
1297
|
+
direct_claims_window_days: number;
|
|
1298
|
+
note: string;
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1195
1301
|
export type AlphaSort = "win_rate" | "pnl" | "roi";
|
|
1196
1302
|
export type AlphaPeriod = "7d" | "30d" | "all";
|
|
1197
1303
|
export interface AlphaLeaderboardParams {
|
|
@@ -4129,6 +4235,24 @@ declare class DeployerClient {
|
|
|
4129
4235
|
* @param opts Optional: limit (1–365 daily snapshots, default 90).
|
|
4130
4236
|
*/
|
|
4131
4237
|
deployerHistory(wallet: string, opts?: DeployerHistoryParams): Promise<DeployerHistoryResponse>;
|
|
4238
|
+
/**
|
|
4239
|
+
* A deployer's reputation exactly as it stood on a given date — the latest
|
|
4240
|
+
* write-on-change snapshot at or before it, so a backtest sees only what was
|
|
4241
|
+
* knowable then. Nothing is ever synthesized: before the deployer's first
|
|
4242
|
+
* snapshot you get `as_of: false, snapshot: null`.
|
|
4243
|
+
* @param wallet Deployer wallet address.
|
|
4244
|
+
* @param opts Optional: `date` (YYYY-MM-DD, default today).
|
|
4245
|
+
*/
|
|
4246
|
+
deployerAsOf(wallet: string, opts?: DeployerAsOfParams): Promise<DeployerAsOfResponse>;
|
|
4247
|
+
/**
|
|
4248
|
+
* pump.fun creator-fee rewards for a wallet, answered two ways that are never
|
|
4249
|
+
* merged: `collected` (what actually reached the wallet — direct vault claims,
|
|
4250
|
+
* social-handle claims, shareholder payouts on any token) and `attributed`
|
|
4251
|
+
* (every payout on the tokens this wallet deployed, split `to_self`/`to_others`
|
|
4252
|
+
* with `redirected_pct`). Works for non-deployers too (`is_deployer: false`).
|
|
4253
|
+
* @param wallet Wallet address.
|
|
4254
|
+
*/
|
|
4255
|
+
deployerRewards(wallet: string): Promise<DeployerRewardsResponse>;
|
|
4132
4256
|
}
|
|
4133
4257
|
declare class WalletTrackerClient {
|
|
4134
4258
|
private readonly _get;
|