madeonsol 4.0.0 → 4.1.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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 MadeOnSol
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 MadeOnSol
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -14,6 +14,8 @@ Official TypeScript/JavaScript SDK for the **[MadeOnSol](https://madeonsol.com)
14
14
 
15
15
  > **Migrating to 4.0.0.** Runtime API behaviour is not intentionally changing: the server sends exactly what it sent before. The breaking change is the corrected public **type contract**. Several 3.x response types described field names and shapes the API never returned, so code that compiled against them read `undefined` at runtime. Rewritten or renamed types: `KolWalletProfile` (`kol` / `stats` / `scores` / `peer_ranks` / `recent_trades` / `pnl_by_token`), `KolTokenActivity` (`token_mint` / `summary` / `kols[]`), alpha linked wallets (`linked`, was `linked_wallets`), `DeployerTokenRow` (`token_mint`, was `mint`), wallet-tracker trade events (`slot`, `ingested_at`, `ordered_by`, `next_cursor_slot`; keys the API never sent are now optional and `@deprecated`), `DeployerProfileResponse` (from 3.0.0). Several previously required fields are now optional because the API omits or nulls them. Update the field names your code reads; no request-side change is needed.
16
16
 
17
+ > **New in 4.1.0 (deployer activity timeline).** `client.deployer.deployerActivity(wallet, { limit?, cursor?, since?, types? })` (typed `DeployerActivityResponse`) binds `GET /deployer-hunter/{wallet}/activity`: one newest-first timeline of launches, the deployer's own dev buys/sells, creator transfers, fee claims, funding in and capital out, windowed on each event's own time (PRO 30 d, ULTRA 365 d, BUSINESS unbounded; page clamped to 100 / 100 / 500 and echoed in `plan`). History is served from the online store only for now: read `coverage.families.<family>.complete`, `archive_required_before` and `plan.history.archive_only` before treating an empty range as "nothing happened". A wallet with no attributed launch reports `dev_trades.skipped_reason: "no_attributed_launch"`. PRO responses never carry an identity block or a fee-payer address; ULTRA/BUSINESS `identity` is `not_available` until identity stitching is released. **PRO+**. New types: `DeployerActivityResponse`, `DeployerActivityParams`, `DeployerActivityEvent`, `DeployerActivityEventType`, `DeployerActivityFamilyCoverage`, `DeployerActivityHistoryPlan`, `DeployerActivityRange`.
18
+
17
19
  > **New in 4.0.0 (SDK contract parity, 2026-10-03).** **New methods:** `client.kol.wallets(params?)` → `GET /kol/wallets` (tracked KOL roster, any key); `client.token.search({ q, limit? })` → `GET /tokens/search` (ticker/name → candidate mints, any key); `client.listSignals()` → `GET /signals`; `client.manifests(params?)` → `GET /manifests` (nightly as-of dataset manifests with `fingerprint`, any key); `client.wallet.flags(address, { as_of?, history? })` → `GET /wallet/{address}/flags` (point-in-time flags, PRO+); `client.wallet.batchTrades({ wallets, since?, limit_per_wallet?, action? })` → `POST /wallet/batch/trades` (PRO+); `client.wallet.scoreList(wallets)` → `POST /wallet-list/score` (Enterprise); `client.wallet.funding(address, { limit?, offset? })` → `GET /wallet/{address}/funding` (shared-funder evidence, PRO+; `relationships` ULTRA+). `client.token.get(mint, { include })` accepts `buyer_quality` / `deployer`. **Typed (was `unknown`):** `kol.scoutLeaderboard()`, `kol.coordinationHistory()`, `getSignalPerformance()` (now also takes `{ history }`). **Type corrections (compile-time breaking, matching what the API has always returned):** `KolWalletProfile` (`kol`, `stats`, `scores`, `peer_ranks`, `recent_trades`, `pnl_by_token` with `total_bought`/`total_sold`), `KolTokenActivity` (`token_mint`, `summary`, `kols[]`), `AlphaLinkedResponse.linked` (with `avg_time_diff_secs`/`avg_sol_diff`), `DeployerTokensResponse.tokens` (`DeployerTokenRow`, with `instant_bond`), `WalletTrackerEvent` (`slot`, `replayed`, `ingested_at`, `timestamp`; `action` nullable) — the old never-sent keys stay as optional `@deprecated`. **New fields:** token snapshot (`/token/{mint}`, `/token/batch`) price provenance (`price_source`, `price_observed_at`, `price_is_stale`, `price_age_seconds`), `vwap_price_*`, `primary_pool_address`, `deployer_identity`, `lp_burn_status`, `token_supply_burn_detected`; `/tokens` rows `lp_burn_status` / `lp_burned` / `token_supply_burn_detected` + `deprecations`; risk `dev_status` / `resolved_from` and batch `unavailable` errors with `unavailable_inputs`; buyer-quality `signal_stats`; candles plan-floor fields; wallet PnL/positions `cache_age_seconds` / `cache_validation` / `cache_invalidated`; wallet-tracker `ordered_by` / `next_cursor` / `next_cursor_slot`; deployer stats MC-at-alert maps, alert-stats `sampled_rows`, `instant_bond` on recent bonds, typed `pump_tokens`; sniper `attribution_status`; stream-token channel registry + named-subscription hints; KOL PnL open-position `is_priced`; KOL compare `overlap_meta`.
18
20
 
19
21
  > **New in 3.0.0 (API parity 2026-10-03).** **Type fixes:** `KolConsensusResponse` now nests the figures under `consensus` (new `KolConsensus`) and `PeakHistoryResponse` under `peak_history` (new `PeakHistory`) — that is what the API has always returned; the old flat types read `undefined`. **New fields:** `TradeCoverage.size_floor` (`TradeSizeFloor`: the stored tape drops buys under 0.05 SOL / $3.50 in stables; live streams, prices and candles are unaffected) plus `data_observed` / `eligibility` / `eligibility_basis` / `completeness`; `WalletStatsResponse.stats_unavailable` / `enrichment_unavailable` / `degraded_fields` (a degraded read is UNKNOWN, never "no data"); token-lock provenance and countdowns on `TokenLock` (`provider`, `explorer`, `price_usd`, `seconds_until_end`, `seconds_until_next_unlock`, Bonfida `schedule`) and `cursor` / `next_cursor` + `degraded_fields` on the locks feed; copy-trade `min_mc_usd` / `max_mc_usd`, `source_wallets_tracked` / `source_wallets_untracked` / `warnings`; `ApiTier` adds `BUSINESS` / `ENTERPRISE`. **New method:** `client.token.topTraders(mint, params?)` → `GET /tokens/{mint}/top-traders` (PRO+).
package/dist/index.d.ts CHANGED
@@ -1828,6 +1828,142 @@ export interface DeployerRewardsResponse {
1828
1828
  note: string;
1829
1829
  };
1830
1830
  }
1831
+ export type DeployerActivityEventType = "launch" | "dev_buy" | "dev_sell" | "creator_transferred" | "fee_claim" | "funding_in" | "capital_out";
1832
+ /**
1833
+ * One event of a deployer's activity timeline. Fields present depend on
1834
+ * `type`; addresses are raw facts of the concrete event, never identity claims.
1835
+ */
1836
+ export interface DeployerActivityEvent {
1837
+ id: string;
1838
+ type: DeployerActivityEventType;
1839
+ /** Time of the event itself (the window applies to this). */
1840
+ at: string;
1841
+ time_basis: "chain" | "ingest" | "chain_or_ingest";
1842
+ mint?: string | null;
1843
+ name?: string | null;
1844
+ symbol?: string | null;
1845
+ launchpad?: string | null;
1846
+ bonded_at?: string | null;
1847
+ /** launch: whether the creator paid the create fee (null = unknown). The payer address is never in this response. */
1848
+ fee_payer_is_creator?: boolean | null;
1849
+ external_fee_payer?: boolean | null;
1850
+ dev_buy_sol?: number | null;
1851
+ dev_buy_tokens?: number | null;
1852
+ dev_buy_supply_pct?: number | null;
1853
+ own_token?: boolean;
1854
+ sol?: number | null;
1855
+ tokens?: number | null;
1856
+ price_usd?: number | null;
1857
+ first_at?: string | null;
1858
+ last_at?: string | null;
1859
+ aggregate?: boolean;
1860
+ from?: string | null;
1861
+ to?: string | null;
1862
+ direction?: "in" | "out";
1863
+ initiated_by?: "creator" | "platform_admin" | "other_signer" | "unknown";
1864
+ tx?: string;
1865
+ kind?: "direct" | "social";
1866
+ amount_raw?: string | null;
1867
+ quote_mint?: string | null;
1868
+ source?: string;
1869
+ recipient?: string;
1870
+ asset?: string;
1871
+ decimals?: number | null;
1872
+ transfer_count?: number;
1873
+ sample_tx_ids?: string[];
1874
+ first_tx?: string | null;
1875
+ }
1876
+ export interface DeployerActivityFamilyCoverage {
1877
+ source: string;
1878
+ retention: string;
1879
+ scope?: string;
1880
+ truncated: boolean;
1881
+ loaded: boolean;
1882
+ /** false: part of the window lies outside the online store (trade months only in the archive), or the boundary is unknown. */
1883
+ complete: boolean;
1884
+ /** Earliest instant the online store answers this family completely. */
1885
+ complete_from: string | null;
1886
+ /** Before this instant events exist only in the archive (not served yet); null when the window does not cross it. */
1887
+ archive_required_before: string | null;
1888
+ boundary_known: boolean;
1889
+ /** Set when the family was not queried because it cannot apply (a wallet with no attributed launch has no dev trades). */
1890
+ skipped_reason?: "no_attributed_launch";
1891
+ }
1892
+ export interface DeployerActivityRange {
1893
+ from: string | null;
1894
+ to: string | null;
1895
+ }
1896
+ /** Requested vs online vs archive-only history (archive reads are a planned follow-up). */
1897
+ export interface DeployerActivityHistoryPlan {
1898
+ requested: DeployerActivityRange & {
1899
+ source: "since_param" | "plan_default";
1900
+ };
1901
+ effective: DeployerActivityRange & {
1902
+ clamped: boolean;
1903
+ max_days: number | null;
1904
+ };
1905
+ online: DeployerActivityRange & {
1906
+ served: boolean;
1907
+ };
1908
+ archive_only: (DeployerActivityRange & {
1909
+ served: boolean;
1910
+ reason: "archive_reads_not_enabled";
1911
+ }) | null;
1912
+ }
1913
+ /**
1914
+ * GET /deployer-hunter/{wallet}/activity — PRO+, KEYED (v1) only. Feature-flagged
1915
+ * server-side (503 `feature_disabled` until enabled).
1916
+ */
1917
+ export interface DeployerActivityResponse {
1918
+ wallet: string;
1919
+ is_deployer: boolean;
1920
+ deployer: {
1921
+ tier: string | null;
1922
+ first_deploy_at: string | null;
1923
+ last_deploy_at: string | null;
1924
+ } | null;
1925
+ plan: {
1926
+ entitlement: "pro" | "ultra" | "business";
1927
+ window_days: number | null;
1928
+ max_limit: number;
1929
+ history: DeployerActivityHistoryPlan;
1930
+ };
1931
+ window: {
1932
+ since: string | null;
1933
+ until: string;
1934
+ max_days: number | null;
1935
+ applies_to: "event_time";
1936
+ };
1937
+ events: DeployerActivityEvent[];
1938
+ pagination: {
1939
+ limit: number;
1940
+ requested_limit: number;
1941
+ limit_capped: boolean;
1942
+ next_cursor: string | null;
1943
+ has_more: boolean;
1944
+ };
1945
+ coverage: {
1946
+ status: "observed" | "partial";
1947
+ families: Record<string, DeployerActivityFamilyCoverage>;
1948
+ future_events_dropped: number;
1949
+ note: string;
1950
+ };
1951
+ /** ULTRA/BUSINESS only, absent on PRO. Currently always not_available. */
1952
+ identity?: {
1953
+ status: "not_available";
1954
+ reason: "identity_stitching_not_released";
1955
+ note: string;
1956
+ };
1957
+ }
1958
+ export interface DeployerActivityParams {
1959
+ /** Clamped server-side to 100 (PRO, ULTRA) or 500 (BUSINESS). */
1960
+ limit?: number;
1961
+ cursor?: string;
1962
+ /** Requested window start (ISO 8601); clamped to the plan window. */
1963
+ since?: string;
1964
+ /** Comma list of event types. */
1965
+ types?: string;
1966
+ }
1831
1967
  export type AlphaSort = "win_rate" | "pnl" | "roi";
1832
1968
  export type AlphaPeriod = "7d" | "30d" | "all";
1833
1969
  export interface AlphaLeaderboardParams {
@@ -5883,6 +6019,20 @@ declare class DeployerClient {
5883
6019
  * @param wallet Wallet address.
5884
6020
  */
5885
6021
  deployerRewards(wallet: string): Promise<DeployerRewardsResponse>;
6022
+ /**
6023
+ * A wallet's deployer activity as ONE newest-first timeline: launches, its own
6024
+ * dev buys/sells, creator transfers, fee claims, funding in and capital out.
6025
+ * The window applies to each EVENT's own time (PRO 30 d, ULTRA 365 d, BUSINESS
6026
+ * unbounded; page clamped to 100 / 100 / 500, echoed in `plan`). History is
6027
+ * online-only for now: check `coverage.families.<f>.complete`,
6028
+ * `archive_required_before` and `plan.history.archive_only` before reading an
6029
+ * empty range as "nothing happened". PRO responses never carry an identity
6030
+ * block or a fee-payer address; ULTRA/BUSINESS `identity` is `not_available`
6031
+ * until identity stitching is released. Paginate with `next_cursor`.
6032
+ * @param wallet Wallet address (deployer or not: `is_deployer` says which).
6033
+ * @param opts Optional: limit, cursor, since (ISO 8601), types (comma list).
6034
+ */
6035
+ deployerActivity(wallet: string, opts?: DeployerActivityParams): Promise<DeployerActivityResponse>;
5886
6036
  }
5887
6037
  declare class WalletTrackerClient {
5888
6038
  private readonly _get;